comparison 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
comparison
equal deleted inserted replaced
26:3a5df66c0480 27:807f7e4eaebe
1 task copyDebugLibTask(type: Copy) {
2 from 'build/intermediates/binaries/debug/arm/lib/armeabi'
3 into 'src/main/jniLibs/armeabi'
4 }
5 task copyReleaseLibTask(type: Copy) {
6 from 'build/intermediates/binaries/release/arm/lib/armeabi'
7 into 'src/main/jniLibs/armeabi'
8 }
9
10 tasks.whenTaskAdded { task ->
11 if (task.name.contains("merge") && task.name.contains("JniLibFolders")) {
12 if (task.name.contains("ArmDebug")) {
13 task.dependsOn copyDebugLibTask
14 }
15 if (task.name.contains("ArmRelease")) {
16 task.dependsOn copyReleaseLibTask
17 }
18 }
19 }
20
21
22 apply plugin: 'com.android.application'
23
24 android {
25 signingConfigs {
26 release {
27 print "\nNo Console\n"
28 def read = System.in.newReader().&readLine
29 print "\nkey store password"
30 storePassword = read()
31 print "\nkey alias password"
32 keyPassword = read()
33 print "\nDone\n"
34 storeFile = file("../510Connectbot.keystore")
35 storeType = "jks"
36 keyAlias = "510Connectbot"
37 }
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
89 }