diff --git a/android/app/build.gradle b/android/app/build.gradle index b56792a..9b07c5e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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] }