优化 Android 依赖

This commit is contained in:
v7lin
2020-06-30 23:22:10 +08:00
parent f227e8b60b
commit 48c977d933
6 changed files with 32 additions and 10 deletions

View File

@ -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'
}

View File

@ -1,4 +0,0 @@
#
-keep public class com.sina.weibo.sdk.**{*;}
-keep public class com.weibo.ssosdk.**{*;}

View File

@ -0,0 +1,4 @@
#
-keep public class com.sina.weibo.sdk.**{*;}
-keep public class com.weibo.ssosdk.**{*;}

View File

@ -1,6 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.github.v7lin.weibo_kit">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</manifest>

View File

@ -0,0 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.github.v7lin.weibo_kit">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</manifest>

View File

@ -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: