Compare commits
29 Commits
develop_hi
...
peko_relea
Author | SHA1 | Date | |
---|---|---|---|
![]() |
df96cfe5d4 | ||
![]() |
213efcba31 | ||
![]() |
9e36225b77 | ||
![]() |
da3d72ebff | ||
![]() |
fd3dc7cb3c | ||
![]() |
eebe231a45 | ||
![]() |
276f2002f9 | ||
![]() |
2942e2f0bb | ||
![]() |
406077b43b | ||
![]() |
55a8d037e0 | ||
![]() |
ba58b0bd40 | ||
![]() |
151b1c37d0 | ||
![]() |
4a7af141aa | ||
![]() |
cec6e00e09 | ||
![]() |
bf6ef26eca | ||
![]() |
07845b5e60 | ||
![]() |
097ead1327 | ||
![]() |
2b45d35d40 | ||
![]() |
e6f4b40e66 | ||
![]() |
c46f19f03f | ||
![]() |
37196025cc | ||
![]() |
9096a9b57f | ||
![]() |
c46c49715c | ||
![]() |
31b785c511 | ||
![]() |
6f01c5ddad | ||
![]() |
306f15f7f9 | ||
![]() |
0babbedeb9 | ||
![]() |
d09e60d206 | ||
![]() |
e37796286b |
34
android_crop_lib/build.gradle
Normal file
@@ -0,0 +1,34 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
|
||||
android {
|
||||
compileSdkVersion COMPILE_SDK_VERSION.toInteger()
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion MIN_SDK_VERSION.toInteger()
|
||||
targetSdkVersion TARGET_SDK_VERSION.toInteger()
|
||||
|
||||
testApplicationId 'com.soundcloud.android.crop.test'
|
||||
testInstrumentationRunner 'android.test.InstrumentationTestRunner'
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
buildToolsVersion = '30.0.3'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api 'androidx.annotation:annotation:1.4.0'
|
||||
api 'androidx.legacy:legacy-support-v4:1.0.0'
|
||||
implementation "androidx.core:core-ktx:1.7.0"
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
1
android_crop_lib/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1 @@
|
||||
<manifest package="com.soundcloud.android.crop" />
|
@@ -1,4 +1,4 @@
|
||||
package com.soundcloud.crop;
|
||||
package com.soundcloud.android.crop;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.app.Activity;
|
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.soundcloud.crop;
|
||||
package com.soundcloud.android.crop;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.Intent;
|
@@ -1,4 +1,4 @@
|
||||
package com.soundcloud.crop;
|
||||
package com.soundcloud.android.crop;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.soundcloud.crop;
|
||||
package com.soundcloud.android.crop;
|
||||
|
||||
import android.app.ProgressDialog;
|
||||
import android.content.ContentResolver;
|
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.soundcloud.crop;
|
||||
package com.soundcloud.android.crop;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.soundcloud.crop;
|
||||
package com.soundcloud.android.crop;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
@@ -1,4 +1,4 @@
|
||||
package com.soundcloud.crop;
|
||||
package com.soundcloud.android.crop;
|
||||
|
||||
class Log {
|
||||
|
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.soundcloud.crop;
|
||||
package com.soundcloud.android.crop;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.soundcloud.crop;
|
||||
package com.soundcloud.android.crop;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Matrix;
|
@@ -0,0 +1,48 @@
|
||||
package com.soundcloud.android.crop;
|
||||
|
||||
import android.content.Context;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.Environment;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class UriUtil {
|
||||
|
||||
public final static String getFileProviderName(Context context){
|
||||
return context.getPackageName()+".fileprovider";
|
||||
}
|
||||
|
||||
/**
|
||||
* 将TakePhoto 提供的Uri 解析出文件绝对路径
|
||||
*
|
||||
* @param uri
|
||||
* @return
|
||||
*/
|
||||
public static String parseOwnUri(Context context, Uri uri) {
|
||||
if (uri == null) return null;
|
||||
String path;
|
||||
if (TextUtils.equals(uri.getAuthority(), getFileProviderName(context))) {
|
||||
String target_text_camera_photos = "camera_photos/";
|
||||
if (uri.getPath() != null && uri.getPath().contains(target_text_camera_photos)) {
|
||||
path = new File(uri.getPath().replace(target_text_camera_photos, ""))
|
||||
.getAbsolutePath();
|
||||
} else {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
path = new File(Environment.getExternalStorageDirectory(),
|
||||
uri.getPath())
|
||||
.getAbsolutePath();
|
||||
} else {
|
||||
path = uri.getPath();
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
path = uri.getPath();
|
||||
}
|
||||
return path;
|
||||
}
|
||||
|
||||
}
|
Before Width: | Height: | Size: 76 B After Width: | Height: | Size: 76 B |
BIN
android_crop_lib/src/main/res/drawable-hdpi/crop__ic_cancel.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
android_crop_lib/src/main/res/drawable-hdpi/crop__ic_done.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 76 B After Width: | Height: | Size: 76 B |
BIN
android_crop_lib/src/main/res/drawable-mdpi/crop__ic_cancel.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
android_crop_lib/src/main/res/drawable-mdpi/crop__ic_done.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 83 B After Width: | Height: | Size: 83 B |
BIN
android_crop_lib/src/main/res/drawable-xhdpi/crop__ic_cancel.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
android_crop_lib/src/main/res/drawable-xhdpi/crop__ic_done.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
android_crop_lib/src/main/res/drawable-xhdpi/crop__tile.png
Normal file
After Width: | Height: | Size: 142 B |
@@ -9,7 +9,7 @@
|
||||
android:id="@+id/done_cancel_bar"
|
||||
layout="@layout/crop__layout_done_cancel" />
|
||||
|
||||
<com.soundcloud.crop.CropImageView
|
||||
<com.soundcloud.android.crop.CropImageView
|
||||
android:id="@+id/crop_image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
126
app/build.gradle
@@ -1,31 +1,28 @@
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
apply plugin: 'com.google.firebase.crashlytics'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'com.tencent.vasdolly'
|
||||
apply from: '../project.gradle'
|
||||
apply from: '../mob.gradle'
|
||||
|
||||
apply plugin: "com.bytedance.android.aabResGuard"
|
||||
apply plugin: "xml-class-guard"
|
||||
def onlyArm64 = Boolean.parseBoolean(only_arm64)
|
||||
|
||||
android {
|
||||
compileSdkVersion COMPILE_SDK_VERSION.toInteger()
|
||||
|
||||
defaultConfig {
|
||||
applicationId isolationMode ? 'com.example.gogo' : 'app.hiyoo.fun'
|
||||
applicationId "com.vele.pekolive"
|
||||
minSdkVersion MIN_SDK_VERSION.toInteger()
|
||||
targetSdkVersion TARGET_SDK_VERSION.toInteger()
|
||||
versionCode Integer.valueOf(version_code)
|
||||
versionName version_name
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
multiDexEnabled true
|
||||
|
||||
flavorDimensions 'default'
|
||||
buildConfigField "boolean", "ISOLATION_MODE", "$isolationMode"
|
||||
|
||||
if (isolationMode) {
|
||||
resValue "string", "app_name", "Hi-debug"
|
||||
} else {
|
||||
resValue "string", "app_name", "Hiyoo"
|
||||
}
|
||||
manifestPlaceholders = [CRASHLYTICS_COLLECTION_ENABLED: CRASHLYTICS_COLLECTION_ENABLED.toBoolean()]
|
||||
}
|
||||
|
||||
splits {
|
||||
@@ -63,7 +60,7 @@ android {
|
||||
if (abi == null) {
|
||||
abi = "universal"
|
||||
}
|
||||
outputFileName = "hiyoo_${buildType.name}_v${defaultConfig.versionName}_${abi}_${date}.apk"
|
||||
outputFileName = "piko_${buildType.name}_v${defaultConfig.versionName}_${abi}_${date}.apk"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,23 +80,24 @@ android {
|
||||
|
||||
signingConfigs {
|
||||
|
||||
debug {
|
||||
storeFile file('../app_debug.jks')
|
||||
storePassword "debug2023"
|
||||
keyAlias "debug"
|
||||
keyPassword "debug2023"
|
||||
v2 {
|
||||
storeFile file('../pekolive.jks')
|
||||
storePassword "peko2023"
|
||||
keyAlias "pekolive"
|
||||
keyPassword "peko2023"
|
||||
v2SigningEnabled true
|
||||
v1SigningEnabled true
|
||||
}
|
||||
|
||||
release {
|
||||
storeFile file('../hiyoo.jks')
|
||||
storePassword "hiyoo2023"
|
||||
keyAlias "hiyoo"
|
||||
keyPassword "hiyoo2023"
|
||||
v2SigningEnabled true
|
||||
v1 {
|
||||
storeFile file('../pekolive.jks')
|
||||
storePassword "peko2023"
|
||||
keyAlias "pekolive"
|
||||
keyPassword "peko2023"
|
||||
v2SigningEnabled false
|
||||
v1SigningEnabled true
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
@@ -149,14 +147,14 @@ android {
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
def server_url_debug = '"http://beta.api.hiyoo.fun/"'
|
||||
def server_url_release = '"https://api.hiyoo.fun/"'
|
||||
def server_url_debug = '"http://beta.api.pekolive.com/"'
|
||||
def server_url_release = '"https://api.pekolive.com/"'
|
||||
|
||||
debug {
|
||||
println("minifyEnabled = " + minify_enabled)
|
||||
|
||||
// ext.enableCrashlytics = false
|
||||
// ext.alwaysUpdateBuildId = false // Firebase Crashlytics禁用更新构建ID
|
||||
ext.enableCrashlytics = false
|
||||
ext.alwaysUpdateBuildId = false // Firebase Crashlytics禁用更新构建ID
|
||||
|
||||
buildConfigField "String", "BASE_URL", server_url_debug
|
||||
buildConfigField "String", "BASE_URL_DEBUG", "BASE_URL"
|
||||
@@ -165,7 +163,7 @@ android {
|
||||
minifyEnabled minify_enabled.toBoolean() // 是否混淆
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
crunchPngs false // 停用 PNG 压缩
|
||||
signingConfig isolationMode ? signingConfigs.debug : signingConfigs.release
|
||||
signingConfig signingConfigs.v2
|
||||
gradle.taskGraph.whenReady {
|
||||
tasks.each { task ->
|
||||
if (task.name.contains("Test") || task.name.contains("Lint")) {
|
||||
@@ -178,10 +176,10 @@ android {
|
||||
release {
|
||||
ext.enableCrashlytics = CRASHLYTICS_COLLECTION_ENABLED.toBoolean()
|
||||
ext.alwaysUpdateBuildId = CRASHLYTICS_COLLECTION_ENABLED.toBoolean()
|
||||
// firebaseCrashlytics {
|
||||
// //Firebase Crashlytics控制上传混淆文件开关
|
||||
// mappingFileUploadEnabled CRASHLYTICS_COLLECTION_ENABLED.toBoolean()
|
||||
// }
|
||||
firebaseCrashlytics {
|
||||
//Firebase Crashlytics控制上传混淆文件开关
|
||||
mappingFileUploadEnabled CRASHLYTICS_COLLECTION_ENABLED.toBoolean()
|
||||
}
|
||||
|
||||
buildConfigField "String", "BASE_URL", server_url_release
|
||||
buildConfigField "String", "BASE_URL_DEBUG", "BASE_URL"
|
||||
@@ -191,7 +189,7 @@ android {
|
||||
shrinkResources true // 开了混淆的时候才能开启 是否去除无效的资源文件
|
||||
zipAlignEnabled true // 开了混淆的时候才能开启 是否进行压缩并重排列
|
||||
crunchPngs true // 启用 PNG 压缩
|
||||
signingConfig isolationMode ? signingConfigs.debug : signingConfigs.release
|
||||
signingConfig signingConfigs.v2
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
@@ -214,8 +212,14 @@ def Lombok = "1.18.24"
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
||||
implementation fileTree(dir: 'aliyun-libs', include: ['*.jar', '*.aar'])
|
||||
implementation 'androidx.appcompat:appcompat:1.4.2'
|
||||
implementation 'com.google.android.material:material:1.6.1'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
||||
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.2'
|
||||
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2'
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
||||
|
||||
api 'androidx.multidex:multidex:2.0.1'
|
||||
|
||||
@@ -235,8 +239,9 @@ dependencies {
|
||||
api "com.github.zyyoona7:EasyPopup:1.0.2"
|
||||
api "com.github.donkingliang:LabelsView:1.6.5"
|
||||
api "com.github.yyued:SVGAPlayer-Android:2.6.1"
|
||||
implementation "com.orhanobut:logger:2.2.0"
|
||||
api "com.ms-square:expandableTextView:0.1.4"
|
||||
annotationProcessor 'androidx.annotation:annotation:1.6.0'
|
||||
annotationProcessor 'androidx.annotation:annotation:1.4.0'
|
||||
|
||||
implementation 'io.github.h07000223:flycoTabLayout:3.0.0'
|
||||
|
||||
@@ -257,7 +262,7 @@ dependencies {
|
||||
//数字滚动效果
|
||||
implementation 'com.github.YvesCheung:RollingText:1.2.3'
|
||||
// 引入原有第三方裁图源码,方便修改
|
||||
api project(':libs:lib_crop')
|
||||
api project(':android_crop_lib')
|
||||
|
||||
//rx权限请求框架
|
||||
implementation('com.github.tbruyelle:rxpermissions:0.10.2') {
|
||||
@@ -275,20 +280,20 @@ dependencies {
|
||||
|
||||
implementation 'com.github.mmin18:realtimeblurview:1.2.1'
|
||||
|
||||
// implementation 'com.appsflyer:af-android-sdk:6.8.2'
|
||||
implementation 'com.appsflyer:af-android-sdk:6.8.2'
|
||||
|
||||
implementation 'com.github.zhpanvip:BannerViewPager:3.5.6'
|
||||
|
||||
//fireBase
|
||||
// implementation platform('com.google.firebase:firebase-bom:31.1.1')
|
||||
// implementation 'com.google.firebase:firebase-crashlytics-ktx'
|
||||
// implementation 'com.google.firebase:firebase-analytics-ktx'
|
||||
implementation platform('com.google.firebase:firebase-bom:31.1.1')
|
||||
implementation 'com.google.firebase:firebase-crashlytics-ktx'
|
||||
implementation 'com.google.firebase:firebase-analytics-ktx'
|
||||
|
||||
//Adjust接入
|
||||
// implementation 'com.adjust.sdk:adjust-android:4.33.0'
|
||||
// implementation 'com.android.installreferrer:installreferrer:2.2'
|
||||
implementation 'com.adjust.sdk:adjust-android:4.33.0'
|
||||
implementation 'com.android.installreferrer:installreferrer:2.2'
|
||||
// Add the following if you are using the Adjust SDK inside web views on your app
|
||||
// implementation 'com.adjust.sdk:adjust-android-webbridge:4.33.0'
|
||||
implementation 'com.adjust.sdk:adjust-android-webbridge:4.33.0'
|
||||
|
||||
implementation 'com.github.yalantis:ucrop:2.2.7'
|
||||
|
||||
@@ -297,19 +302,16 @@ dependencies {
|
||||
//wheelView
|
||||
implementation 'com.contrarywind:wheelview:4.1.0'
|
||||
|
||||
// implementation 'tech.sud.mgp:SudMGP-static:1.3.3.1158'
|
||||
|
||||
implementation project(':modules:module_base')
|
||||
if (!isolationMode && file("../modules/module_google/build.gradle").exists()) {
|
||||
implementation project(':modules:module_google')
|
||||
}
|
||||
implementation 'tech.sud.mgp:SudMGP-static:1.3.3.1158'
|
||||
implementation 'com.google.android.material:material:1.9.0'
|
||||
}
|
||||
|
||||
channel {
|
||||
//多渠道包的输出目录,默认为new File(project.buildDir,"channel")
|
||||
outputDir = new File(project.buildDir, "channelapk")
|
||||
//多渠道包的命名规则,默认为:${appName}-${versionName}-${versionCode}-${flavorName}-${buildType}-${buildTime}
|
||||
apkNameFormat = 'hiyoo-${buildType}-${flavorName}-v${versionName}-${buildTime}'
|
||||
def only64 = onlyArm64 ? "-only64" : ""
|
||||
apkNameFormat = 'piko-${buildType}only64-${flavorName}-v${versionName}-${buildTime}'.replace("only64", only64)
|
||||
//快速模式:生成渠道包时不进行校验(速度可以提升10倍以上,默认为false)
|
||||
fastMode = false
|
||||
//buildTime的时间格式,默认格式:yyyyMMdd-HHmmss
|
||||
@@ -317,31 +319,3 @@ channel {
|
||||
//低内存模式(仅针对V2签名,默认为false):只把签名块、中央目录和EOCD读取到内存,不把最大头的内容块读取到内存,在手机上合成APK时,可以使用该模式
|
||||
lowMemory = false
|
||||
}
|
||||
|
||||
aabResGuard {
|
||||
mappingFile = file("aab-res-guard-mapping.txt").toPath() // Mapping file used for incremental obfuscation
|
||||
whiteList = [ // White list rules
|
||||
"*.R.raw.*",
|
||||
"*.R.drawable.icon"
|
||||
]
|
||||
obfuscatedBundleFileName = "duplicated-app.aab" // Obfuscated file name, must end with '.aab'
|
||||
mergeDuplicatedRes = true // Whether to allow the merge of duplicate resources
|
||||
enableFilterFiles = false // Whether to allow filter files
|
||||
filterList = [ // file filter rules
|
||||
// "*/arm64-v8a/*",
|
||||
// "META-INF/*"
|
||||
]
|
||||
|
||||
enableFilterStrings = false // switch of filter strings
|
||||
unusedStringPath = file("unused.txt").toPath() // strings will be filtered in this file
|
||||
languageWhiteList = ["en", "zh"] // keep en,en-xx,zh,zh-xx etc. remove others.
|
||||
}
|
||||
|
||||
//以下均为非必须
|
||||
xmlClassGuard {
|
||||
findAabConstraintReferencedIds = true
|
||||
//用于增量混淆的 mapping 文件
|
||||
mappingFile = file("xml-class-mapping.txt")
|
||||
//更改manifest文件的package属性,即包名
|
||||
packageChange = ["com.chwl.app": "co.ch.a"]
|
||||
}
|
39
app/google-services.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"project_info": {
|
||||
"project_number": "656602722869",
|
||||
"project_id": "pekolive-30f9e",
|
||||
"storage_bucket": "pekolive-30f9e.appspot.com"
|
||||
},
|
||||
"client": [
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:656602722869:android:dac206f8aae0ba9021f77c",
|
||||
"android_client_info": {
|
||||
"package_name": "com.vele.pekolive"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "656602722869-sss2inirem512et0015kdqjp39mqgn96.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyDDoTSpY3wxOefVDVKRmE9cDiT1iv8Ra-4"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "656602722869-sss2inirem512et0015kdqjp39mqgn96.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"configuration_version": "1"
|
||||
}
|
56
app/proguard-rules.pro
vendored
@@ -116,15 +116,20 @@
|
||||
-dontwarn com.netease.**
|
||||
-keep class com.netease.** {*;}
|
||||
|
||||
# Presenter 相关
|
||||
-keep class com.yizhuan.erban.base.** { *; }
|
||||
-keep public class * extends com.yizhuan.erban.base.BaseMvpPresenter
|
||||
-keep public class * extends com.yizhuan.xchat_android_library.base.factory.AbstractMvpPresenter
|
||||
|
||||
# 云信自定义 ViewHolder 配置
|
||||
-dontwarn com.chwl.app.ui.im.recent.holder.**
|
||||
-keep class com.chwl.app.ui.im.recent.holder.** {*;}
|
||||
-keep class com.chwl.app.ui.im.chat.** {*;}
|
||||
-keep class com.chwl.app.luckymoney.viewholder.** {*;}
|
||||
-keep class com.chwl.app.share.viewholder.** {*;}
|
||||
-keep class com.chwl.app.public_chat_hall.msg.viewholder.** {*;}
|
||||
-keep class com.chwl.app.module_hall.im.msgholder.** {*;}
|
||||
-keep class com.chwl.app.mentoring_relationship.viewholder.** {*;}
|
||||
-dontwarn com.yizhuan.erban.ui.im.recent.holder.**
|
||||
-keep class com.yizhuan.erban.ui.im.recent.holder.** {*;}
|
||||
-keep class com.yizhuan.erban.ui.im.chat.** {*;}
|
||||
-keep class com.yizhuan.erban.luckymoney.viewholder.** {*;}
|
||||
-keep class com.yizhuan.erban.share.viewholder.** {*;}
|
||||
-keep class com.yizhuan.erban.public_chat_hall.msg.viewholder.** {*;}
|
||||
-keep class com.yizhuan.erban.module_hall.im.msgholder.** {*;}
|
||||
-keep class com.yizhuan.tutu.mentoring_relationship.viewholder.** {*;}
|
||||
-keep public class * extends com.netease.nim.uikit.common.ui.recyclerview.holder.RecyclerViewHolder {*;}
|
||||
-keep public class * extends com.netease.nim.uikit.business.session.viewholder.MsgViewHolderBase {*;}
|
||||
|
||||
@@ -172,8 +177,8 @@
|
||||
-keep class com.darsh.multipleimageselect.** { *; }
|
||||
-dontwarn com.darsh.multipleimageselect.**
|
||||
|
||||
-keep class com.soundcloud.crop.** { *; }
|
||||
-dontwarn com.soundcloud.crop.**
|
||||
-keep class com.soundcloud.android.crop.** { *; }
|
||||
-dontwarn com.soundcloud.android.crop.**
|
||||
|
||||
# glide4.0
|
||||
-keep public class * implements com.bumptech.glide.module.GlideModule
|
||||
@@ -185,11 +190,6 @@
|
||||
# for DexGuard only
|
||||
#-keepresourcexmlelements manifest/application/meta-data@value=GlideModule
|
||||
|
||||
# Presenter 相关
|
||||
-keep class com.chwl.app.base.** { *; }
|
||||
-keep public class * extends com.chwl.app.base.BaseMvpPresenter
|
||||
-keep public class * extends com.chwl.library.base.factory.AbstractMvpPresenter
|
||||
|
||||
# BaseAdapter
|
||||
-keep class com.chad.library.adapter.** {
|
||||
*;
|
||||
@@ -201,8 +201,8 @@
|
||||
<init>(...);
|
||||
}
|
||||
|
||||
-dontwarn com.chwl.app.bindadapter.**
|
||||
-keep class com.chwl.app.bindadapter.** {*;}
|
||||
-dontwarn com.yizhuan.erban.bindadapter.**
|
||||
-keep class com.yizhuan.erban.bindadapter.** {*;}
|
||||
|
||||
# Ping++ 混淆过滤
|
||||
-dontwarn com.pingplusplus.**
|
||||
@@ -233,9 +233,11 @@
|
||||
|
||||
# TODO 网络加载 一些业务bean gson 时候混淆问题
|
||||
-keep class org.json.** {*;}
|
||||
-keep class com.chwl.**.bean.** {*;}
|
||||
-keep class com.chwl.**.result.** {*;}
|
||||
-keep class com.chwl.**.entity.** {*;}
|
||||
-dontwarn com.yizhuan.xchat_android_core.**
|
||||
-keep class com.yizhuan.xchat_android_core.** {*;}
|
||||
-keep class com.yizhuan.treasure_box.bean.** {*;}
|
||||
-keep class com.yizhuan.erban.avroom.bean.** {*;}
|
||||
|
||||
|
||||
#百度统计
|
||||
-keep class com.baidu.bottom.** { *; }
|
||||
@@ -308,8 +310,8 @@
|
||||
-keep class com.autonavi.aps.amapapi.model.**{*;}
|
||||
|
||||
#暂时keep这个View排查华为oom问题
|
||||
-keep class com.chwl.app.avroom.widget.MicroView{*;}
|
||||
-keep class com.chwl.app.ui.widget.rollviewpager.RollPagerView{*;}
|
||||
-keep class com.yizhuan.erban.avroom.widget.MicroView{*;}
|
||||
-keep class com.yizhuan.erban.ui.widget.rollviewpager.RollPagerView{*;}
|
||||
|
||||
#linkedMe
|
||||
-keep class com.microquation.linkedme.android.** { *; }
|
||||
@@ -367,7 +369,7 @@
|
||||
-dontwarn com.meizu.cloud.**
|
||||
-keep class com.meizu.cloud.** {*;}
|
||||
|
||||
-keep class com.chwl.app.ui.widget.AppBarLayoutBehavior {*;}
|
||||
-keep class com.yizhuan.erban.ui.widget.AppBarLayoutBehavior {*;}
|
||||
|
||||
#ViewBinding使用的反射生成的对应Binding
|
||||
-keepclassmembers class * implements androidx.viewbinding.ViewBinding {
|
||||
@@ -452,7 +454,7 @@
|
||||
}
|
||||
|
||||
## EasyPhotos
|
||||
-keep class com.chwl.library.easyphoto.models.** { *; }
|
||||
-keep class com.yizhuan.xchat_android_library.easyphoto.models.** { *; }
|
||||
|
||||
## 图片裁剪UCrop
|
||||
-dontwarn com.yalantis.ucrop.**
|
||||
@@ -477,8 +479,4 @@
|
||||
}
|
||||
-keep public class com.android.installreferrer.**{ *; }
|
||||
|
||||
-keep public class * extends java.lang.Exception
|
||||
|
||||
-keep public class com.alibaba.android.arouter.routes.**{*;}
|
||||
-keep public class com.alibaba.android.arouter.facade.**{*;}
|
||||
-keep class * implements com.alibaba.android.arouter.facade.template.ISyringe{*;}
|
||||
-keep public class * extends java.lang.Exception
|
@@ -0,0 +1,28 @@
|
||||
package com.yizhuan.erban;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
import androidx.test.platform.app.InstrumentationRegistry;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
/**
|
||||
* Instrumented test, which will execute on an Android device.
|
||||
*
|
||||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||
*/
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class ExampleInstrumentedTest {
|
||||
@Test
|
||||
public void useAppContext() throws Exception {
|
||||
// Context of the app under test.
|
||||
Context appContext = InstrumentationRegistry.getTargetContext();
|
||||
|
||||
assertEquals("com.yizhuan.erban_android_client", appContext.getPackageName());
|
||||
}
|
||||
|
||||
}
|
BIN
app/src/common/res/mipmap-xhdpi/common_ic_back.png
Normal file
After Width: | Height: | Size: 196 B |
Before Width: | Height: | Size: 156 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_back_white.png
Normal file
After Width: | Height: | Size: 196 B |
Before Width: | Height: | Size: 132 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_charge.png
Normal file
After Width: | Height: | Size: 683 B |
Before Width: | Height: | Size: 254 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_checked.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 492 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_close_red.png
Normal file
After Width: | Height: | Size: 310 B |
Before Width: | Height: | Size: 168 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_help_white.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 562 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_more.png
Normal file
After Width: | Height: | Size: 278 B |
Before Width: | Height: | Size: 152 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_more_arrow.png
Normal file
After Width: | Height: | Size: 528 B |
Before Width: | Height: | Size: 228 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_narrow.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 666 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_narrow_white.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 526 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_search_black.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 550 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_setting_grey.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 472 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_setting_white.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 552 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_share.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 518 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_share_white.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 412 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_switch_close.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 600 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_switch_open.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 732 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_team.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 466 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_team_white.png
Normal file
After Width: | Height: | Size: 916 B |
Before Width: | Height: | Size: 372 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_tutu_friends.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.1 KiB |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_tutu_friends_grey.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 974 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_unchecked.png
Normal file
After Width: | Height: | Size: 690 B |
Before Width: | Height: | Size: 280 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_unselected.png
Normal file
After Width: | Height: | Size: 642 B |
Before Width: | Height: | Size: 520 B |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_wechat.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 1.7 KiB |
BIN
app/src/common/res/mipmap-xhdpi/common_ic_wechat_grey.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.1 KiB |
BIN
app/src/common/res/mipmap-xhdpi/drawable_checkbox_selected.png
Normal file
After Width: | Height: | Size: 569 B |
Before Width: | Height: | Size: 456 B |
BIN
app/src/common/res/mipmap-xhdpi/drawable_checkbox_unselected.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 534 B |
BIN
app/src/common/res/mipmap-xhdpi/ic_private_chat.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 2.0 KiB |
BIN
app/src/common/res/mipmap-xhdpi/ic_speedymsg_close.png
Normal file
After Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 272 B |
BIN
app/src/common/res/mipmap-xhdpi/ic_user_gift_empty.png
Normal file
After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 11 KiB |
BIN
app/src/common/res/mipmap-xhdpi/ic_user_new_10dp.png
Normal file
After Width: | Height: | Size: 767 B |
Before Width: | Height: | Size: 596 B |