alan-ai / alan-sdk-flutter

Conversational AI SDK for Flutter to enable text and voice conversations with actions (iOS and Android)
https://alan.app
1.8k stars 39 forks source link

Alan Button and working disappear in Flutter release aok #4

Closed rohitghosal closed 3 years ago

rohitghosal commented 3 years ago

Alan Button disappears in Flutter release apk

I almost perfectly implemented everything and works on debug mode on android 8/9 device something sticks with Android 10 . More strange when I see the whole Alan functionality with its button completely vanished from the release apk of the Flutter integrated project

rohitghosal commented 3 years ago

I used SDK key as "<SDK KEY OF ALAN/stage>" should I use prod instead??

snyuryev commented 3 years ago

@rohitghosal

Please try to add additional params for release build type

shrinkResources false
minifyEnabled false

to your build.gradle file. It should be located

[your_app_folder]/android/app/build.gradle

As result you should have something similar to:

buildTypes {
        release {
            signingConfig signingConfigs.debug
            shrinkResources false
            minifyEnabled false
        }
  }

After that please try to run

flutter build apk

and run your app.

rohitghosal commented 3 years ago

I tried with that again same result no button no voice ai integration

On Mon, 28 Dec, 2020, 17:12 Sergey Yuryev, notifications@github.com wrote:

@rohitghosal https://github.com/rohitghosal

Please try to add additional params for release build type

shrinkResources false minifyEnabled false

to your build.gradle file. It should be located

[your_app_folder]/android/app/build.gradle

As result you should have something similar to:

buildTypes { release { signingConfig signingConfigs.debug shrinkResources false minifyEnabled false } }

After that please try to run

flutter build apk

and run your app.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alan-ai/alan-sdk-flutter/issues/4#issuecomment-751684567, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJZOU2ODALAJNDRR3HU3Z3SXBVITANCNFSM4VJJC6XQ .

snyuryev commented 3 years ago

@rohitghosal

Please try our simple example That was built and tested on Android 10 as well.

rohitghosal commented 3 years ago

Ok sure and send you the update very soon..and thanks for helping

On Mon, 28 Dec, 2020, 19:25 Sergey Yuryev, notifications@github.com wrote:

@rohitghosal https://github.com/rohitghosal

Please try our simple example https://github.com/alan-ai/alan-sdk-flutter/tree/master/examples/alan_simple_app That was built and tested on Android 10 as well.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alan-ai/alan-sdk-flutter/issues/4#issuecomment-751720173, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJZOUYUTWL5YJ72SJ6KO7DSXCE45ANCNFSM4VJJC6XQ .

rohitghosal commented 3 years ago

one more doubt at button integration time would the sdk key in prod mode like "/prod" for enable alan in release apk?

On Mon, Dec 28, 2020 at 7:25 PM Sergey Yuryev notifications@github.com wrote:

@rohitghosal https://github.com/rohitghosal

Please try our simple example https://github.com/alan-ai/alan-sdk-flutter/tree/master/examples/alan_simple_app That was built and tested on Android 10 as well.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alan-ai/alan-sdk-flutter/issues/4#issuecomment-751720173, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJZOUYUTWL5YJ72SJ6KO7DSXCE45ANCNFSM4VJJC6XQ .

snyuryev commented 3 years ago

@rohitghosal It is not necessary to use "/prod" for release apk. You can use "/stage"

But it is better to use "/prod" version of your script - just to make sure that your script will have stable version.

rohitghosal commented 3 years ago

Ok trying once again..and updating you

On Mon, 28 Dec, 2020, 22:10 Sergey Yuryev, notifications@github.com wrote:

@rohitghosal https://github.com/rohitghosal It is not necessary to use "/prod" for release apk. You can use "/stage"

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alan-ai/alan-sdk-flutter/issues/4#issuecomment-751779721, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJZOUYZ6MCQYOAFAT42OE3SXCYHLANCNFSM4VJJC6XQ .

rohitghosal commented 3 years ago

many many thanks sir, i just deleted all previous build and now rerun and finally working..fine...grateful to you.

On Mon, Dec 28, 2020 at 10:08 PM ROHIT GHOSAL rohit.ghosal1234@gmail.com wrote:

one more doubt at button integration time would the sdk key in prod mode like "/prod" for enable alan in release apk?

On Mon, Dec 28, 2020 at 7:25 PM Sergey Yuryev notifications@github.com wrote:

@rohitghosal https://github.com/rohitghosal

Please try our simple example https://github.com/alan-ai/alan-sdk-flutter/tree/master/examples/alan_simple_app That was built and tested on Android 10 as well.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alan-ai/alan-sdk-flutter/issues/4#issuecomment-751720173, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJZOUYUTWL5YJ72SJ6KO7DSXCE45ANCNFSM4VJJC6XQ .

snyuryev commented 3 years ago

@rohitghosal I'm glad to help you!

chinnuchitti0128 commented 3 years ago

Yeah...my Alan button is also disappeared when I bulid in release mode . Can u provide solution ??

snyuryev commented 3 years ago

@chinnuchitti0128 Please take a look to #3