diff 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
line wrap: on
line diff
--- a/app/build.gradle	Thu Nov 08 11:59:30 2018 -0800
+++ b/app/build.gradle	Sun Apr 28 14:45:56 2019 -0700
@@ -1,23 +1,3 @@
-task copyDebugLibTask(type: Copy) {
-    from 'build/intermediates/binaries/debug/arm/lib/armeabi'
-    into 'src/main/jniLibs/armeabi'
-}
-task copyReleaseLibTask(type: Copy) {
-    from 'build/intermediates/binaries/release/arm/lib/armeabi'
-    into 'src/main/jniLibs/armeabi'
-}
-
-tasks.whenTaskAdded { task ->
-    if (task.name.contains("merge") && task.name.contains("JniLibFolders")) {
-        if (task.name.contains("ArmDebug")) {
-            task.dependsOn copyDebugLibTask
-        }
-        if (task.name.contains("ArmRelease")) {
-            task.dependsOn copyReleaseLibTask
-        }
-    }
-}
-
 
 apply plugin: 'com.android.application'
 
@@ -36,14 +16,29 @@
             keyAlias  = "510Connectbot"
         }
     }
-    compileSdkVersion = 16
+    compileSdkVersion = 28
     buildTypes {
         release {
             minifyEnabled = false
-            signingConfig = signingConfigs.release
+            signingConfig = android.signingConfigs.release
+            ndk {
+                debuggable = false
+                abiFilters 'armeabi-v7a', 'arm64-v8a'
+            }
         }
         debug {
             debuggable = true
+            initWith debug
+            jniDebuggable true
+            externalNativeBuild {
+                ndkBuild {
+                    cFlags "-DDEBUG=1"
+                }
+            }
+            ndk {
+                debuggable = true
+                abiFilters 'armeabi-v7a', 'arm64-v8a'
+            }
         }
     }
     flavorDimensions "arch"
@@ -57,9 +52,13 @@
     }
 
     defaultConfig {
-        applicationId = "com.five_ten_sg.connectbot"
-        minSdkVersion = 8
-        targetSdkVersion = 15
+        applicationId = "com.five_ten_sg.connectbot.monitor"
+        minSdkVersion  21
+        targetSdkVersion  28
+        ndk {
+            moduleName = "monitor"
+            abiFilters 'armeabi-v7a', 'arm64-v8a'
+        }
     }
 
 }