Update build.gradle

- Version 0.1.0
- Do not compress .otf font
- Fix warnings
This commit is contained in:
kichikuou
2020-02-02 10:40:34 +09:00
parent 6854d9bea2
commit 1b4f44384e
+5 -5
View File
@@ -17,7 +17,7 @@ android {
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
versionName "0.1.0"
externalNativeBuild {
cmake {
arguments "-DANDROID_APP_PLATFORM=android-16", "-DANDROID_STL=c++_static"
@@ -40,7 +40,7 @@ android {
aaptOptions {
// Disable asset compression for fonts.
// Without this, text rendering will be very slow.
noCompress 'ttf'
noCompress 'ttf', 'otf'
}
externalNativeBuild {
cmake {
@@ -61,8 +61,8 @@ android {
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith(".aar")) {
def fileName = "org.libsdl.app.aar";
output.outputFile = new File(outputFile.parent, fileName);
def fileName = "org.libsdl.app.aar"
output.outputFile = new File(outputFile.parent, fileName)
}
}
}
@@ -74,6 +74,6 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
String getInstalledCmakeVersion() {
static String getInstalledCmakeVersion() {
('cmake --version'.execute().text =~ /cmake version ([0-9.]+)/)[0][1]
}