mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-22 22:48:08 +03:00
Update build.gradle
- Version 0.1.0 - Do not compress .otf font - Fix warnings
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user