Mercurial > 510ConnectbotMonitor
annotate app/build.gradle @ 27:807f7e4eaebe
starting update to latest toolchain
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 08 Nov 2018 11:39:13 -0800 |
parents | |
children | e6784ab8964c |
rev | line source |
---|---|
27
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
1 task copyDebugLibTask(type: Copy) { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
2 from 'build/intermediates/binaries/debug/arm/lib/armeabi' |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
3 into 'src/main/jniLibs/armeabi' |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
4 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
5 task copyReleaseLibTask(type: Copy) { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
6 from 'build/intermediates/binaries/release/arm/lib/armeabi' |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
7 into 'src/main/jniLibs/armeabi' |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
8 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
9 |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
10 tasks.whenTaskAdded { task -> |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
11 if (task.name.contains("merge") && task.name.contains("JniLibFolders")) { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
12 if (task.name.contains("ArmDebug")) { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
13 task.dependsOn copyDebugLibTask |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
14 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
15 if (task.name.contains("ArmRelease")) { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
16 task.dependsOn copyReleaseLibTask |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
17 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
18 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
19 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
20 |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
21 |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
22 apply plugin: 'com.android.application' |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
23 |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
24 android { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
25 signingConfigs { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
26 release { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
27 print "\nNo Console\n" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
28 def read = System.in.newReader().&readLine |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
29 print "\nkey store password" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
30 storePassword = read() |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
31 print "\nkey alias password" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
32 keyPassword = read() |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
33 print "\nDone\n" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
34 storeFile = file("../510Connectbot.keystore") |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
35 storeType = "jks" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
36 keyAlias = "510Connectbot" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
37 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
38 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
39 compileSdkVersion = 16 |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
40 buildTypes { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
41 release { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
42 minifyEnabled = false |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
43 signingConfig = signingConfigs.release |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
44 ndk { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
45 debuggable = false |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
46 abiFilters 'armeabi-v7a' |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
47 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
48 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
49 debug { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
50 debuggable = true |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
51 ndk { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
52 debuggable = true |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
53 abiFilters 'armeabi-v7a' |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
54 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
55 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
56 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
57 flavorDimensions "arch" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
58 productFlavors { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
59 arm { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
60 dimension "arch" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
61 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
62 x86 { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
63 dimension "arch" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
64 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
65 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
66 sourceSets { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
67 main { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
68 jni { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
69 srcDir "Exec" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
70 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
71 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
72 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
73 |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
74 defaultConfig { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
75 applicationId = "com.five_ten_sg.connectbot" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
76 minSdkVersion = 8 |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
77 targetSdkVersion = 15 |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
78 ndk { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
79 moduleName = "com_google_ase_Exec" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
80 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
81 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
82 |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
83 externalNativeBuild { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
84 ndkBuild { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
85 path "src/main/jni/Android.mk" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
86 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
87 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
88 |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
89 } |