diff --git a/Candy916/build.gradle b/Candy916/build.gradle index 490cb11..7fd76f0 100644 --- a/Candy916/build.gradle +++ b/Candy916/build.gradle @@ -42,7 +42,7 @@ android { applicationVariants.all { variant -> variant.outputs.all { - def appName = "dn99" + def appName = "candy916" def outputDir = new File(rootProject.ext.outputPath) // 创建输出目录 outputDir.mkdirs() diff --git a/Kejapjudi/build.gradle b/Kejapjudi/build.gradle index 4c40ebf..6e3c02b 100644 --- a/Kejapjudi/build.gradle +++ b/Kejapjudi/build.gradle @@ -42,7 +42,7 @@ android { applicationVariants.all { variant -> variant.outputs.all { - def appName = "dn99" + def appName = "Kejapjudi" def outputDir = new File(rootProject.ext.outputPath) // 创建输出目录 outputDir.mkdirs() diff --git a/README.md b/README.md index e8bcb76..0f5eead 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,9 @@ 10.base module 实现所有的功能逻辑 软件app入口通过继承 base的 MainActivity2 扩展 -11.新增统一命令行打包、指定apk名字的路径配置 所有项目统一版本管理 ./gradlew assembleRelease +11.新增统一命令行打包、指定apk名字的路径配置 所有项目统一版本管理 + +12.打包命令 ./gradlew assembleRelease 或者 Gradle/Tasks/build/assemble diff --git a/agn888new/build.gradle b/agn888new/build.gradle index d4e8b18..0478134 100644 --- a/agn888new/build.gradle +++ b/agn888new/build.gradle @@ -42,7 +42,7 @@ android { applicationVariants.all { variant -> variant.outputs.all { - def appName = "dn99" + def appName = "agn888new" def outputDir = new File(rootProject.ext.outputPath) // 创建输出目录 outputDir.mkdirs() diff --git a/amb88/build.gradle b/amb88/build.gradle index 8f38a36..14e8cee 100644 --- a/amb88/build.gradle +++ b/amb88/build.gradle @@ -41,7 +41,7 @@ android { applicationVariants.all { variant -> variant.outputs.all { - def appName = "dn99" + def appName = "amb88" def outputDir = new File(rootProject.ext.outputPath) // 创建输出目录 outputDir.mkdirs() diff --git a/cekap33/build.gradle b/cekap33/build.gradle index c51171e..0b7ef1d 100644 --- a/cekap33/build.gradle +++ b/cekap33/build.gradle @@ -42,7 +42,7 @@ android { applicationVariants.all { variant -> variant.outputs.all { - def appName = "dn99" + def appName = "cekap33" def outputDir = new File(rootProject.ext.outputPath) // 创建输出目录 outputDir.mkdirs() diff --git a/we1win/.gitignore b/we1win/.gitignore new file mode 100644 index 0000000..956c004 --- /dev/null +++ b/we1win/.gitignore @@ -0,0 +1,2 @@ +/build +/release \ No newline at end of file diff --git a/we1win/build.gradle b/we1win/build.gradle new file mode 100644 index 0000000..4ae5848 --- /dev/null +++ b/we1win/build.gradle @@ -0,0 +1,82 @@ +plugins { + id 'com.android.application' + id 'com.google.gms.google-services' +} + +android { + compileSdkVersion 31 + buildToolsVersion "30.0.3" + + defaultConfig { + applicationId "com.web.we1win" + minSdkVersion 24 + targetSdkVersion 31 + versionCode rootProject.ext.versionCode + versionName rootProject.ext.versionName + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + + signingConfigs { + debug { + storeFile file('ppn.jks') + storePassword "2014123456" + keyAlias 'key0' + keyPassword "2014123456" + } + release { + storeFile file('ppn.jks') + storePassword "2014123456" + keyAlias 'key0' + keyPassword "2014123456" + } + } + + buildTypes { + release { + signingConfig signingConfigs.release + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "we1win" + def outputDir = new File(rootProject.ext.outputPath) + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } +} + +dependencies { + implementation project(path: ':base') +} \ No newline at end of file diff --git a/we1win/ppn.jks b/we1win/ppn.jks new file mode 100644 index 0000000..5898029 Binary files /dev/null and b/we1win/ppn.jks differ diff --git a/we1win/proguard-rules.pro b/we1win/proguard-rules.pro new file mode 100644 index 0000000..107b7ee --- /dev/null +++ b/we1win/proguard-rules.pro @@ -0,0 +1,32 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile + +-dontwarn dalvik.** +-dontwarn com.tencent.smtt.** + +-keep class com.tencent.smtt.** { + *; +} + +-keep class com.tencent.tbs.** { + *; +} \ No newline at end of file