diff --git a/android/build.gradle b/android/build.gradle
index 8d6db6b..39ee311 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -40,10 +40,22 @@ android {
lintOptions {
disable 'InvalidPackage'
}
+
+ flavorDimensions 'vendor'
+
+ productFlavors {
+ vendor {
+ dimension 'vendor'
+
+ // library 混淆 -> 随 library 引用,自动添加到 apk 打包混淆
+ consumerProguardFiles 'consumer-vendor-rules.pro'
+ }
+ }
}
dependencies {
implementation 'androidx.annotation:annotation:1.0.0'
- implementation 'androidx.appcompat:appcompat:1.0.0'
- implementation 'com.sina.weibo.sdk:core:9.12.0:openDefaultRelease@aar'
+
+ vendorImplementation 'androidx.appcompat:appcompat:1.0.0'
+ vendorImplementation 'com.sina.weibo.sdk:core:9.12.0:openDefaultRelease@aar'
}
diff --git a/android/consumer-rules.pro b/android/consumer-rules.pro
index b67468a..e69de29 100644
--- a/android/consumer-rules.pro
+++ b/android/consumer-rules.pro
@@ -1,4 +0,0 @@
-# 微博
-
--keep public class com.sina.weibo.sdk.**{*;}
--keep public class com.weibo.ssosdk.**{*;}
diff --git a/android/consumer-vendor-rules.pro b/android/consumer-vendor-rules.pro
new file mode 100644
index 0000000..b67468a
--- /dev/null
+++ b/android/consumer-vendor-rules.pro
@@ -0,0 +1,4 @@
+# 微博
+
+-keep public class com.sina.weibo.sdk.**{*;}
+-keep public class com.weibo.ssosdk.**{*;}
diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml
index 0bdaa19..0e1c2bb 100644
--- a/android/src/main/AndroidManifest.xml
+++ b/android/src/main/AndroidManifest.xml
@@ -1,6 +1,3 @@
-
-
-
+ package="io.github.v7lin.weibo_kit">
diff --git a/android/src/vendor/AndroidManifest.xml b/android/src/vendor/AndroidManifest.xml
new file mode 100644
index 0000000..f18bed2
--- /dev/null
+++ b/android/src/vendor/AndroidManifest.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
diff --git a/example/pubspec.lock b/example/pubspec.lock
index 35c4572..229e601 100644
--- a/example/pubspec.lock
+++ b/example/pubspec.lock
@@ -165,6 +165,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.2"
+ pedantic:
+ dependency: "direct dev"
+ description:
+ name: pedantic
+ url: "https://pub.flutter-io.cn"
+ source: hosted
+ version: "1.9.0"
petitparser:
dependency: transitive
description: