lschmierer / android_play_install_referrer

A Flutter plugin for the Android Play Install Referrer API.
BSD 2-Clause "Simplified" License
21 stars 21 forks source link

Cannot build my app after added the lib #19

Open robsoncardozorebel opened 2 years ago

robsoncardozorebel commented 2 years ago

After adding the lib I could no longer build my app only if I disable shrink and minifyEnabled. Anyone can help?

`FAILURE: Build failed with an exception.

BUILD FAILED in 4s Running Gradle task 'assembleProdRelease'... 4,7s [!] The shrinker may have failed to optimize the Java bytecode. To disable the shrinker, pass the --no-shrink flag to this command. To learn more, see: https://developer.android.com/studio/build/shrink-code Gradle task assembleProdRelease failed with exit code 1

`

lschmierer commented 2 years ago

Unfortunately, I don't have much experience with code minification. Are you able to reproduce this with the example app within this repo?

lschmierer commented 2 years ago

Hey @robsoncardozorebel, did you made any progress regarding this library and code minification?

RationalEgoism commented 1 year ago

@lschmierer add to proguard file -keepattributes Exceptions, Signature, InnerClasses, LineNumberTable

lschmierer commented 1 year ago

@RationalEgoism thank you, will check it out later. Can you elaborate what it does (how did you came up with these specific attributes to keep)?

Edit: Especially LineNumberTable sounds kinda specific to your project?