Project-ARTist / dexterous

Library and standalone CLI tool for apk/dex merging, repackaging and signing. Can also get used as a dex analyzer framework.
Other
48 stars 16 forks source link

Implemented fine-grained merging using annotations #4

Closed alfink closed 6 years ago

alfink commented 6 years ago
alfink commented 6 years ago

requires:

sweisgerber-dev commented 6 years ago

The build fails, because dexterous is not only a library used in android apps, it's also a desktop standalone tool (See file: desktop.gradle).

You use android's Log classes in dexterous/src/main/java/comm/android/dx/merge/MethodFilter.java. Please switch to the Logger :https://github.com/Project-ARTist/dexterous/blob/master/src/main/java/saarland/cispa/utils/LogA.java

  symbol:   variable Log
  location: class MethodFilter
/home/travis/build/Project-ARTist/dexterous/src/main/java/comm/android/dx/merge/MethodFilter.java:215: error: cannot find symbol
                                Log.d(TAG, "Field whitelisted:" + fieldid);
                                ^
  symbol:   variable Log
  location: class MethodFilter
/home/travis/build/Project-ARTist/dexterous/src/main/java/comm/android/dx/merge/MethodFilter.java:230: error: cannot find symbol
                                Log.d("ColdelibWhitelisting", "Method annotated:" + getMethodString(methodid));
                                ^
  symbol:   variable Log
  location: class MethodFilter
/home/travis/build/Project-ARTist/dexterous/src/main/java/comm/android/dx/merge/MethodFilter.java:252: error: cannot find symbol
                        Log.i("CodelibWhitelisting", "Class whitelisted: " + String.valueOf(class_idx) + " (" + getTypeString(class_idx) +
                        ^
  symbol:   variable Log
  location: class MethodFilter
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
6 errors
31 warnings
 FAILED
sweisgerber-dev commented 6 years ago

Thank you very much :)