Skip to content

proguard still stripping code needed for swap

This is rehashing an old issue here. proguard code removal was re-added in 7bff1146 and it again broke swapping.

This fixed it for me:

-            minifyEnabled true
-            shrinkResources true
+            minifyEnabled false
+            shrinkResources false

Here is the characteristic stacktrace:

tivity.UpdateAsyncTask  E  An error occured while setting up the local repo
                        E  java.lang.RuntimeException: generate [class kellinwood.security.zipsigner.KeySet, class [B]
                        E      at kellinwood.security.zipsigner.ZipSigner.writeSignatureBlock(ZipSigner.java:519)
                        E      at kellinwood.security.zipsigner.ZipSigner.signZip(ZipSigner.java:740)
                        E      at kellinwood.security.zipsigner.ZipSigner.signZip(ZipSigner.java:647)
                        E      at org.fdroid.fdroid.localrepo.LocalRepoKeyStore.signZip(LocalRepoKeyStore.java:210)
                        E      at org.fdroid.fdroid.localrepo.LocalRepoManager.writeIndexJar(LocalRepoManager.java:504)
                        E      at org.fdroid.fdroid.views.swap.SwapActivity$UpdateAsyncTask.doInBackground(SwapActivity.java:258)
                        E      at org.fdroid.fdroid.views.swap.SwapActivity$UpdateAsyncTask.doInBackground(SwapActivity.java:219)
                        E      at android.os.AsyncTask$2.call(AsyncTask.java:288)
                        E      at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                        E      at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
                        E      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                        E      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                        E      at java.lang.Thread.run(Thread.java:841)
                        E  Caused by: java.lang.NoSuchMethodException: generate [class kellinwood.security.zipsigner.KeySet, class [B]
                        E      at java.lang.Class.getConstructorOrMethod(Class.java:472)
                        E      at java.lang.Class.getMethod(Class.java:857)
                        E      at kellinwood.security.zipsigner.ZipSigner.writeSignatureBlock(ZipSigner.java:515)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information