comparison app/build.gradle @ 454:7492d2cb7b75

update to latest toolchain, gradle 4.10.2
author Carl Byington <carl@five-ten-sg.com>
date Wed, 07 Nov 2018 17:13:10 -0800
parents 2907c688955e
children b00031b2d6ac
comparison
equal deleted inserted replaced
453:f65d8bb11eb0 454:7492d2cb7b75
17 } 17 }
18 } 18 }
19 } 19 }
20 20
21 21
22 apply plugin: 'com.android.model.application' 22 apply plugin: 'com.android.application'
23 23
24 model { 24 android {
25 android { 25 signingConfigs {
26 compileSdkVersion = 16 26 release {
27 buildToolsVersion = "23.0.2" 27 print "\nNo Console\n"
28 buildTypes { 28 def read = System.in.newReader().&readLine
29 release { 29 print "\nkey store password"
30 minifyEnabled = false 30 storePassword = read()
31 signingConfig = $("android.signingConfigs.release") 31 print "\nkey alias password"
32 } 32 keyPassword = read()
33 debug { 33 print "\nDone\n"
34 debuggable = true
35 ndk {
36 debuggable = true
37 }
38 }
39 }
40 productFlavors {
41 create("arm") {
42 ndk.abiFilters.add("armeabi")
43 }
44 create("x86") {
45 ndk.abiFilters.add("x86")
46 }
47 }
48 ndk {
49 moduleName = "com_google_ase_Exec"
50 cppFlags.add("-Werror")
51 ldLibs.add("log")
52 }
53 sources {
54 main {
55 jni {
56 source {
57 srcDir "Exec"
58 }
59 }
60 }
61 }
62 defaultConfig.with {
63 applicationId = "com.five_ten_sg.connectbot"
64 minSdkVersion.apiLevel = 8
65 targetSdkVersion.apiLevel = 15
66 }
67 }
68
69 android.signingConfigs {
70 create("release") {
71 def console = System.console()
72 if (console) {
73 storePassword = new String(console.readPassword("\nkey store password: "))
74 keyPassword = new String(console.readPassword("\nkey alias password: "))
75 }
76 else {
77 def read = System.in.newReader().&readLine
78 print "\nkey store password"
79 storePassword = read()
80 print "\nkey alias password"
81 keyPassword = read()
82 }
83 storeFile = file("../510Connectbot.keystore") 34 storeFile = file("../510Connectbot.keystore")
84 storeType = "jks" 35 storeType = "jks"
85 keyAlias = "510Connectbot" 36 keyAlias = "510Connectbot"
86 } 37 }
87 } 38 }
39 compileSdkVersion = 16
40 buildTypes {
41 release {
42 minifyEnabled = false
43 signingConfig = signingConfigs.release
44 ndk {
45 debuggable = false
46 abiFilters 'armeabi-v7a'
47 }
48 }
49 debug {
50 debuggable = true
51 ndk {
52 debuggable = true
53 abiFilters 'armeabi-v7a'
54 }
55 }
56 }
57 flavorDimensions "arch"
58 productFlavors {
59 arm {
60 dimension "arch"
61 }
62 x86 {
63 dimension "arch"
64 }
65 }
66 sourceSets {
67 main {
68 jni {
69 srcDir "Exec"
70 }
71 }
72 }
73
74 defaultConfig {
75 applicationId = "com.five_ten_sg.connectbot"
76 minSdkVersion = 8
77 targetSdkVersion = 15
78 ndk {
79 moduleName = "com_google_ase_Exec"
80 }
81 }
82
83 externalNativeBuild {
84 ndkBuild {
85 path "src/main/jni/Android.mk"
86 }
87 }
88
88 } 89 }