Browse Source

Update android build for debug options

LouYihua 8 years ago
parent
commit
ff8f34b621
1 changed files with 10 additions and 1 deletions
  1. 10 1
      android/app/build.gradle

+ 10 - 1
android/app/build.gradle

@@ -18,9 +18,18 @@ android {
 
     buildTypes {
         release {
-            minifyEnabled false
+            minifyEnabled true
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
         }
+        debug {
+            jniDebuggable true
+            externalNativeBuild {
+                ndkBuild {
+                    cFlags "-DDEBUG", "-g"
+                    cppFlags "-DDEBUG", "-g"
+                }
+            }
+        }
     }
     externalNativeBuild {
         ndkBuild {