Reputation: 51
Important notes:
Edit: (zoom-sdk) is a native library (.aar file)
I am using zoom-sdk in my app, I was making the normal apk build to be uploaded on playstore but the size of apk increased over 100MB ( after using zoom sdk).
Then I make use of android app bundle, uploaded the app for internal testing (in playstore), during testing I found out that the module(zoom-sdk) is not found when app is build using android app bundle.
Has anyone faced something similar issue, where we need to use a third party library and build the app using android app bundle.
Exception I was getting:
E/ZMBuildConfig: parse build target failed. value=TARGET_ZOOM
java.lang.NoSuchFieldException: TARGET_ZOOM
at java.lang.Class.getField(Class.java:1601)
at us.zoom.b.b.<clinit>(SourceFile:29)
at com.zipow.cmmlib.AppContext.<clinit>(SourceFile:37)
at com.zipow.cmmlib.AppContext.a(SourceFile:65)
at us.zoom.sdk.q.a(SourceFile:441)
Upvotes: 1
Views: 975
Reputation: 109
Adding these lines in proguard file did the trick for me.
-keep class us.zoom.** { *; }
-keep class us.zipow.** { *; }
-keep class com.zipow.** { *; }
-keep class org.webrtc.** { *; }
-dontwarn us.zoom.**
-dontwarn com.zipow.**
Upvotes: 3