Skip to content
This repository has been archived by the owner on Mar 2, 2018. It is now read-only.

Tango & Proguard #61

Open
jazzyjester opened this issue Mar 24, 2016 · 2 comments
Open

Tango & Proguard #61

jazzyjester opened this issue Mar 24, 2016 · 2 comments

Comments

@jazzyjester
Copy link

Hey ,

Does anybody succeeded to sign tango libs with proguard ?

I'm trying to sign it using eclipse, and receive many errors...

I/DEBUG (29248): Build fingerprint: 'google/tango/yellowstone:4.4.2/KOT49H.160224/160224002:user/release-keys'
I/DEBUG (29248): #13 pc 000151fb /data/app-lib/com.projecttango.tango-2/libtango_client_api.so (Java_com_google_atap_tango_TangoJNINative_GetConfig+98)
I/tango_client_api(28153): TangoErrorType TangoService_initialize(JNIEnv_, jobject): Beginning initialization...
I/tango_client_api(28153): Tango Service: com.projecttango.tango, versionCode: 8579 (client requires >= 2705)
I/tango_client_api(28153): TangoErrorType TangoService_initialize(JNIEnv_, jobject): (in TangoErrorType TangoService_initializeLOCKED(const char_)) Doing new initialization...
I/tango_client_api(28153): TangoErrorType TangoService_initialize(JNIEnv_, jobject): Done initializing, error code = 0.
I/tango_client_api(28153): void* TangoService_getConfig(TangoConfigType): Getting config...
I/tango_client_api(18238): Tango Service: getConfig, internal status 0
I/tango_client_api(28153): void* TangoService_getConfig(TangoConfigType): Done getting config.
F/art (28153): art/runtime/thread.cc:1011] at void com.google.atap.tango.TangoJNINative.GetConfig(int, com.google.atap.b.d) (SourceFile:-2)
F/art (28153): art/runtime/runtime.cc:203] native: Java_com_google_atap_tango_TangoJNINative_GetConfig+95 0x4d4a41f8
F/art (28153): art/runtime/runtime.cc:203] at com.google.atap.tango.TangoJNINative.GetConfig(Native method)
F/art (28153): art/runtime/runtime.cc:203] Pending exception java.lang.NoSuchMethodError thrown by 'void com.google.atap.tango.TangoJNINative.GetConfig(int, com.google.atap.b.d):-2'
F/art (28153): art/runtime/runtime.cc:203] at void com.google.atap.tango.TangoJNINative.GetConfig(int, com.google.atap.b.d) (SourceFile:-2)
F/art (28153): art/runtime/runtime.cc:203] native: Java_com_google_atap_tango_TangoJNINative_GetConfig+95 0x4d4a41f8
F/art (28153): art/runtime/runtime.cc:203] at com.google.atap.tango.TangoJNINative.GetConfig(Native method)
I/DEBUG (29248): Build fingerprint: 'google/tango/yellowstone:4.4.2/KOT49H.160224/160224002:user/release-keys'
I/DEBUG (29248): #13 pc 000151fb /data/app-lib/com.projecttango.tango-2/libtango_client_api.so (Java_com_google_atap_tango_TangoJNINative_GetConfig+98)

@jazzyjester
Copy link
Author

I found the solution,
Need to add to the project the tango-cloud-lib.jar library from Here

or Here with more updated library

And after that, need to ignore the tango classes :

-keep class com.google.atap.** { ; }
-keep interface com.google.atap.
* { *; }

This worked for me.

@kanawish
Copy link

As a suggestion, since .AARs now support the addition of custom Proguard rules, this could be added to the SDK.

Proguard support is important when you need to include more libraries in a project, since these days just adding Google SDKs to a project brings you close to the 64k method limit, and a lot of developers will solve that by minifying their builds.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants