I use DexGuard, build project in release mode with this:
proguardFile getDefaultDexGuardFile('dexguard-library-release-aggressive.pro')
Everything was fine, but now I need to keep another class from encrypting, I added lines to do not encrypt my ExampleBuilder:
-verbose
# do not encrypt API package
-keep public class com.justexample.api** {
public protected private *;
}
#these 3 lines below I added
-keep public class com.justexample.ExampleBuilder.** {
public protected private static *;
}
-repackageclasses com.justexample
And now when I try to use library i get error:
error: attribute 'android:name' in <service> tag must be a valid Java class name.
Message{kind=ERROR, text=error: attribute 'android:name' in <service> tag must be a valid Java class name.
Generated manifest (from AAR which on dexguard influences) from which is this error, fragment where is error:
<service
android:name="com.justexample.services.οΎ"
android:exported="false" />