comparison app/build.gradle @ 31:0bc0b4798d9e

fix saystring(12) command for proper unicode and document it
author Carl Byington <carl@five-ten-sg.com>
date Sun, 28 Apr 2019 14:45:56 -0700
parents e6784ab8964c
children
comparison
equal deleted inserted replaced
30:89b6389aa5b2 31:0bc0b4798d9e
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 1
22 apply plugin: 'com.android.application' 2 apply plugin: 'com.android.application'
23 3
24 android { 4 android {
25 signingConfigs { 5 signingConfigs {
34 storeFile = file("../510Connectbot.keystore") 14 storeFile = file("../510Connectbot.keystore")
35 storeType = "jks" 15 storeType = "jks"
36 keyAlias = "510Connectbot" 16 keyAlias = "510Connectbot"
37 } 17 }
38 } 18 }
39 compileSdkVersion = 16 19 compileSdkVersion = 28
40 buildTypes { 20 buildTypes {
41 release { 21 release {
42 minifyEnabled = false 22 minifyEnabled = false
43 signingConfig = signingConfigs.release 23 signingConfig = android.signingConfigs.release
24 ndk {
25 debuggable = false
26 abiFilters 'armeabi-v7a', 'arm64-v8a'
27 }
44 } 28 }
45 debug { 29 debug {
46 debuggable = true 30 debuggable = true
31 initWith debug
32 jniDebuggable true
33 externalNativeBuild {
34 ndkBuild {
35 cFlags "-DDEBUG=1"
36 }
37 }
38 ndk {
39 debuggable = true
40 abiFilters 'armeabi-v7a', 'arm64-v8a'
41 }
47 } 42 }
48 } 43 }
49 flavorDimensions "arch" 44 flavorDimensions "arch"
50 productFlavors { 45 productFlavors {
51 arm { 46 arm {
55 dimension "arch" 50 dimension "arch"
56 } 51 }
57 } 52 }
58 53
59 defaultConfig { 54 defaultConfig {
60 applicationId = "com.five_ten_sg.connectbot" 55 applicationId = "com.five_ten_sg.connectbot.monitor"
61 minSdkVersion = 8 56 minSdkVersion 21
62 targetSdkVersion = 15 57 targetSdkVersion 28
58 ndk {
59 moduleName = "monitor"
60 abiFilters 'armeabi-v7a', 'arm64-v8a'
61 }
63 } 62 }
64 63
65 } 64 }