From 185358865bd95dc1f1cd543128c5c2c3de348dba Mon Sep 17 00:00:00 2001 From: Fan095 <732388462@qq.com> Date: Sat, 18 Jan 2025 22:14:16 +0800 Subject: [PATCH] add provision submodule --- provision/.gitignore | 1 + provision/build.gradle.kts | 33 ++++++++++++++++++++++++++ provision/consumer-rules.pro | 0 provision/proguard-rules.pro | 21 ++++++++++++++++ provision/src/main/AndroidManifest.xml | 4 ++++ 5 files changed, 59 insertions(+) create mode 100644 provision/.gitignore create mode 100644 provision/build.gradle.kts create mode 100644 provision/consumer-rules.pro create mode 100644 provision/proguard-rules.pro create mode 100644 provision/src/main/AndroidManifest.xml diff --git a/provision/.gitignore b/provision/.gitignore new file mode 100644 index 0000000000..42afabfd2a --- /dev/null +++ b/provision/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/provision/build.gradle.kts b/provision/build.gradle.kts new file mode 100644 index 0000000000..1d27d2c9a4 --- /dev/null +++ b/provision/build.gradle.kts @@ -0,0 +1,33 @@ +plugins { + alias(libs.plugins.android.library) +} + +android { + namespace = "com.sevtinge.provision" + compileSdk = 35 + + defaultConfig { + minSdk = 33 + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles("consumer-rules.pro") + } + + buildTypes { + release { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) + } + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_22 + targetCompatibility = JavaVersion.VERSION_22 + } +} + +dependencies { + +} \ No newline at end of file diff --git a/provision/consumer-rules.pro b/provision/consumer-rules.pro new file mode 100644 index 0000000000..e69de29bb2 diff --git a/provision/proguard-rules.pro b/provision/proguard-rules.pro new file mode 100644 index 0000000000..481bb43481 --- /dev/null +++ b/provision/proguard-rules.pro @@ -0,0 +1,21 @@ +# 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 \ No newline at end of file diff --git a/provision/src/main/AndroidManifest.xml b/provision/src/main/AndroidManifest.xml new file mode 100644 index 0000000000..a5918e68ab --- /dev/null +++ b/provision/src/main/AndroidManifest.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file