From 6d9ae74b8fe958f8411bccb8062dabe06ff703cd Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期二, 20 六月 2023 15:29:50 +0800 Subject: [PATCH] 0312 退出游戏逻辑改到activity执行 --- SdkProject/library/build.gradle | 31 +++++++++++++++++++++---------- 1 files changed, 21 insertions(+), 10 deletions(-) diff --git a/SdkProject/library/build.gradle b/SdkProject/library/build.gradle index 6fd665f..6e54e4d 100644 --- a/SdkProject/library/build.gradle +++ b/SdkProject/library/build.gradle @@ -32,14 +32,17 @@ def channelJavaFiles = getAllFiles(new ArrayList<File>(), "${channelPath}/java") android { - compileSdkVersion 29 - buildToolsVersion "28.0.1" + compileSdkVersion 28 + buildToolsVersion "28.0.3" defaultConfig { minSdkVersion 21 - targetSdkVersion 29 + //noinspection ExpiredTargetSdkVersion + targetSdkVersion 28 versionCode 1 - versionName "1.0" + multiDexEnabled true + versionCode 6 + versionName "6.0" // testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" @@ -138,7 +141,8 @@ } task deleteSdk() { - delete "${outPutPath}\\${CHANNEL_NAME}" + delete "${outPutPath}\\${CHANNEL_NAME}\\debug" + delete "${outPutPath}\\${CHANNEL_NAME}\\release" } //鎵ц鎵撳寘浠诲姟浠ュ強鎷疯礉鍒板閮� @@ -161,14 +165,18 @@ } plugins.each { deps = file("${rootPath}/plugins/${it}/deps.gradle") - deps.eachLine { line -> - if (line != null) - content += line + "\n" + if(deps.exists()){ + deps.eachLine { line -> + if (line != null) + content += line + "\n" + } } } def dir = new File("${outPutPath}\\${CHANNEL_NAME}") def libraries = new File("${outPutPath}\\${CHANNEL_NAME}\\deps.gradle") dir.mkdir() + if (libraries.exists()) + libraries.delete() if (!libraries.exists()) libraries.createNewFile() libraries.text = content @@ -176,14 +184,17 @@ dependencies { implementation 'com.android.support:support-annotations:28.0.0' - testImplementation 'junit:junit:4.13.1' + testImplementation 'junit:junit:4.13.2' //noinspection GradleCompatible - implementation 'com.android.support:appcompat-v7:28.0.0' +// implementation 'com.android.support:appcompat-v7:28.0.0' // implementation 'com.github.pqpo:Log4a:1.4.2@aar' implementation fileTree(dir: "../channel/${CHANNEL_NAME}/libs/", include: ['*.jar']) + plugins.each { + implementation fileTree(dir: "${rootPath}/plugins/${it}/libs/", include: ['*.jar']) + } implementation fileTree(dir: 'libs', include: ['*.jar'], exclude: ['unity-classes.jar']) compileOnly files('libs/unity-classes.jar') } \ No newline at end of file -- Gitblit v1.8.0