FLIR One Developer / Blog / Topics / android, palettesLocked, proguard / SDK 3.0.1 not building with Proguard

SDK 3.0.1 not building with Proguard

Home Forums Android development Installation and getting started SDK 3.0.1 not building with Proguard

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Dani Dani 1 year, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)

  • Author

    Posts

  • #5901

    Profile photo of Dani
    Dani

    Participant

    When trying to build with Proguard on Android SDK version 3.0.1 it raises an error:
    Warning:com.flir.flironesdk.FrameProcessor: can't find referenced class org.jetbrains.annotations.Contract
    on executing Gradle Taks [:app:assembleRelease]

    Problem: using annotation on palettesLocked method on FrameProcessor class.
    @Contract(" -> fail")

    Simple solution: set this line on proguard-rules.pro file:
    -dontwarn org.jetbrains.annotations.Contract

    Dani.

    #5902

    Profile photo of Cal Loo
    Cal Loo

    Moderator

    Hi Dani,

    Just wanted to confirm that your solution worked and that you’re sharing it for the benefit of others – right? If that isn’t the case and you still need help let us know.

    Thanks,

    Cal

    #5903

    Profile photo of Dani
    Dani

    Participant

    Hey,

    Yes, it worked for me, but I think that its an SDK error and must be fixed in next release to avoid developers use the proguard hack

    Dani

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.