Skip to content

适配9.0和10.0 #463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions project/Libraries/DroidPlugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@ apply plugin: 'com.android.library'
dependencies {
compileOnly fileTree(dir: 'lib', include: '*.jar')
implementation fileTree(dir: 'libs', include: '*.jar')

implementation "com.android.support:support-v4:23.1.1"
implementation "com.android.support:gridlayout-v7:23.1.1"
implementation "com.android.support:cardview-v7:23.1.1"
implementation 'com.android.support:appcompat-v7:23.1.1'
implementation 'com.android.support:design:23.1.1'


//10.0解决黑名单问题
//https://zhuanlan.zhihu.com/p/59455212
//https://github.com/tiann/FreeReflection
api 'me.weishu:free_reflection:3.0.1'

//https://github.com/Guolei1130/android_p_no_sdkapi_support

//http://weishu.me/2018/06/07/free-reflection-above-android-p/

}

android {
Expand All @@ -13,18 +30,24 @@ android {
abortOnError false
}

defaultConfig{
defaultConfig {

// packagingOptions {
// doNotStrip "/armeabi/.so" doNotStrip "/armeabi-v7a/.so" doNotStrip "/x86/.so"
// }

// 建议改为自己的 packageName + .droidplugin_stub ,防止跟其它本插件使用者冲突
def authorityName = "com.morgoo.droidplugin_stub"
minSdkVersion 9
minSdkVersion 21
versionCode 1
versionName '1.0'

buildConfigField "String", "AUTHORITY_NAME", "\"${authorityName}\""
manifestPlaceholders = [
authorityName:"${authorityName}",
authorityName: "${authorityName}",
]
}



}
2 changes: 1 addition & 1 deletion project/Libraries/DroidPlugin/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-21
target=android-19
Loading