From 9e10a0c6557ef852bf90ebbc4489c8d1af0e716a Mon Sep 17 00:00:00 2001 From: mediocre9 Date: Tue, 7 Nov 2023 20:12:30 +0500 Subject: [PATCH] refactor: add `adb` shell cmd to launch app after installation --- scripts/install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index d93c0da..5acb7dd 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,5 +1,10 @@ # change app architecture from here # according to your needs . . . app_architecture="app-armeabi-v7a-release.apk" +package="com.mediocre.smartlink" + adb install -r "../build/app/outputs/flutter-apk/$app_architecture" +adb shell am start -n $package/.MainActivity + +echo Success read \ No newline at end of file