Mercurial > 510ConnectbotMonitor
annotate app/build.gradle @ 29:e6784ab8964c
starting update to latest toolchain
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 08 Nov 2018 11:54:22 -0800 |
parents | 807f7e4eaebe |
children | 0bc0b4798d9e |
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 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
45 debug { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
46 debuggable = true |
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 flavorDimensions "arch" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
50 productFlavors { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
51 arm { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
52 dimension "arch" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
53 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
54 x86 { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
55 dimension "arch" |
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 } |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
58 |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
59 defaultConfig { |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
60 applicationId = "com.five_ten_sg.connectbot" |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
61 minSdkVersion = 8 |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
62 targetSdkVersion = 15 |
807f7e4eaebe
starting update to latest toolchain
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
63 } |
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 } |