加密3
This commit is contained in:
2
.idea/compiler.xml
generated
2
.idea/compiler.xml
generated
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<bytecodeTargetLevel target="21" />
|
||||
<bytecodeTargetLevel target="17" />
|
||||
</component>
|
||||
</project>
|
||||
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -4,7 +4,7 @@
|
||||
<component name="FrameworkDetectionExcludesConfiguration">
|
||||
<file type="web" url="file://$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="jbr-21" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-21" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
||||
@@ -11,7 +11,7 @@ android {
|
||||
minSdk 29
|
||||
targetSdk 34
|
||||
versionCode 1
|
||||
versionName "1.6.5 beta"
|
||||
versionName "2.0.0"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
@@ -27,7 +27,7 @@ android {
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
38
app/proguard-rules.pro
vendored
38
app/proguard-rules.pro
vendored
@@ -1,21 +1,21 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
# 保护除指定类外的所有类和成员不被混淆
|
||||
-keep class !org.astral.findmaimaiultra.service.InMemoryJarLoader, !org.astral.findmaimaiultra.been.faker.SegaApi2025, * { *; }
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
# 保留必要的属性(这些是Android运行所必需的)
|
||||
-keepattributes Signature
|
||||
-keepattributes *Annotation*
|
||||
-keepattributes Exceptions
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
-keepattributes EnclosingMethod
|
||||
-keepattributes InnerClasses
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
# 添加 missing_rules.txt 中的规则以解决警告
|
||||
-dontwarn org.bouncycastle.jsse.BCSSLParameters
|
||||
-dontwarn org.bouncycastle.jsse.BCSSLSocket
|
||||
-dontwarn org.bouncycastle.jsse.provider.BouncyCastleJsseProvider
|
||||
-dontwarn org.conscrypt.Conscrypt$Version
|
||||
-dontwarn org.conscrypt.Conscrypt
|
||||
-dontwarn org.conscrypt.ConscryptHostnameVerifier
|
||||
-dontwarn org.openjsse.javax.net.ssl.SSLParameters
|
||||
-dontwarn org.openjsse.javax.net.ssl.SSLSocket
|
||||
-dontwarn org.openjsse.net.ssl.OpenJSSE
|
||||
|
||||
@@ -1,24 +1,30 @@
|
||||
package org.astral.findmaimaiultra.been.faker;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
public class MaimaiConfig {
|
||||
/**
|
||||
* API接口地址
|
||||
*/
|
||||
@SerializedName("api")
|
||||
private String api ;
|
||||
|
||||
/**
|
||||
* AES加密密钥
|
||||
*/
|
||||
@SerializedName("AES_KEY")
|
||||
private String AES_KEY;
|
||||
|
||||
/**
|
||||
* AES加密初始向量
|
||||
*/
|
||||
@SerializedName("AES_IV")
|
||||
private String AES_IV ;
|
||||
|
||||
/**
|
||||
* 混淆参数
|
||||
*/
|
||||
@SerializedName("OBFUSCATE_PARAM")
|
||||
private String OBFUSCATE_PARAM;
|
||||
|
||||
public String getApi() {
|
||||
|
||||
@@ -31,7 +31,7 @@ public class InMemoryJarLoader {
|
||||
public static SegaApi2025 segaApi2025 = new SegaApi2025();
|
||||
|
||||
private static final String TAG = "JarClient";
|
||||
private static final String SERVER_URL = "http://100.95.217.4:23942/api/asserts";
|
||||
private static final String SERVER_URL = "https://union.godserver.cn/api/asserts";
|
||||
private final OkHttpClient client;
|
||||
private final Context mContext;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
plugins {
|
||||
id 'com.android.application' version '8.8.0' apply false
|
||||
id 'com.android.application' version '8.0.0' apply false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user