Skip to content

Commit af26fd4

Browse files
MinSizeRel only Release build. Debug build should not be compressed
1 parent 310495e commit af26fd4

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

android/app/build.gradle

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,23 @@ android {
99
versionCode 1
1010
versionName "1.0"
1111
// testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12-
externalNativeBuild {
13-
cmake {
14-
arguments '-DCMAKE_BUILD_TYPE=MinSizeRel', '-DBUILD_3RDPARTY_BINARIES=OFF'
15-
}
16-
}
1712
}
1813
buildTypes {
1914
release {
2015
minifyEnabled false
2116
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
17+
externalNativeBuild {
18+
cmake {
19+
arguments '-DCMAKE_BUILD_TYPE=MinSizeRel', '-DBUILD_3RDPARTY_BINARIES=OFF'
20+
}
21+
}
22+
}
23+
debug {
24+
externalNativeBuild {
25+
cmake {
26+
arguments '-DBUILD_3RDPARTY_BINARIES=OFF'
27+
}
28+
}
2229
}
2330
}
2431
externalNativeBuild {

0 commit comments

Comments
 (0)