Commit cd618ca4 authored by kenan's avatar kenan

build.gradle

parent f40255df
...@@ -13,9 +13,9 @@ buildscript { ...@@ -13,9 +13,9 @@ buildscript {
} }
ext { ext {
compileSdkVersion = 29 compileSdkVersion = 30
//buildToolsVersion = compileSdkVersion+".0.0" //buildToolsVersion = compileSdkVersion+".0.0"
supportVersion = "27.1.0" supportVersion = "30.0.0"
} }
allprojects { allprojects {
......
...@@ -5,7 +5,8 @@ android { ...@@ -5,7 +5,8 @@ android {
defaultConfig { defaultConfig {
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 28 //noinspection ExpiredTargetSdkVersion
targetSdkVersion 26
flavorDimensions "versionCode" flavorDimensions "versionCode"
/* ndk { /* ndk {
moduleName "YGOMobile" moduleName "YGOMobile"
......
APP_ABI := armeabi-v7a x86 APP_ABI := armeabi-v7a x86
#APP_ABI := arm64-v8a
APP_PLATFORM := android-21 APP_PLATFORM := android-21
#APP_MODULES := YGOMobile #APP_MODULES := YGOMobile
#NDK_TOOLCHAIN_VERSION=4.8 #NDK_TOOLCHAIN_VERSION=4.8
...@@ -7,3 +9,5 @@ APP_ALLOW_MISSING_DEPS=true ...@@ -7,3 +9,5 @@ APP_ALLOW_MISSING_DEPS=true
APP_STL := c++_static APP_STL := c++_static
APP_CPPFLAGS := -Wno-error=format-security -std=gnu++14 -fpermissive -D__cplusplus=201402L APP_CPPFLAGS := -Wno-error=format-security -std=gnu++14 -fpermissive -D__cplusplus=201402L
APP_OPTIM := release APP_OPTIM := release
# 防止路径过长
APP_SHORT_COMMANDS := true
...@@ -6,11 +6,11 @@ android { ...@@ -6,11 +6,11 @@ android {
defaultConfig { defaultConfig {
minSdkVersion 21 minSdkVersion 21
//noinspection ExpiredTargetSdkVersion //noinspection ExpiredTargetSdkVersion
targetSdkVersion 28 targetSdkVersion 26
ndk { ndk {
moduleName "YGOMobile" moduleName "YGOMobile"
abiFilters "armeabi-v7a","x86" abiFilters "armeabi-v7a","x86","arm64-v8a"
} }
} }
......
...@@ -7,14 +7,12 @@ android { ...@@ -7,14 +7,12 @@ android {
defaultConfig { defaultConfig {
applicationId "cn.garymb.ygomobile" applicationId "cn.garymb.ygomobile"
minSdkVersion 21 minSdkVersion 21
//noinspection ExpiredTargetSdkVersion
targetSdkVersion 29 targetSdkVersion 29
versionCode 380300525 versionCode 380300525
versionName "3.8.3" versionName "3.8.3"
flavorDimensions "versionCode" flavorDimensions "versionCode"
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
ndk {
abiFilters "armeabi-v7a", "x86"
}
} }
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8
...@@ -33,6 +31,14 @@ android { ...@@ -33,6 +31,14 @@ android {
manifestPlaceholders = [APP_ID: "0488398d8a"] manifestPlaceholders = [APP_ID: "0488398d8a"]
} }
} }
splits {
abi {
enable true
reset()
include 'x86', 'armeabi-v7a', 'arm64-v8a'
universalApk true
}
}
buildTypes { buildTypes {
release { release {
shrinkResources false shrinkResources false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment