diff --git a/app/build.gradle b/app/build.gradle
index 42b5c98..b44dd96 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -3,83 +3,91 @@ apply plugin: 'kotlin-android'
//自定义方法
def releaseTime(){
- return new Date().format("yyyyMMdd",java.util.TimeZone.getTimeZone("UTC"))
+ return new Date().format("yyyyMMdd",java.util.TimeZone.getTimeZone("UTC"))
}
android {
- compileSdkVersion 30
+ compileSdkVersion 30
buildToolsVersion "30.0.3"
ndkVersion '23.0.7599858'
- ndkPath '/root/android/android-ndk'
-
- buildFeatures {
- dataBinding true
- viewBinding true
+ ndkPath '/root/android/android-ndk'
+
+ buildFeatures {
+ dataBinding true
+ viewBinding true
}
-
- defaultConfig {
- applicationId "com.ecodemo.silk"
- minSdkVersion 21
- targetSdkVersion 30
- versionCode 20
- versionName "1.1.4"
- multiDexEnabled true
-
- externalNativeBuild {
- cmake {
- cppFlags ""
- //arguments "-DANDROID_STL=c++_shared"
- abiFilters 'arm64-v8a', 'x86'
- }
+
+ defaultConfig {
+ applicationId "com.ecodemo.silk"
+ minSdkVersion 21
+ targetSdkVersion 30
+ versionCode 23
+ versionName "1.1.7"
+ multiDexEnabled true
+
+ externalNativeBuild {
+ cmake {
+ cppFlags ""
+ //arguments "-DANDROID_STL=c++_shared"
+ abiFilters 'arm64-v8a'
+ //abiFilters 'armeabi-v7a'
}
- }
+ }
+ }
+
+ lintOptions {
+ abortOnError false
+ }
- lintOptions {
- abortOnError false
+ buildTypes {
+ debug{
+ minifyEnabled false
+ zipAlignEnabled false
+ shrinkResources false
+ // signingConfig signingConfigs.release
}
-
- buildTypes {
- debug{
- minifyEnabled false
- zipAlignEnabled false
- shrinkResources false
- //signingConfig signingConfigs.release
- }
- release {
- minifyEnabled true
- multiDexEnabled true
- zipAlignEnabled true
- //signingConfig signingConfigs.release
- //proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
+ release {
+ minifyEnabled true
+ multiDexEnabled true
+ zipAlignEnabled true
+ // signingConfig signingConfigs.release
+ //proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
-
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ //修改生成的apk名字,格式为 app名_版本号_打包时间_渠道名_release.apk
+ applicationVariants.all{ variant->
+ variant.outputs.all{
+ outputFileName= "Silk解码器_${defaultConfig.versionName}_${releaseTime()}.apk"
}
-
- //修改生成的apk名字,格式为 app名_版本号_打包时间_渠道名_release.apk
- applicationVariants.all{ variant->
- variant.outputs.all{
- outputFileName= "Silk解码器_${defaultConfig.versionName}_${releaseTime()}.apk"
- }
+ }
+
+
+ externalNativeBuild {
+ cmake {
+ path "src/main/cpp/CMakeLists.txt"
+ version "3.19.8"
}
-
-
- externalNativeBuild {
- cmake {
- path "src/main/cpp/CMakeLists.txt"
- version "3.19.8"
- }
+ }
+}
+
+repositories {
+ flatDir {
+ dirs 'libs'
}
}
dependencies {
- implementation fileTree(dir: "libs", include: ["*.jar"])
+ implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
- implementation 'androidx.core:core-ktx:1.3.1'
- implementation 'androidx.multidex:multidex:2.0.1'
- implementation 'androidx.recyclerview:recyclerview:1.1.0'
- implementation 'androidx.documentfile:documentfile:1.0.1'
+ implementation 'androidx.core:core-ktx:1.3.1'
+ implementation 'androidx.multidex:multidex:2.0.1'
+ implementation 'androidx.recyclerview:recyclerview:1.1.0'
+ implementation 'androidx.documentfile:documentfile:1.0.1'
+ //compile(name:'FFmpegAndroid', ext:'aar')
}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index d2f207d..c472c12 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -2,12 +2,15 @@
+MIT License
+
+Copyright (c) 2022 Ecodemo
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.