@@ -47,6 +47,9 @@ android {
47
47
dependencies {
48
48
implementation fileTree(include : [' *.jar' ], dir : ' libs' )
49
49
50
+ // support
51
+ implementation rootProject. ext. dependencies[" cardview-v7" ]
52
+
50
53
// tools
51
54
// 注意 Arms 核心库现在并不会依赖某个 EventBus, 要想使用 EventBus, 还请在项目中自行依赖对应的 EventBus
52
55
// 现在支持两种 EventBus, greenrobot 的 EventBus 和畅销书 《Android源码设计模式解析与实战》的作者 何红辉 所作的 AndroidEventBus
@@ -69,17 +72,20 @@ dependencies {
69
72
70
73
// arms
71
74
implementation project(' :arms' )
75
+ // Github 仓库上最新的 Demo 具有下一个版本的新特性, 所以依赖最新的远程库会出现版本不兼容的情况, 详情请查看 https://github.com/JessYanCoding/MVPArms/wiki/Issues#2
76
+ // implementation 'me.jessyan:arms:2.5.0'
77
+
78
+ // Arms 核心库不再包含 AndroidAutoLayout, 现在可自行选择屏幕适配方案, 不想使用 AndroidAutoLayout 就不要依赖 arms-autolayout
79
+ // implementation 'me.jessyan:arms-autolayout:2.5.0'
72
80
73
- // Arms 核心库不再包含 AndroidAutoLayout, 可自行选择屏幕适配方案, 不想使用 AndroidAutoLayout 就不要依赖 arms-autolayout
74
- implementation ' me.jessyan:arms-autolayout:2.5.0'
81
+ // 现在已经将 Demo 中的屏幕适配框架从 AndroidAutoLayout 替换为 AndroidAutoSize, AndroidAutoLayout 和 AndroidAutoSize 可以在项目中共存
82
+ // 所以旧项目只要依赖 arms-autolayout 即可兼容之前的旧页面, 新页面使用 AndroidAutoSize 进行适配即可
83
+ // implementation rootProject.ext.dependencies["autosize"]
75
84
76
85
// Arms 核心库不再包含 Glide, 想使用其他图片加载框架或者想自行扩展 ImageLoaderStrategy 就不要依赖 arms-imageloader-glide
77
86
// 依赖 arms-imageloader-glide 后还需要在 GlobalConfiguration 中手动注册 GlideImageLoaderStrategy
78
87
implementation ' me.jessyan:arms-imageloader-glide:2.5.0'
79
88
80
- // Github 仓库上最新的 Demo 具有下一个版本的新特性, 所以依赖最新的远程库会出现版本不兼容的情况, 详情请查看 https://github.com/JessYanCoding/MVPArms/wiki/Issues#2
81
- // implementation 'me.jessyan:arms:2.5.0'
82
-
83
89
// test
84
90
testImplementation rootProject. ext. dependencies[" junit" ]
85
91
debugImplementation rootProject. ext. dependencies[" canary-debug" ]
0 commit comments