From 062fd01bf701cb6bb0e520626d8a029df83dd57f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dx=E6=9E=97?= <64101226@qq.com> Date: Wed, 8 Sep 2021 12:15:43 +0800 Subject: [PATCH] Add pm3 module. --- libpm3/.gitignore | 1 + libpm3/build.gradle | 30 +++++++++++++++++++++++++++++ libpm3/consumer-rules.pro | 0 libpm3/proguard-rules.pro | 21 ++++++++++++++++++++ libpm3/src/main/AndroidManifest.xml | 5 +++++ 5 files changed, 57 insertions(+) create mode 100644 libpm3/.gitignore create mode 100644 libpm3/build.gradle create mode 100644 libpm3/consumer-rules.pro create mode 100644 libpm3/proguard-rules.pro create mode 100644 libpm3/src/main/AndroidManifest.xml diff --git a/libpm3/.gitignore b/libpm3/.gitignore new file mode 100644 index 00000000..42afabfd --- /dev/null +++ b/libpm3/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/libpm3/build.gradle b/libpm3/build.gradle new file mode 100644 index 00000000..ec6e7f99 --- /dev/null +++ b/libpm3/build.gradle @@ -0,0 +1,30 @@ +apply plugin: 'com.android.library' + +android { + compileSdk 29 + + defaultConfig { + minSdk 21 + targetSdk 29 + versionCode 1 + versionName "1.0" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } +} + +dependencies { + + implementation 'androidx.appcompat:appcompat:1.2.0' + implementation 'com.google.android.material:material:1.3.0' + +} \ No newline at end of file diff --git a/libpm3/consumer-rules.pro b/libpm3/consumer-rules.pro new file mode 100644 index 00000000..e69de29b diff --git a/libpm3/proguard-rules.pro b/libpm3/proguard-rules.pro new file mode 100644 index 00000000..481bb434 --- /dev/null +++ b/libpm3/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/libpm3/src/main/AndroidManifest.xml b/libpm3/src/main/AndroidManifest.xml new file mode 100644 index 00000000..7316fd0e --- /dev/null +++ b/libpm3/src/main/AndroidManifest.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file