Mercurial > 510Connectbot
annotate app/build.gradle @ 496:f698820bffdf
add socket2 monitor protocol
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 05 Jun 2022 14:46:41 -0700 |
parents | c7a947e291db |
children | 7e53f29f8b5a |
rev | line source |
---|---|
447
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
1 |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
2 apply plugin: 'com.android.application' |
438
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
3 |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
4 android { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
5 signingConfigs { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
6 release { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
7 print "\nNo Console\n" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
8 def read = System.in.newReader().&readLine |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
9 print "\nkey store password" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
10 storePassword = read() |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
11 print "\nkey alias password" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
12 keyPassword = read() |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
13 print "\nDone\n" |
438
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
14 storeFile = file("../510Connectbot.keystore") |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
15 storeType = "jks" |
441
592f0ef08d94
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
440
diff
changeset
|
16 keyAlias = "510Connectbot" |
438
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
17 } |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
18 } |
495
c7a947e291db
update to latest gradle
Carl Byington <carl@five-ten-sg.com>
parents:
490
diff
changeset
|
19 compileSdkVersion = 31 |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
20 buildTypes { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
21 release { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
22 minifyEnabled = false |
457
105815cce146
minimum version android 5, target and compile version api 28
Carl Byington <carl@five-ten-sg.com>
parents:
456
diff
changeset
|
23 signingConfig = android.signingConfigs.release |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
24 ndk { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
25 debuggable = false |
459
a3239022798d
compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents:
457
diff
changeset
|
26 abiFilters 'armeabi-v7a', 'arm64-v8a' |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
27 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
28 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
29 debug { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
30 debuggable = true |
459
a3239022798d
compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents:
457
diff
changeset
|
31 initWith debug |
a3239022798d
compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents:
457
diff
changeset
|
32 jniDebuggable true |
a3239022798d
compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents:
457
diff
changeset
|
33 externalNativeBuild { |
a3239022798d
compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents:
457
diff
changeset
|
34 ndkBuild { |
a3239022798d
compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents:
457
diff
changeset
|
35 cFlags "-DDEBUG=1" |
a3239022798d
compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents:
457
diff
changeset
|
36 } |
a3239022798d
compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents:
457
diff
changeset
|
37 } |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
38 ndk { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
39 debuggable = true |
459
a3239022798d
compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents:
457
diff
changeset
|
40 abiFilters 'armeabi-v7a', 'arm64-v8a' |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
41 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
42 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
43 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
44 flavorDimensions "arch" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
45 productFlavors { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
46 arm { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
47 dimension "arch" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
48 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
49 x86 { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
50 dimension "arch" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
51 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
52 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
53 sourceSets { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
54 main { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
55 jni { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
56 srcDir "Exec" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
57 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
58 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
59 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
60 |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
61 defaultConfig { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
62 applicationId = "com.five_ten_sg.connectbot" |
490
7545103ec815
use foreground service and notification channel on Android 8+
Carl Byington <carl@five-ten-sg.com>
parents:
488
diff
changeset
|
63 minSdkVersion = 21 |
495
c7a947e291db
update to latest gradle
Carl Byington <carl@five-ten-sg.com>
parents:
490
diff
changeset
|
64 targetSdkVersion = 31 |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
65 ndk { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
66 moduleName = "com_google_ase_Exec" |
459
a3239022798d
compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents:
457
diff
changeset
|
67 abiFilters 'armeabi-v7a', 'arm64-v8a' |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
68 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
69 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
70 |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
71 externalNativeBuild { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
72 ndkBuild { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
73 path "src/main/jni/Android.mk" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
74 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
75 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
76 |
459
a3239022798d
compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents:
457
diff
changeset
|
77 dependencies { |
a3239022798d
compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents:
457
diff
changeset
|
78 implementation 'com.android.support:support-v4:23.+' |
a3239022798d
compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents:
457
diff
changeset
|
79 // update the 23.0.0 to latest version available |
a3239022798d
compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents:
457
diff
changeset
|
80 } |
438
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
81 } |