Commit 33e6c686 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 8b181a1c
......@@ -12,8 +12,8 @@ android {
applicationId "com.mints.wisdomclean"
minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 8
versionName "1.0.7"
versionCode 1
versionName "1.0.0"
flavorDimensions "default"
// dex突破65535的限制
......@@ -64,7 +64,6 @@ android {
buildConfigField "String", "GROMORE_APP_ID", GROMORE_APP_ID
buildConfigField "String", "GROMORE_SPLASH_CODE", GROMORE_SPLASH_CODE
buildConfigField "String", "WEIXIN_APP_PAY_ID", WEIXIN_APP_PAY_ID
buildConfigField "String", "RELEASE_TALKING_DATA_KEY", RELEASE_TALKING_DATA_KEY
//混淆
minifyEnabled false
......@@ -83,7 +82,6 @@ android {
buildConfigField "String", "GROMORE_APP_ID", GROMORE_APP_ID
buildConfigField "String", "GROMORE_SPLASH_CODE", GROMORE_SPLASH_CODE
buildConfigField "String", "WEIXIN_APP_PAY_ID", WEIXIN_APP_PAY_ID
buildConfigField "String", "RELEASE_TALKING_DATA_KEY", RELEASE_TALKING_DATA_KEY
//混淆
minifyEnabled true
......@@ -185,7 +183,7 @@ dependencies {
implementation 'com.guolindev.permissionx:permissionx:1.6.4'
// 图片加载
implementation 'com.github.bumptech.glide:glide:4.11.0'
implementation 'com.google.android.ads:mediation-test-suite:2.0.0'
implementation 'com.google.code.gson:gson:2.8.5'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
// 65536
implementation 'androidx.multidex:multidex:2.0.1'
......@@ -207,41 +205,30 @@ dependencies {
implementation 'com.daimajia.androidanimations:library:2.3@aar'
// 圆角
implementation 'com.github.open-android:RoundedImageView:v1.0.0'
// 跑马灯
implementation 'com.sunfusheng:MarqueeView:1.4.1'
// 光效
implementation 'io.supercharge:shimmerlayout:2.1.0'
// 悬浮窗
implementation 'com.github.princekin-f:EasyFloat:1.3.4'
implementation 'com.airbnb.android:lottie:3.4.0'
implementation 'com.zolad:videoslimmer:1.0.0'
implementation 'cn.jzvd:jiaozivideoplayer:7.7.0'
// 工具类
// BASE64Decoder
// implementation files('libs/sun.misc.BASE64Decoder.jar')
// BASE64Decoder接入
// 兼容奔溃问题-Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
implementation 'androidx.work:work-runtime-ktx:2.7.1'
// 三方接入
// talkingdata接入
// 支付
api project(':rxpay')
api project(':wxpay')
// , {
// exclude group: 'com.tencent.mm.opensdk', module: 'wechat-sdk-android-with-mta'
// }
api project(':alipay')
api project(':oaid')
// bugly
implementation 'com.tencent.bugly:crashreport:3.3.92'
implementation 'com.tencent.bugly:nativecrashreport:3.0'
// 应用管理中心分包
// 头条分包接入
// sharesdk
implementation 'com.squareup:javawriter:2.1.1'
// umeng
// umeng 接入
// 穿山甲聚合 接入【穿山甲、快手】
testImplementation 'junit:junit:4.13.2'
......
......@@ -6,12 +6,6 @@
<!-- 业务使用权限 -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission
android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage" />
<uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
<application
android:name=".MintsApplication"
......@@ -88,9 +82,6 @@
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoneTranslucent" />
<activity
android:name="com.mints.library.base.BaseWebActivity"
android:theme="@style/AppTheme.NoneTranslucent" />
<activity
android:name=".ui.activitys.WebActivity"
android:exported="false"
......@@ -169,7 +160,5 @@
android:authorities="${applicationId}.TTMultiProvider"
android:exported="false" />
<!-- Pangle end================== -->
</application>
</manifest>
\ No newline at end of file
......@@ -11,16 +11,14 @@ import com.downloader.PRDownloader;
import com.downloader.PRDownloaderConfig;
import com.mints.wisdomclean.ad.TTGroMoreAdManagerHolder;
import com.mints.wisdomclean.common.Constant;
import com.mints.wisdomclean.manager.TalkingDataManager;
import com.mints.wisdomclean.manager.UmengManager;
import com.mints.wisdomclean.net.LoanService;
import com.mints.wisdomclean.utils.AppPreferencesManager;
import com.mints.wisdomclean.utils.MateUtils;
import com.mints.wisdomclean.utils.ForegroundOrBackground;
import com.mints.wisdomclean.utils.MateUtils;
import com.orhanobut.logger.AndroidLogAdapter;
import com.orhanobut.logger.FormatStrategy;
import com.orhanobut.logger.Logger;
import com.mints.oaid.MiitHelper;
import com.orhanobut.logger.PrettyFormatStrategy;
import com.tencent.bugly.crashreport.CrashReport;
......
package com.mints.wisdomclean.manager
import android.app.Application
import com.mints.wisdomclean.BuildConfig
import com.mints.wisdomclean.utils.MateUtils
import com.tendcloud.tenddata.TCAgent
/**
* TalkingData
*/
object TalkingDataManager {
private const val APP_KEY =BuildConfig.RELEASE_TALKING_DATA_KEY
fun init(application:Application) {
try {
//打开日志
TCAgent.LOG_ON = BuildConfig.LOG_DEBUG
//初始化-APPID-渠道ID
/**
* 动态获取渠道ID(类似友盟)
* AppID说是xml文件里的密钥?
*/
TCAgent.init(application, APP_KEY
, MateUtils.getAppMetaData(application, "CHANNEL_NAME"))
/**
* true-开启自动捕获错误
*/
TCAgent.setReportUncaughtExceptions(true)
} catch (e: Exception) {
e.printStackTrace()
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment