annotate app/build.gradle @ 504:53ae310a96f8 stable-1.9.4-4

updates for android10+
author Carl Byington <carl@five-ten-sg.com>
date Wed, 08 Jun 2022 09:32:21 -0700
parents 7e53f29f8b5a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
502
7e53f29f8b5a updates for android10+
Carl Byington <carl@five-ten-sg.com>
parents: 495
diff changeset
20 ndkVersion '24.0.8215888'
7e53f29f8b5a updates for android10+
Carl Byington <carl@five-ten-sg.com>
parents: 495
diff changeset
21
454
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
22 buildTypes {
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
23 release {
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
24 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
25 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
26 ndk {
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
27 debuggable = false
459
a3239022798d compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents: 457
diff changeset
28 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
29 }
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
30 }
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
31 debug {
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
32 debuggable = true
459
a3239022798d compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents: 457
diff changeset
33 initWith debug
a3239022798d compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents: 457
diff changeset
34 jniDebuggable true
a3239022798d compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents: 457
diff changeset
35 externalNativeBuild {
a3239022798d compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents: 457
diff changeset
36 ndkBuild {
a3239022798d compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents: 457
diff changeset
37 cFlags "-DDEBUG=1"
a3239022798d compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents: 457
diff changeset
38 }
a3239022798d compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents: 457
diff changeset
39 }
454
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
40 ndk {
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
41 debuggable = true
459
a3239022798d compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents: 457
diff changeset
42 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
43 }
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
44 }
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
45 }
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
46 flavorDimensions "arch"
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
47 productFlavors {
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
48 arm {
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
49 dimension "arch"
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
50 }
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
51 x86 {
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
52 dimension "arch"
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
53 }
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
54 }
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
55 sourceSets {
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
56 main {
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
57 jni {
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
58 srcDir "Exec"
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 }
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
62
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
63 defaultConfig {
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
64 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
65 minSdkVersion = 21
495
c7a947e291db update to latest gradle
Carl Byington <carl@five-ten-sg.com>
parents: 490
diff changeset
66 targetSdkVersion = 31
454
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
67 ndk {
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
68 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
69 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
70 }
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
71 }
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
72
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
73 externalNativeBuild {
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
74 ndkBuild {
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
75 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
76 }
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
77 }
7492d2cb7b75 update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents: 447
diff changeset
78
459
a3239022798d compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents: 457
diff changeset
79 dependencies {
a3239022798d compile 32 and 64 bit arch, bump version
Carl Byington <carl@five-ten-sg.com>
parents: 457
diff changeset
80 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
81 // 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
82 }
438
d29cce60f393 migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
83 }