mirror of
https://github.com/RxReader/weibo_kit.git
synced 2025-05-17 15:25:56 +08:00
优化 Android 依赖
This commit is contained in:
@ -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'
|
||||
}
|
||||
|
@ -1,4 +0,0 @@
|
||||
# 微博
|
||||
|
||||
-keep public class com.sina.weibo.sdk.**{*;}
|
||||
-keep public class com.weibo.ssosdk.**{*;}
|
||||
|
4
android/consumer-vendor-rules.pro
Normal file
4
android/consumer-vendor-rules.pro
Normal file
@ -0,0 +1,4 @@
|
||||
# 微博
|
||||
|
||||
-keep public class com.sina.weibo.sdk.**{*;}
|
||||
-keep public class com.weibo.ssosdk.**{*;}
|
@ -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" />
|
||||
package="io.github.v7lin.weibo_kit">
|
||||
</manifest>
|
||||
|
6
android/src/vendor/AndroidManifest.xml
vendored
Normal file
6
android/src/vendor/AndroidManifest.xml
vendored
Normal 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>
|
@ -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:
|
||||
|
Reference in New Issue
Block a user