From 35a4881e96a193d8a4d2c5703fbb8965314aff1b Mon Sep 17 00:00:00 2001 From: fanhuitong <981964879@qq.com> Date: Fri, 8 Oct 2021 20:52:31 +0800 Subject: [PATCH] date:2021-10-08 20:52:24 --- app/build.gradle | 58 ++++++++++++++++++++++++++++++++++++++---------- build.gradle | 6 +++++ 2 files changed, 52 insertions(+), 12 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 3d304d2..da2d1d2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -219,9 +219,16 @@ dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation project(':viewlibrary') implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - implementation 'androidx.core:core-ktx:1.1.0' - implementation 'androidx.appcompat:appcompat:1.1.0' - implementation 'androidx.constraintlayout:constraintlayout:1.1.3' + implementation 'androidx.core:core-ktx:1.6.0' + implementation 'androidx.appcompat:appcompat:1.3.1' + //constraintlayout:2.0.4以上在Android studio 3.6.2不能预览 +// implementation 'androidx.constraintlayout:constraintlayout:2.0.4' + implementation 'androidx.constraintlayout:constraintlayout:2.1.1' + implementation 'androidx.preference:preference:1.1.1' + implementation 'androidx.cardview:cardview:1.0.0' + implementation 'androidx.recyclerview:recyclerview:1.2.1' + implementation "androidx.security:security-crypto:1.1.0-alpha03" + testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' @@ -229,15 +236,15 @@ dependencies { //极光推送 implementation 'cn.jiguang.sdk:jpush:3.8.6' // 此处以JPush 3.7.0 版本为例。 implementation 'cn.jiguang.sdk:jcore:2.6.0' // 此处以JCore 2.4.2 版本为例。 - //okhttp - implementation 'com.squareup.okhttp3:okhttp:4.6.0' - //RxJava和Retrofit + //RxJava implementation 'io.reactivex.rxjava2:rxjava:2.2.5' implementation 'io.reactivex.rxjava2:rxandroid:2.1.0' + //okhttp + implementation 'com.squareup.okhttp3:okhttp:4.6.0' + //Retrofit implementation 'com.squareup.retrofit2:retrofit:2.3.0' implementation 'com.squareup.retrofit2:converter-gson:2.3.0' implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0' - ////json解析 //Gson implementation 'com.google.code.gson:gson:2.8.6' //Jackson @@ -248,10 +255,11 @@ dependencies { annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0' //二维码 implementation 'com.google.zxing:core:3.3.0' - - //个人 - //更换字体框架 - implementation 'uk.co.chrisjenx:calligraphy:2.3.0' + implementation 'com.google.android.material:material:1.4.0' + //MMKV + implementation 'com.tencent:mmkv-static:1.2.10' + //内存泄漏检测 + debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7' ////图片加载框架 //Glide implementation 'com.github.bumptech.glide:glide:4.11.0' @@ -260,8 +268,34 @@ dependencies { implementation 'com.facebook.fresco:fresco:2.2.0' //Picasso implementation 'com.squareup.picasso:picasso:2.71828' + + + + //个人 + //utilcode工具类 + implementation 'com.blankj:utilcodex:1.30.6' + //更换字体框架 + implementation 'uk.co.chrisjenx:calligraphy:2.3.0' //屏幕适配方案 //https://github.com/JessYanCoding/AndroidAutoSize implementation 'me.jessyan:autosize:1.2.1' - + //滑动关闭当前 Activity + implementation 'com.r0adkll:slidableactivity:2.1.0' + //圆角 + implementation 'de.hdodenhof:circleimageview:2.2.0' + //圆角ImageView + implementation 'com.github.zane618:NiceImageView:1.0.0' + // 权限请求框架:https://github.com/getActivity/XXPermissions + implementation 'com.github.getActivity:XXPermissions:12.3' + //动态权限框架 + implementation 'com.yanzhenjie:permission:2.0.3' + //沉浸状态栏 + implementation 'com.gitee.zackratos:UltimateBarX:0.7.1' + implementation 'com.gyf.barlibrary:barlibrary:2.2.8' + // // 基础依赖包,必须要依赖 +// implementation 'com.gyf.immersionbar:immersionbar:3.0.0' +// // fragment快速实现(可选) +// implementation 'com.gyf.immersionbar:immersionbar-components:3.0.0' +// // kotlin扩展(可选) +// implementation 'com.gyf.immersionbar:immersionbar-ktx:3.0.0' } \ No newline at end of file diff --git a/build.gradle b/build.gradle index ecf3600..0b103e4 100644 --- a/build.gradle +++ b/build.gradle @@ -4,6 +4,9 @@ buildscript { repositories { google() jcenter() + maven { + url "https://jitpack.io" + } } dependencies { classpath "com.android.tools.build:gradle:3.6.4" @@ -18,6 +21,9 @@ allprojects { repositories { google() jcenter() + maven { + url "https://jitpack.io" + } } }