Mercurial > 510Connectbot
annotate app/build.gradle @ 456:b00031b2d6ac
bump version and target api level for google play store
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 10 Nov 2018 12:18:05 -0800 |
parents | 7492d2cb7b75 |
children | 105815cce146 |
rev | line source |
---|---|
447
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
1 task copyDebugLibTask(type: Copy) { |
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
2 from 'build/intermediates/binaries/debug/arm/lib/armeabi' |
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
3 into 'src/main/jniLibs/armeabi' |
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
4 } |
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
5 task copyReleaseLibTask(type: Copy) { |
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
6 from 'build/intermediates/binaries/release/arm/lib/armeabi' |
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
7 into 'src/main/jniLibs/armeabi' |
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
8 } |
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
9 |
438
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
10 tasks.whenTaskAdded { task -> |
447
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
11 if (task.name.contains("merge") && task.name.contains("JniLibFolders")) { |
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
12 if (task.name.contains("ArmDebug")) { |
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
13 task.dependsOn copyDebugLibTask |
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
14 } |
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
15 if (task.name.contains("ArmRelease")) { |
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
16 task.dependsOn copyReleaseLibTask |
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
diff
changeset
|
17 } |
438
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
18 } |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
19 } |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
20 |
447
2907c688955e
add ndk shared object to .apk package
Carl Byington <carl@five-ten-sg.com>
parents:
442
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 apply plugin: 'com.android.application' |
438
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
23 |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
24 android { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
25 signingConfigs { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
26 release { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
27 print "\nNo Console\n" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
28 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
|
29 print "\nkey store password" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
30 storePassword = read() |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
31 print "\nkey alias password" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
32 keyPassword = read() |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
33 print "\nDone\n" |
438
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
34 storeFile = file("../510Connectbot.keystore") |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
35 storeType = "jks" |
441
592f0ef08d94
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
440
diff
changeset
|
36 keyAlias = "510Connectbot" |
438
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
37 } |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
38 } |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
39 compileSdkVersion = 16 |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
40 buildTypes { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
41 release { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
42 minifyEnabled = false |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
43 signingConfig = signingConfigs.release |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
44 ndk { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
45 debuggable = false |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
46 abiFilters 'armeabi-v7a' |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
47 } |
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 debug { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
50 debuggable = true |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
51 ndk { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
52 debuggable = true |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
53 abiFilters 'armeabi-v7a' |
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 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
56 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
57 flavorDimensions "arch" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
58 productFlavors { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
59 arm { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
60 dimension "arch" |
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 x86 { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
63 dimension "arch" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
64 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
65 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
66 sourceSets { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
67 main { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
68 jni { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
69 srcDir "Exec" |
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 |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
74 defaultConfig { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
75 applicationId = "com.five_ten_sg.connectbot" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
76 minSdkVersion = 8 |
456
b00031b2d6ac
bump version and target api level for google play store
Carl Byington <carl@five-ten-sg.com>
parents:
454
diff
changeset
|
77 targetSdkVersion = 26 |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
78 ndk { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
79 moduleName = "com_google_ase_Exec" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
80 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
81 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
82 |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
83 externalNativeBuild { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
84 ndkBuild { |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
85 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
|
86 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
87 } |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
447
diff
changeset
|
88 |
438
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
89 } |