提交 138d152c 编写于 作者: J jackjintai

modify:

1、新代码分支
上级 06562162
......@@ -99,6 +99,7 @@ dependencies {
implementation rootProject.ext.dependencies["weex_sdk"]
implementation rootProject.ext.dependencies["utilcode"]
implementation rootProject.ext.dependencies["easypermissions"]
implementation rootProject.ext.dependencies["epic"]
releaseImplementation rootProject.ext.dependencies["okgo"]
//高德地图定位
implementation rootProject.ext.dependencies["amap_location"]
......
......@@ -4,6 +4,7 @@ import android.app.Activity
import android.app.Application
import android.content.Context
import android.content.Intent
import android.util.Log
import androidx.multidex.MultiDex
import com.didichuxing.doraemondemo.WebViewActivity
import com.didichuxing.doraemondemo.dokit.DemoKit
......@@ -11,6 +12,8 @@ import com.didichuxing.doraemonkit.DoraemonKit
import com.didichuxing.doraemonkit.kit.AbstractKit
import com.facebook.drawee.backends.pipeline.Fresco
import com.facebook.imagepipeline.core.ImagePipelineConfig
import com.taobao.android.dexposed.DexposedBridge
import com.taobao.android.dexposed.XC_MethodHook
import java.util.*
/**
......@@ -38,6 +41,13 @@ class App : Application() {
intent.putExtra(WebViewActivity.KEY_URL, url)
startActivity(intent)
}
DexposedBridge.findAndHookMethod(Thread::class.java, "run", object : XC_MethodHook() {
override fun afterHookedMethod(param: MethodHookParam?) {
super.afterHookedMethod(param)
Log.i(TAG, "param==>${param.toString()}")
}
})
//严格检查模式
//StrictMode.enableDefaults();
}
......
......@@ -27,66 +27,68 @@ ext {
kotlin_version : "1.3.71"
]
dependencies = [// ###### android library start ######
"multidex" : 'androidx.multidex:multidex:2.0.0',
"appcompat" : 'androidx.appcompat:appcompat:1.0.0',
"cardview" : 'androidx.cardview:cardview:1.0.0',
"recyclerview" : 'androidx.recyclerview:recyclerview:1.0.0',
"design" : 'com.google.android.material:material:1.0.0',
"kotlin" : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${android["kotlin_version"]}",
"multidex" : 'androidx.multidex:multidex:2.0.0',
"appcompat" : 'androidx.appcompat:appcompat:1.0.0',
"cardview" : 'androidx.cardview:cardview:1.0.0',
"recyclerview" : 'androidx.recyclerview:recyclerview:1.0.0',
"design" : 'com.google.android.material:material:1.0.0',
"kotlin" : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${android["kotlin_version"]}",
//constraintLayout
"constraintLayout" : 'androidx.constraintlayout:constraintlayout:1.1.3',
"constraintLayout" : 'androidx.constraintlayout:constraintlayout:1.1.3',
//test
"junit" : "junit:junit:4.12",
"junit" : "junit:junit:4.12",
//第三方
"guava" : "com.google.guava:guava:27.1-android",
"guava" : "com.google.guava:guava:27.1-android",
//表格
//"SmartTable" : 'com.github.huangyanbin:SmartTable:2.2.0',
"retrofit2" : "com.squareup.retrofit2:retrofit:2.8.1",
"retrofit2_rxjava2" : "com.squareup.retrofit2:adapter-rxjava2:2.8.1",
"retrofit2_gson" : "com.squareup.retrofit2:converter-gson:2.8.1",
"retrofit2" : "com.squareup.retrofit2:retrofit:2.8.1",
"retrofit2_rxjava2" : "com.squareup.retrofit2:adapter-rxjava2:2.8.1",
"retrofit2_gson" : "com.squareup.retrofit2:converter-gson:2.8.1",
//暂时不支持3.14.0以上的okhttp版本
"okhttp" : "com.squareup.okhttp3:okhttp:3.12.1",
"okhttp_v2" : "com.squareup.okhttp:okhttp:2.7.5",
"okhttp" : "com.squareup.okhttp3:okhttp:3.12.1",
"okhttp_v2" : "com.squareup.okhttp:okhttp:2.7.5",
//将urlconnection代理到okhttp
//"okhttp_urlconnection" : "com.squareup.okhttp3:okhttp-urlconnection:3.12.1",
//"okio" : "com.squareup.okio:okio:1.15.0",
"utilcode" : 'com.blankj:utilcodex:1.28.0',
"glide" : "com.github.bumptech.glide:glide:${android["glide_version"]}",
"glide_v3" : 'com.github.bumptech.glide:glide:3.8.0',
"glide_okhttp3" : "com.github.bumptech.glide:okhttp3-integration:${android["glide_version"]}",
"glide_compiler" : "com.github.bumptech.glide:compiler:${android["glide_version"]}",
"picasso" : 'com.squareup.picasso:picasso:2.71828',
"fresco" : 'com.facebook.fresco:fresco:1.13.0',
"fresco-processors" : "jp.wasabeef:fresco-processors:2.1.0",
"image-loader" : 'com.nostra13.universalimageloader:universal-image-loader:1.9.5',
"rootbeer-lib" : 'com.scottyab:rootbeer-lib:0.0.8',
"gson" : 'com.google.code.gson:gson:2.8.2',
"zxing" : 'com.google.zxing:core:3.3.0',
"free_reflection" : 'me.weishu:free_reflection:2.1.0',
"leakcanary-android" : 'com.squareup.leakcanary:leakcanary-android:2.2',
"haha" : 'com.squareup.haha:haha:2.0.4',
"debug-db" : "com.amitshekhar.android:debug-db:1.0.6",
"debug-db-encrypt" : "com.amitshekhar.android:debug-db-encrypt:1.0.6",
"weex_inspector" : "com.taobao.android:weex_inspector:0.24.2.11",
"weex_sdk" : "com.taobao.android:weex_sdk:0.26.0",
"brvah" : 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.2',
"easy_refresh_layout" : 'com.github.anzaizai:EasyRefreshLayout:1.3.1',
"android_spinkit" : 'com.github.ybq:Android-SpinKit:1.4.0',
"jsonviewer" : "com.yuyh.json:jsonviewer:1.0.6",
"room_runtime" : 'androidx.room:room-runtime:2.0.0',
"room_compile" : 'androidx.room:room-compiler:2.0.0',
"um_analytics" : 'com.umeng.umsdk:analytics:8.0.0',
"um_common" : 'com.umeng.umsdk:common:2.0.0',
"didi_http" : 'com.didichuxing.foundation:http:2.1.0.74',
"didi_rpc" : 'com.didichuxing.foundation:rpc:2.1.0.74',
"okgo" : "com.lzy.net:okgo:3.0.4",
"utilcode" : 'com.blankj:utilcodex:1.28.0',
"glide" : "com.github.bumptech.glide:glide:${android["glide_version"]}",
"glide_v3" : 'com.github.bumptech.glide:glide:3.8.0',
"glide_okhttp3" : "com.github.bumptech.glide:okhttp3-integration:${android["glide_version"]}",
"glide_compiler" : "com.github.bumptech.glide:compiler:${android["glide_version"]}",
"picasso" : 'com.squareup.picasso:picasso:2.71828',
"fresco" : 'com.facebook.fresco:fresco:1.13.0',
"fresco-processors" : "jp.wasabeef:fresco-processors:2.1.0",
"image-loader" : 'com.nostra13.universalimageloader:universal-image-loader:1.9.5',
"rootbeer-lib" : 'com.scottyab:rootbeer-lib:0.0.8',
"gson" : 'com.google.code.gson:gson:2.8.2',
"zxing" : 'com.google.zxing:core:3.3.0',
"free_reflection" : 'me.weishu:free_reflection:2.1.0',
"leakcanary-android" : 'com.squareup.leakcanary:leakcanary-android:2.2',
"haha" : 'com.squareup.haha:haha:2.0.4',
"debug-db" : "com.amitshekhar.android:debug-db:1.0.6",
"debug-db-encrypt" : "com.amitshekhar.android:debug-db-encrypt:1.0.6",
"weex_inspector" : "com.taobao.android:weex_inspector:0.24.2.11",
"weex_sdk" : "com.taobao.android:weex_sdk:0.26.0",
"brvah" : 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.2',
"easy_refresh_layout": 'com.github.anzaizai:EasyRefreshLayout:1.3.1',
"android_spinkit" : 'com.github.ybq:Android-SpinKit:1.4.0',
"jsonviewer" : "com.yuyh.json:jsonviewer:1.0.6",
"room_runtime" : 'androidx.room:room-runtime:2.0.0',
"room_compile" : 'androidx.room:room-compiler:2.0.0',
"um_analytics" : 'com.umeng.umsdk:analytics:8.0.0',
"um_common" : 'com.umeng.umsdk:common:2.0.0',
"didi_http" : 'com.didichuxing.foundation:http:2.1.0.74',
"didi_rpc" : 'com.didichuxing.foundation:rpc:2.1.0.74',
"okgo" : "com.lzy.net:okgo:3.0.4",
//高德地图定位
"amap_location" : 'com.amap.api:location:latest.integration',
"amap_location" : 'com.amap.api:location:latest.integration',
//腾讯地图定位
"tencent_location" : 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.2.5',
"easypermissions" : "pub.devrel:easypermissions:2.0.1",
"tencent_location" : 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.2.5',
"easypermissions" : "pub.devrel:easypermissions:2.0.1",
//跨进程通信框架
"abridge" : "com.sjtu.yifei:abridge:1.0.1"
"abridge" : "com.sjtu.yifei:abridge:1.0.1",
//aop hook
"epic" : 'me.weishu:epic:0.6.0'
]
}
......@@ -7,14 +7,17 @@ import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.PixelFormat;
import android.graphics.Point;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import androidx.annotation.IdRes;
import androidx.annotation.StringRes;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.MotionEvent;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册