1 Star 5 Fork 0

actor20170211030627 / MyAndroidFrameWork

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.gradle 2.84 KB
一键复制 编辑 原始数据 按行查看 历史
actor20170211030627 提交于 2024-03-21 17:04 . update to 2.1.6:
//1.在项目的 build.gradle 中添加: apply from: "config.gradle"
//或者 ext 也可写在项目的 build.gradle 中
ext {
// compileSdkVersion : 29,//rootProject.compileSdkVersion
android = [
buildToolsVersion : "29.0.0",
compileSdkVersion : 29,//rootProject.ext.android.compileSdkVersion or rootProject.ext.android["compileSdkVersion"]
minSdkVersion : 21,
targetSdkVersion : 29,
versionCode : 2024032101,//2020年xx月xx日xx(版本)
versionName : "2.1.6"
]
version = [
androidSupportSdkVersion: "28.0.0", //${version["androidSupportSdkVersion"]}
espressoSdkVersion : "3.0.1",
canarySdkVersion : "1.5.4",
]
//androidx 的依赖包
dependencies = [
// rootProject.ext.dependencies.material or rootProject.ext.dependencies["material"]
"material" : "com.google.android.material:material:1.4.0",
"appcompat_v7" : 'androidx.appcompat:appcompat:1.3.1',
"swiperefreshlayout" : 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0',
"cardview_v7" : "androidx.cardview:cardview:${version.androidSupportSdkVersion}",
"legacy_support_v4" : 'androidx.legacy:legacy-support-v4:1.0.0',
"annotations" : "androidx.annotation:annotation:1.2.0",
"androidx_recyclerview" : "androidx.recyclerview:recyclerview:1.2.1",
"androidx_viewpager" : 'androidx.viewpager:viewpager:1.0.0',
"androidx_core" : 'androidx.core:core:1.6.0',
"androidx_fragment" : 'androidx.fragment:fragment:1.4.1',
"constraint_layout" : 'androidx.constraintlayout:constraintlayout:2.1.4',
//tools
"multidex" : "androidx.multidex:multidex:1.0.3",
//test
"androidJUnitRunner" : "android.support.test.runner.AndroidJUnitRunner",
"junit" : "junit:junit:4.12",
"runner" : "androidx.test:runner:1.0.1",
"espresso-core" : "androidx.test.espresso:espresso-core:${version["espressoSdkVersion"]}",
"espresso-contrib" : "androidx.test.espresso:espresso-contrib:${version["espressoSdkVersion"]}",
"espresso-intents" : "androidx.test.espresso:espresso-intents:${version["espressoSdkVersion"]}",
"canary-debug" : "com.squareup.leakcanary:leakcanary-android:${version["canarySdkVersion"]}",
"canary-release" : "com.squareup.leakcanary:leakcanary-android-no-op:${version["canarySdkVersion"]}",
//Others
"greendao" : "org.greenrobot:greendao:3.3.0",
]
}
Android
1
https://gitee.com/actor20170211030627/MyAndroidFrameWork.git
git@gitee.com:actor20170211030627/MyAndroidFrameWork.git
actor20170211030627
MyAndroidFrameWork
MyAndroidFrameWork
master

搜索帮助