diff --git a/.idea/androidTestResultsUserPreferences.xml b/.idea/androidTestResultsUserPreferences.xml
new file mode 100644
index 0000000..8da9fc6
--- /dev/null
+++ b/.idea/androidTestResultsUserPreferences.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/appInsightsSettings.xml b/.idea/appInsightsSettings.xml
new file mode 100644
index 0000000..23b2e1f
--- /dev/null
+++ b/.idea/appInsightsSettings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml
index 6e4e435..ac4ba08 100644
--- a/.idea/deploymentTargetSelector.xml
+++ b/.idea/deploymentTargetSelector.xml
@@ -2,56 +2,146 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.idea/deviceManager.xml b/.idea/deviceManager.xml
new file mode 100644
index 0000000..91f9558
--- /dev/null
+++ b/.idea/deviceManager.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index f15f8e9..3021ec6 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -14,16 +14,25 @@
+
+
+
+
+
+
+
+
+
diff --git a/.idea/markdown.xml b/.idea/markdown.xml
new file mode 100644
index 0000000..c61ea33
--- /dev/null
+++ b/.idea/markdown.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/1xsgd/build.gradle b/1xsgd/build.gradle
index 7980be4..a6fac9a 100644
--- a/1xsgd/build.gradle
+++ b/1xsgd/build.gradle
@@ -11,8 +11,8 @@ android {
defaultConfig {
minSdkVersion 24
targetSdk 36
- versionCode rootProject.ext.versionCode
- versionName rootProject.ext.versionName
+ versionCode 141
+ versionName "v1.4.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
//包名
diff --git a/apks/1xhuatdsigiudsogdfghdfghdf.apk b/apks/1xhuatdsigiudsogdfghdfghdf.apk
new file mode 100644
index 0000000..e05c925
Binary files /dev/null and b/apks/1xhuatdsigiudsogdfghdfghdf.apk differ
diff --git a/apks/1xsgdsdgsdlgfsdgdflgdfh.apk b/apks/1xsgdsdgsdlgfsdgdflgdfh.apk
new file mode 100644
index 0000000..f200cc6
Binary files /dev/null and b/apks/1xsgdsdgsdlgfsdgdflgdfh.apk differ
diff --git a/apks/Cosmojack.apk b/apks/Cosmojack.apk
new file mode 100644
index 0000000..9f5a2e8
Binary files /dev/null and b/apks/Cosmojack.apk differ
diff --git a/apks/REDSPIN3343.apk b/apks/REDSPIN3343.apk
new file mode 100644
index 0000000..b6275ad
Binary files /dev/null and b/apks/REDSPIN3343.apk differ
diff --git a/apks/SlotKaki33.apk b/apks/SlotKaki33.apk
new file mode 100644
index 0000000..85b3629
Binary files /dev/null and b/apks/SlotKaki33.apk differ
diff --git a/apks/SlotKaki3311.apk b/apks/SlotKaki3311.apk
new file mode 100644
index 0000000..2c9fdd3
Binary files /dev/null and b/apks/SlotKaki3311.apk differ
diff --git a/apks/aa7audjgkdfgkdflgkldfsgdfhfd.apk b/apks/aa7audjgkdfgkdflgkldfsgdfhfd.apk
new file mode 100644
index 0000000..d423680
Binary files /dev/null and b/apks/aa7audjgkdfgkdflgkldfsgdfhfd.apk differ
diff --git a/apks/auplayxdgkldfgldffdg.apk b/apks/auplayxdgkldfgldffdg.apk
new file mode 100644
index 0000000..16cb642
Binary files /dev/null and b/apks/auplayxdgkldfgldffdg.apk differ
diff --git a/apks/bantu.apk b/apks/bantu.apk
new file mode 100644
index 0000000..ce91e6d
Binary files /dev/null and b/apks/bantu.apk differ
diff --git a/apks/bng1aujgfdkgjdkflghdffdhfgggg.apk b/apks/bng1aujgfdkgjdkflghdffdhfgggg.apk
new file mode 100644
index 0000000..f344995
Binary files /dev/null and b/apks/bng1aujgfdkgjdkflghdffdhfgggg.apk differ
diff --git a/apks/cucislotjehtjuewrhrrregrgg.apk b/apks/cucislotjehtjuewrhrrregrgg.apk
new file mode 100644
index 0000000..2b7e8db
Binary files /dev/null and b/apks/cucislotjehtjuewrhrrregrgg.apk differ
diff --git a/apks/fight996gjdfklgjdkfhgfkdlhdf.apk b/apks/fight996gjdfklgjdkfhgfkdlhdf.apk
new file mode 100644
index 0000000..a54a63f
Binary files /dev/null and b/apks/fight996gjdfklgjdkfhgfkdlhdf.apk differ
diff --git a/apks/jk123hk.apk b/apks/jk123hk.apk
new file mode 100644
index 0000000..ed9bb15
Binary files /dev/null and b/apks/jk123hk.apk differ
diff --git a/apks/jugfjkdjgkdfgdfkgdffff.apk b/apks/jugfjkdjgkdfgdfkgdffff.apk
new file mode 100644
index 0000000..9421f93
Binary files /dev/null and b/apks/jugfjkdjgkdfgdfkgdffff.apk differ
diff --git a/apks/kaki.apk b/apks/kaki.apk
new file mode 100644
index 0000000..ca18b7a
Binary files /dev/null and b/apks/kaki.apk differ
diff --git a/apks/live22.apk b/apks/live22.apk
new file mode 100644
index 0000000..23e9ae3
Binary files /dev/null and b/apks/live22.apk differ
diff --git a/apks/lorongjudi33dgkdfklgjdkfljghkdf.apk b/apks/lorongjudi33dgkdfklgjdkfljghkdf.apk
new file mode 100644
index 0000000..8095429
Binary files /dev/null and b/apks/lorongjudi33dgkdfklgjdkfljghkdf.apk differ
diff --git a/apks/pantas33.apk b/apks/pantas33.apk
new file mode 100644
index 0000000..1290222
Binary files /dev/null and b/apks/pantas33.apk differ
diff --git a/apks/pantas3342.apk b/apks/pantas3342.apk
new file mode 100644
index 0000000..2e29702
Binary files /dev/null and b/apks/pantas3342.apk differ
diff --git a/apks/powercucidgkjdfkjgkdfshv.apk b/apks/powercucidgkjdfkjgkdfshv.apk
new file mode 100644
index 0000000..509dd41
Binary files /dev/null and b/apks/powercucidgkjdfkjgkdfshv.apk differ
diff --git a/apks/proteinkfkkhkfghfdghgg.apk b/apks/proteinkfkkhkfghfdghgg.apk
new file mode 100644
index 0000000..0914feb
Binary files /dev/null and b/apks/proteinkfkkhkfghfdghgg.apk differ
diff --git a/apks/redspin8jghdjfghjdfgjkdfgjd.apk b/apks/redspin8jghdjfghjdfgjkdfgjd.apk
new file mode 100644
index 0000000..1ba4439
Binary files /dev/null and b/apks/redspin8jghdjfghjdfgjkdfgjd.apk differ
diff --git a/apks/winway-calculator-v3.2.4-44.apk b/apks/winway-calculator-v3.2.4-44.apk
new file mode 100644
index 0000000..06c0f70
Binary files /dev/null and b/apks/winway-calculator-v3.2.4-44.apk differ
diff --git a/apks/winway-calculator_44.apk b/apks/winway-calculator_44.apk
new file mode 100644
index 0000000..b1c6e8d
Binary files /dev/null and b/apks/winway-calculator_44.apk differ
diff --git a/bantuan88/.gitignore b/bantuan88/.gitignore
new file mode 100644
index 0000000..956c004
--- /dev/null
+++ b/bantuan88/.gitignore
@@ -0,0 +1,2 @@
+/build
+/release
\ No newline at end of file
diff --git a/bantuan88/build.gradle b/bantuan88/build.gradle
new file mode 100644
index 0000000..9ab77fd
--- /dev/null
+++ b/bantuan88/build.gradle
@@ -0,0 +1,93 @@
+plugins {
+ id 'com.android.application'
+ id 'com.google.gms.google-services'
+}
+
+def appOutPutName = "bantu"
+
+android {
+ namespace rootProject.ext.namespace
+ compileSdk 36
+ defaultConfig {
+ minSdkVersion 24
+ targetSdk 36
+ versionCode 141
+ versionName "v1.4.1"
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+
+ applicationId "com.xyz.bantu"
+
+ //app大背景色
+ resValue('color', 'windows_color', '#E9E9E7')
+ //底部导航栏颜色 大背景颜色为 windows_color——style_color的上下渐变色
+ resValue('color', 'style_color', '#E9E9E7')
+ //app 名字
+ resValue('string', 'app_name', 'Bantuan88')
+
+
+ buildConfigField "String", "BASE_URL", "\"https://live22x.com/\""
+ buildConfigField "int", "USERID", "174"
+ buildConfigField "boolean", "IS_WHITE", "false"
+ buildConfigField "boolean", "IS_ROUND", "true"
+ buildConfigField "int", "ROUND_RADIUS", "10"
+ buildConfigField "boolean", "HAS_CONTACT", "true"
+ buildConfigField "boolean", "HAS_HOOK", "false"
+
+ }
+ buildFeatures {
+ buildConfig = true
+ }
+
+ signingConfigs {
+ debug {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ release {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ }
+
+ buildTypes {
+ release {
+ signingConfig signingConfigs.release
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility rootProject.ext.JAVA_VERSION
+ targetCompatibility rootProject.ext.JAVA_VERSION
+ }
+
+ applicationVariants.all { variant ->
+ variant.outputs.all {
+ def outputDir = new File(rootProject.ext.outputPath)
+ outputDir.mkdirs()
+ def outputFileName = "${appOutPutName}.apk"
+ setOutputFileName(outputFileName)
+ def newOutputFile = new File(outputDir, outputFileName)
+ newOutputFile.parentFile.mkdirs()
+ variant.assemble.doLast {
+ try {
+ java.nio.file.Files.copy(
+ outputFile.toPath(),
+ newOutputFile.toPath(),
+ java.nio.file.StandardCopyOption.REPLACE_EXISTING
+ )
+ } catch (java.io.IOException e) {
+ }
+ }
+ }
+ }
+
+}
+
+dependencies {
+ implementation project(path: ':base')
+}
\ No newline at end of file
diff --git a/bantuan88/google-services.json b/bantuan88/google-services.json
new file mode 100644
index 0000000..4b86cba
--- /dev/null
+++ b/bantuan88/google-services.json
@@ -0,0 +1,29 @@
+{
+ "project_info": {
+ "project_number": "855080274946",
+ "project_id": "ba4nt1uan88",
+ "storage_bucket": "ba4nt1uan88.firebasestorage.app"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:855080274946:android:ddda2b3a70427e1e9a6b1b",
+ "android_client_info": {
+ "package_name": "com.xyz.bantu"
+ }
+ },
+ "oauth_client": [],
+ "api_key": [
+ {
+ "current_key": "AIzaSyDll-tndxLqFb-e4yujeYNRP01iglD8tlI"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": []
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/bantuan88/justlet.jks b/bantuan88/justlet.jks
new file mode 100644
index 0000000..a33b839
Binary files /dev/null and b/bantuan88/justlet.jks differ
diff --git a/bantuan88/proguard-rules.pro b/bantuan88/proguard-rules.pro
new file mode 100644
index 0000000..107b7ee
--- /dev/null
+++ b/bantuan88/proguard-rules.pro
@@ -0,0 +1,32 @@
+# 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
+
+# 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 *;
+#}
+
+# 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
+
+-dontwarn dalvik.**
+-dontwarn com.tencent.smtt.**
+
+-keep class com.tencent.smtt.** {
+ *;
+}
+
+-keep class com.tencent.tbs.** {
+ *;
+}
\ No newline at end of file
diff --git a/bantuan88/src/main/AndroidManifest.xml b/bantuan88/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..7cbc0e0
--- /dev/null
+++ b/bantuan88/src/main/AndroidManifest.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bantuan88/src/main/java/com/webclip/base/IndexActivity.java b/bantuan88/src/main/java/com/webclip/base/IndexActivity.java
new file mode 100644
index 0000000..c8e4780
--- /dev/null
+++ b/bantuan88/src/main/java/com/webclip/base/IndexActivity.java
@@ -0,0 +1,79 @@
+package com.webclip.base;
+
+import android.os.Bundle;
+
+import com.google.firebase.messaging.FirebaseMessaging;
+
+public class IndexActivity extends MainActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ initConfig();
+ super.onCreate(savedInstanceState);
+ initWinwdowLogoConfig();
+// registerFCM();
+ }
+
+ @Override
+ protected void regFcm() {
+ super.regFcm();
+ registerFCM();
+ }
+
+ /**
+ * 注册FCM
+ */
+ private void registerFCM() {
+ //订阅主题
+ LogUtils.i("支持FCM 去注册");
+ try {
+ FirebaseMessaging.getInstance().subscribeToTopic("demo")
+ .addOnCompleteListener(task -> {
+ String msg = "Subscribed";
+ if (!task.isSuccessful()) {
+ msg = "Subscribe failed";
+ }else{
+ checkNotify();
+ }
+ LogUtils.i("支持FCM 结果:"+msg);
+ });
+ }catch (Exception e){
+ e.printStackTrace();
+ LogUtils.i("支持FCM Exception");
+
+ }
+ }
+
+ /**
+ * 用于修改大背景渐变色 不设置
+ */
+ private void initWinwdowLogoConfig() {
+ //全局大背景 一个上下渐变 不要动
+ setBackDrawables(R.drawable.big_bg);
+ setImageView(BuildConfig.IS_ROUND,BuildConfig.ROUND_RADIUS);
+ getWindow().getDecorView().setBackgroundResource(R.drawable.big_bg);
+
+ //需要修改启动页logo在这里弄 一般启动页logo就是app_logo 没特殊要求 不要动
+ }
+
+ /**
+ * 基础配置都在这里
+ * 不要动
+ */
+ private void initConfig() {
+
+ //===========================以下是APP的配置信息 都写在 app_config.xml中==================================
+ userId = BuildConfig.USERID;
+ saveInt(IndexActivity.this,"user_code",userId);
+
+ saveString(this, "base_url",BuildConfig.BASE_URL);
+ styleColor = getColor(R.color.style_color);
+ windowsColor = getColor(R.color.windows_color);
+ isWhite = BuildConfig.IS_WHITE;
+ hasContact = BuildConfig.HAS_CONTACT;
+ hasHook = BuildConfig.HAS_HOOK;
+
+ //===========================以上是APP的配置信息 都写在 app_config.xml中==================================
+ }
+
+}
diff --git a/bantuan88/src/main/java/com/webclip/base/MyFirebaseMessageingService.java b/bantuan88/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
new file mode 100644
index 0000000..36f2d65
--- /dev/null
+++ b/bantuan88/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
@@ -0,0 +1,125 @@
+package com.webclip.base;
+
+import android.app.NotificationChannel;
+import android.app.NotificationManager;
+import android.app.PendingIntent;
+import android.content.ComponentName;
+import android.content.Context;
+import android.content.Intent;
+import android.os.Build;
+import androidx.annotation.NonNull;
+import androidx.core.app.NotificationCompat;
+import com.google.firebase.messaging.FirebaseMessagingService;
+import com.google.firebase.messaging.RemoteMessage;
+import com.google.gson.Gson;
+import com.webclip.base.GsonUtils;
+import com.webclip.base.MessageInfo;
+import java.util.Map;
+import java.util.Random;
+
+public class MyFirebaseMessageingService extends FirebaseMessagingService {
+
+ public MyFirebaseMessageingService() {
+ }
+
+ @Override
+ public void onMessageReceived(@NonNull RemoteMessage remoteMessage) {
+ super.onMessageReceived(remoteMessage);
+ Map serviceData = remoteMessage.getData(); //后台推送数据
+ if (serviceData != null && serviceData.containsKey("message")) {
+ String value = serviceData.get("message");
+ Gson gson = new Gson();
+ MessageInfo messageInfo = gson.fromJson(value, MessageInfo.class);
+ showNotification(messageInfo);
+ } else {
+ //收到通知 创建notify
+ if (remoteMessage.getNotification() != null) {
+ showNotification(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody());
+ }
+ }
+ }
+
+ private void showNotification(MessageInfo messageInfo) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ notifyIntent.putExtra("message", messageInfo);
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+
+ private void showNotification(String title, String body) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.putExtra("message", body);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ MessageInfo messageInfo = GsonUtils.getObjFromJSON(body, MessageInfo.class);
+ if (messageInfo != null) {
+ body = messageInfo.getContent();
+ }
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+}
diff --git a/bantuan88/src/main/java/com/webclip/base/WebApplication.java b/bantuan88/src/main/java/com/webclip/base/WebApplication.java
new file mode 100644
index 0000000..36e2512
--- /dev/null
+++ b/bantuan88/src/main/java/com/webclip/base/WebApplication.java
@@ -0,0 +1,19 @@
+package com.webclip.base;
+
+import android.app.Application;
+import android.content.Context;
+
+import com.webclip.base.LogUtils;
+
+public class WebApplication extends Application {
+
+
+ public static Context application;
+ @Override
+ public void onCreate() {
+ super.onCreate();
+// 设置开启优化方案
+ application = this;
+ LogUtils.isDebug = BuildConfig.BUILD_TYPE.equals("debug");
+ }
+}
diff --git a/bantuan88/src/main/res/drawable/big_bg.xml b/bantuan88/src/main/res/drawable/big_bg.xml
new file mode 100644
index 0000000..aa44959
--- /dev/null
+++ b/bantuan88/src/main/res/drawable/big_bg.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/bantuan88/src/main/res/mipmap-xxhdpi/app_logo.png b/bantuan88/src/main/res/mipmap-xxhdpi/app_logo.png
new file mode 100644
index 0000000..7e768d7
Binary files /dev/null and b/bantuan88/src/main/res/mipmap-xxhdpi/app_logo.png differ
diff --git a/bantuan88/src/main/res/values/themes.xml b/bantuan88/src/main/res/values/themes.xml
new file mode 100644
index 0000000..f1ef249
--- /dev/null
+++ b/bantuan88/src/main/res/values/themes.xml
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bantuan88/src/main/res/xml/app_updater_paths.xml b/bantuan88/src/main/res/xml/app_updater_paths.xml
new file mode 100644
index 0000000..1254450
--- /dev/null
+++ b/bantuan88/src/main/res/xml/app_updater_paths.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bantuan88/src/main/res/xml/network_security_config.xml b/bantuan88/src/main/res/xml/network_security_config.xml
new file mode 100644
index 0000000..dca93c0
--- /dev/null
+++ b/bantuan88/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/bantuan88/src/main/res/xml/provider_paths.xml b/bantuan88/src/main/res/xml/provider_paths.xml
new file mode 100644
index 0000000..c9a897a
--- /dev/null
+++ b/bantuan88/src/main/res/xml/provider_paths.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bantuan88/telur33.jks b/bantuan88/telur33.jks
new file mode 100644
index 0000000..f00434d
Binary files /dev/null and b/bantuan88/telur33.jks differ
diff --git a/build.gradle b/build.gradle
index 88847a5..5267a10 100644
--- a/build.gradle
+++ b/build.gradle
@@ -9,7 +9,7 @@ plugins {
}
ext {
- outputPath = "F:/webApp2"
+ outputPath = "${project.rootDir}/apks"
versionCode = 134
versionName = "v1.3.4"
namespace = "com.webclip.base"
diff --git a/cosmojack/.gitignore b/cosmojack/.gitignore
new file mode 100644
index 0000000..956c004
--- /dev/null
+++ b/cosmojack/.gitignore
@@ -0,0 +1,2 @@
+/build
+/release
\ No newline at end of file
diff --git a/cosmojack/build.gradle b/cosmojack/build.gradle
new file mode 100644
index 0000000..22ae51c
--- /dev/null
+++ b/cosmojack/build.gradle
@@ -0,0 +1,93 @@
+plugins {
+ id 'com.android.application'
+ id 'com.google.gms.google-services'
+}
+
+def appOutPutName = "Cosmojack"
+
+android {
+ namespace rootProject.ext.namespace
+ compileSdk 36
+ defaultConfig {
+ minSdkVersion 24
+ targetSdk 36
+ versionCode rootProject.ext.versionCode
+ versionName rootProject.ext.versionName
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+
+ applicationId "com.exam.Cosmojack"
+
+ //app大背景色
+ resValue('color', 'windows_color', '#030904')
+ //底部导航栏颜色 大背景颜色为 windows_color——style_color的上下渐变色
+ resValue('color', 'style_color', '#000000')
+ //app 名字
+ resValue('string', 'app_name', 'Cosmojack')
+
+
+ buildConfigField "String", "BASE_URL", "\"https://cosmojack.app/\""
+ buildConfigField "int", "USERID", "261"
+ buildConfigField "boolean", "IS_WHITE", "false"
+ buildConfigField "boolean", "IS_ROUND", "true"
+ buildConfigField "int", "ROUND_RADIUS", "10"
+ buildConfigField "boolean", "HAS_CONTACT", "true"
+ buildConfigField "boolean", "HAS_HOOK", "false"
+
+ }
+ buildFeatures {
+ buildConfig = true
+ }
+
+ signingConfigs {
+ debug {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ release {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ }
+
+ buildTypes {
+ release {
+ signingConfig signingConfigs.release
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility rootProject.ext.JAVA_VERSION
+ targetCompatibility rootProject.ext.JAVA_VERSION
+ }
+
+ applicationVariants.all { variant ->
+ variant.outputs.all {
+ def outputDir = new File(rootProject.ext.outputPath)
+ outputDir.mkdirs()
+ def outputFileName = "${appOutPutName}.apk"
+ setOutputFileName(outputFileName)
+ def newOutputFile = new File(outputDir, outputFileName)
+ newOutputFile.parentFile.mkdirs()
+ variant.assemble.doLast {
+ try {
+ java.nio.file.Files.copy(
+ outputFile.toPath(),
+ newOutputFile.toPath(),
+ java.nio.file.StandardCopyOption.REPLACE_EXISTING
+ )
+ } catch (java.io.IOException e) {
+ }
+ }
+ }
+ }
+
+}
+
+dependencies {
+ implementation project(path: ':base')
+}
\ No newline at end of file
diff --git a/cosmojack/google-services.json b/cosmojack/google-services.json
new file mode 100644
index 0000000..3391f31
--- /dev/null
+++ b/cosmojack/google-services.json
@@ -0,0 +1,29 @@
+{
+ "project_info": {
+ "project_number": "746926916870",
+ "project_id": "cosmojack-6d9b6",
+ "storage_bucket": "cosmojack-6d9b6.firebasestorage.app"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:746926916870:android:14e75755e31bd97f498a87",
+ "android_client_info": {
+ "package_name": "com.exam.Cosmojack"
+ }
+ },
+ "oauth_client": [],
+ "api_key": [
+ {
+ "current_key": "AIzaSyCP1IuEriDO_2IuEEGyGcDy-RBIeJOK-BE"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": []
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/cosmojack/justlet.jks b/cosmojack/justlet.jks
new file mode 100644
index 0000000..a33b839
Binary files /dev/null and b/cosmojack/justlet.jks differ
diff --git a/cosmojack/proguard-rules.pro b/cosmojack/proguard-rules.pro
new file mode 100644
index 0000000..107b7ee
--- /dev/null
+++ b/cosmojack/proguard-rules.pro
@@ -0,0 +1,32 @@
+# 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
+
+# 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 *;
+#}
+
+# 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
+
+-dontwarn dalvik.**
+-dontwarn com.tencent.smtt.**
+
+-keep class com.tencent.smtt.** {
+ *;
+}
+
+-keep class com.tencent.tbs.** {
+ *;
+}
\ No newline at end of file
diff --git a/cosmojack/src/main/AndroidManifest.xml b/cosmojack/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..7cbc0e0
--- /dev/null
+++ b/cosmojack/src/main/AndroidManifest.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cosmojack/src/main/java/com/webclip/base/IndexActivity.java b/cosmojack/src/main/java/com/webclip/base/IndexActivity.java
new file mode 100644
index 0000000..c8e4780
--- /dev/null
+++ b/cosmojack/src/main/java/com/webclip/base/IndexActivity.java
@@ -0,0 +1,79 @@
+package com.webclip.base;
+
+import android.os.Bundle;
+
+import com.google.firebase.messaging.FirebaseMessaging;
+
+public class IndexActivity extends MainActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ initConfig();
+ super.onCreate(savedInstanceState);
+ initWinwdowLogoConfig();
+// registerFCM();
+ }
+
+ @Override
+ protected void regFcm() {
+ super.regFcm();
+ registerFCM();
+ }
+
+ /**
+ * 注册FCM
+ */
+ private void registerFCM() {
+ //订阅主题
+ LogUtils.i("支持FCM 去注册");
+ try {
+ FirebaseMessaging.getInstance().subscribeToTopic("demo")
+ .addOnCompleteListener(task -> {
+ String msg = "Subscribed";
+ if (!task.isSuccessful()) {
+ msg = "Subscribe failed";
+ }else{
+ checkNotify();
+ }
+ LogUtils.i("支持FCM 结果:"+msg);
+ });
+ }catch (Exception e){
+ e.printStackTrace();
+ LogUtils.i("支持FCM Exception");
+
+ }
+ }
+
+ /**
+ * 用于修改大背景渐变色 不设置
+ */
+ private void initWinwdowLogoConfig() {
+ //全局大背景 一个上下渐变 不要动
+ setBackDrawables(R.drawable.big_bg);
+ setImageView(BuildConfig.IS_ROUND,BuildConfig.ROUND_RADIUS);
+ getWindow().getDecorView().setBackgroundResource(R.drawable.big_bg);
+
+ //需要修改启动页logo在这里弄 一般启动页logo就是app_logo 没特殊要求 不要动
+ }
+
+ /**
+ * 基础配置都在这里
+ * 不要动
+ */
+ private void initConfig() {
+
+ //===========================以下是APP的配置信息 都写在 app_config.xml中==================================
+ userId = BuildConfig.USERID;
+ saveInt(IndexActivity.this,"user_code",userId);
+
+ saveString(this, "base_url",BuildConfig.BASE_URL);
+ styleColor = getColor(R.color.style_color);
+ windowsColor = getColor(R.color.windows_color);
+ isWhite = BuildConfig.IS_WHITE;
+ hasContact = BuildConfig.HAS_CONTACT;
+ hasHook = BuildConfig.HAS_HOOK;
+
+ //===========================以上是APP的配置信息 都写在 app_config.xml中==================================
+ }
+
+}
diff --git a/cosmojack/src/main/java/com/webclip/base/MyFirebaseMessageingService.java b/cosmojack/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
new file mode 100644
index 0000000..36f2d65
--- /dev/null
+++ b/cosmojack/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
@@ -0,0 +1,125 @@
+package com.webclip.base;
+
+import android.app.NotificationChannel;
+import android.app.NotificationManager;
+import android.app.PendingIntent;
+import android.content.ComponentName;
+import android.content.Context;
+import android.content.Intent;
+import android.os.Build;
+import androidx.annotation.NonNull;
+import androidx.core.app.NotificationCompat;
+import com.google.firebase.messaging.FirebaseMessagingService;
+import com.google.firebase.messaging.RemoteMessage;
+import com.google.gson.Gson;
+import com.webclip.base.GsonUtils;
+import com.webclip.base.MessageInfo;
+import java.util.Map;
+import java.util.Random;
+
+public class MyFirebaseMessageingService extends FirebaseMessagingService {
+
+ public MyFirebaseMessageingService() {
+ }
+
+ @Override
+ public void onMessageReceived(@NonNull RemoteMessage remoteMessage) {
+ super.onMessageReceived(remoteMessage);
+ Map serviceData = remoteMessage.getData(); //后台推送数据
+ if (serviceData != null && serviceData.containsKey("message")) {
+ String value = serviceData.get("message");
+ Gson gson = new Gson();
+ MessageInfo messageInfo = gson.fromJson(value, MessageInfo.class);
+ showNotification(messageInfo);
+ } else {
+ //收到通知 创建notify
+ if (remoteMessage.getNotification() != null) {
+ showNotification(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody());
+ }
+ }
+ }
+
+ private void showNotification(MessageInfo messageInfo) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ notifyIntent.putExtra("message", messageInfo);
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+
+ private void showNotification(String title, String body) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.putExtra("message", body);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ MessageInfo messageInfo = GsonUtils.getObjFromJSON(body, MessageInfo.class);
+ if (messageInfo != null) {
+ body = messageInfo.getContent();
+ }
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+}
diff --git a/cosmojack/src/main/java/com/webclip/base/WebApplication.java b/cosmojack/src/main/java/com/webclip/base/WebApplication.java
new file mode 100644
index 0000000..36e2512
--- /dev/null
+++ b/cosmojack/src/main/java/com/webclip/base/WebApplication.java
@@ -0,0 +1,19 @@
+package com.webclip.base;
+
+import android.app.Application;
+import android.content.Context;
+
+import com.webclip.base.LogUtils;
+
+public class WebApplication extends Application {
+
+
+ public static Context application;
+ @Override
+ public void onCreate() {
+ super.onCreate();
+// 设置开启优化方案
+ application = this;
+ LogUtils.isDebug = BuildConfig.BUILD_TYPE.equals("debug");
+ }
+}
diff --git a/cosmojack/src/main/res/drawable/big_bg.xml b/cosmojack/src/main/res/drawable/big_bg.xml
new file mode 100644
index 0000000..aa44959
--- /dev/null
+++ b/cosmojack/src/main/res/drawable/big_bg.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/cosmojack/src/main/res/mipmap-xxhdpi/app_logo.png b/cosmojack/src/main/res/mipmap-xxhdpi/app_logo.png
new file mode 100644
index 0000000..0d3e127
Binary files /dev/null and b/cosmojack/src/main/res/mipmap-xxhdpi/app_logo.png differ
diff --git a/cosmojack/src/main/res/values/themes.xml b/cosmojack/src/main/res/values/themes.xml
new file mode 100644
index 0000000..f1ef249
--- /dev/null
+++ b/cosmojack/src/main/res/values/themes.xml
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cosmojack/src/main/res/xml/app_updater_paths.xml b/cosmojack/src/main/res/xml/app_updater_paths.xml
new file mode 100644
index 0000000..1254450
--- /dev/null
+++ b/cosmojack/src/main/res/xml/app_updater_paths.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cosmojack/src/main/res/xml/network_security_config.xml b/cosmojack/src/main/res/xml/network_security_config.xml
new file mode 100644
index 0000000..dca93c0
--- /dev/null
+++ b/cosmojack/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/cosmojack/src/main/res/xml/provider_paths.xml b/cosmojack/src/main/res/xml/provider_paths.xml
new file mode 100644
index 0000000..c9a897a
--- /dev/null
+++ b/cosmojack/src/main/res/xml/provider_paths.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cosmojack/telur33.jks b/cosmojack/telur33.jks
new file mode 100644
index 0000000..f00434d
Binary files /dev/null and b/cosmojack/telur33.jks differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index f7bf3d1..bc30949 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
#Mon Mar 09 14:34:00 CST 2026
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
+distributionUrl=https://mirrors.cloud.tencent.com/gradle/gradle-8.13-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
diff --git a/jk123hk/.gitignore b/jk123hk/.gitignore
new file mode 100644
index 0000000..956c004
--- /dev/null
+++ b/jk123hk/.gitignore
@@ -0,0 +1,2 @@
+/build
+/release
\ No newline at end of file
diff --git a/jk123hk/build.gradle b/jk123hk/build.gradle
new file mode 100644
index 0000000..2c71530
--- /dev/null
+++ b/jk123hk/build.gradle
@@ -0,0 +1,93 @@
+plugins {
+ id 'com.android.application'
+ id 'com.google.gms.google-services'
+}
+
+def appOutPutName = "jk123hk"
+
+android {
+ namespace rootProject.ext.namespace
+ compileSdk 36
+ defaultConfig {
+ minSdkVersion 24
+ targetSdk 36
+ versionCode rootProject.ext.versionCode
+ versionName rootProject.ext.versionName
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+
+ applicationId "com.asdhia.jk123hk"
+
+ //app大背景色
+ resValue('color', 'windows_color', '#060606')
+ //底部导航栏颜色 大背景颜色为 windows_color——style_color的上下渐变色
+ resValue('color', 'style_color', '#191C1D')
+ //app 名字
+ resValue('string', 'app_name', 'JK123hk')
+
+
+ buildConfigField "String", "BASE_URL", "\"https://jk123hk.com/\""
+ buildConfigField "int", "USERID", "263"
+ buildConfigField "boolean", "IS_WHITE", "false"
+ buildConfigField "boolean", "IS_ROUND", "true"
+ buildConfigField "int", "ROUND_RADIUS", "10"
+ buildConfigField "boolean", "HAS_CONTACT", "false"
+ buildConfigField "boolean", "HAS_HOOK", "false"
+
+ }
+ buildFeatures {
+ buildConfig = true
+ }
+
+ signingConfigs {
+ debug {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ release {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ }
+
+ buildTypes {
+ release {
+ signingConfig signingConfigs.release
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility rootProject.ext.JAVA_VERSION
+ targetCompatibility rootProject.ext.JAVA_VERSION
+ }
+
+ applicationVariants.all { variant ->
+ variant.outputs.all {
+ def outputDir = new File(rootProject.ext.outputPath)
+ outputDir.mkdirs()
+ def outputFileName = "${appOutPutName}.apk"
+ setOutputFileName(outputFileName)
+ def newOutputFile = new File(outputDir, outputFileName)
+ newOutputFile.parentFile.mkdirs()
+ variant.assemble.doLast {
+ try {
+ java.nio.file.Files.copy(
+ outputFile.toPath(),
+ newOutputFile.toPath(),
+ java.nio.file.StandardCopyOption.REPLACE_EXISTING
+ )
+ } catch (java.io.IOException e) {
+ }
+ }
+ }
+ }
+
+}
+
+dependencies {
+ implementation project(path: ':base')
+}
\ No newline at end of file
diff --git a/jk123hk/google-services.json b/jk123hk/google-services.json
new file mode 100644
index 0000000..0414fa2
--- /dev/null
+++ b/jk123hk/google-services.json
@@ -0,0 +1,29 @@
+{
+ "project_info": {
+ "project_number": "835413751163",
+ "project_id": "jk123hk-cc695",
+ "storage_bucket": "jk123hk-cc695.firebasestorage.app"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:835413751163:android:877fb37cea435fd0ce39de",
+ "android_client_info": {
+ "package_name": "com.asdhia.jk123hk"
+ }
+ },
+ "oauth_client": [],
+ "api_key": [
+ {
+ "current_key": "AIzaSyA2vz1Nkrk9DNjzpzcnWtDmrujlaPrnwlw"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": []
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/jk123hk/justlet.jks b/jk123hk/justlet.jks
new file mode 100644
index 0000000..a33b839
Binary files /dev/null and b/jk123hk/justlet.jks differ
diff --git a/jk123hk/proguard-rules.pro b/jk123hk/proguard-rules.pro
new file mode 100644
index 0000000..107b7ee
--- /dev/null
+++ b/jk123hk/proguard-rules.pro
@@ -0,0 +1,32 @@
+# 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
+
+# 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 *;
+#}
+
+# 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
+
+-dontwarn dalvik.**
+-dontwarn com.tencent.smtt.**
+
+-keep class com.tencent.smtt.** {
+ *;
+}
+
+-keep class com.tencent.tbs.** {
+ *;
+}
\ No newline at end of file
diff --git a/jk123hk/src/main/AndroidManifest.xml b/jk123hk/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..ab0e785
--- /dev/null
+++ b/jk123hk/src/main/AndroidManifest.xml
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jk123hk/src/main/java/com/webclip/base/IndexActivity.java b/jk123hk/src/main/java/com/webclip/base/IndexActivity.java
new file mode 100644
index 0000000..c8e4780
--- /dev/null
+++ b/jk123hk/src/main/java/com/webclip/base/IndexActivity.java
@@ -0,0 +1,79 @@
+package com.webclip.base;
+
+import android.os.Bundle;
+
+import com.google.firebase.messaging.FirebaseMessaging;
+
+public class IndexActivity extends MainActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ initConfig();
+ super.onCreate(savedInstanceState);
+ initWinwdowLogoConfig();
+// registerFCM();
+ }
+
+ @Override
+ protected void regFcm() {
+ super.regFcm();
+ registerFCM();
+ }
+
+ /**
+ * 注册FCM
+ */
+ private void registerFCM() {
+ //订阅主题
+ LogUtils.i("支持FCM 去注册");
+ try {
+ FirebaseMessaging.getInstance().subscribeToTopic("demo")
+ .addOnCompleteListener(task -> {
+ String msg = "Subscribed";
+ if (!task.isSuccessful()) {
+ msg = "Subscribe failed";
+ }else{
+ checkNotify();
+ }
+ LogUtils.i("支持FCM 结果:"+msg);
+ });
+ }catch (Exception e){
+ e.printStackTrace();
+ LogUtils.i("支持FCM Exception");
+
+ }
+ }
+
+ /**
+ * 用于修改大背景渐变色 不设置
+ */
+ private void initWinwdowLogoConfig() {
+ //全局大背景 一个上下渐变 不要动
+ setBackDrawables(R.drawable.big_bg);
+ setImageView(BuildConfig.IS_ROUND,BuildConfig.ROUND_RADIUS);
+ getWindow().getDecorView().setBackgroundResource(R.drawable.big_bg);
+
+ //需要修改启动页logo在这里弄 一般启动页logo就是app_logo 没特殊要求 不要动
+ }
+
+ /**
+ * 基础配置都在这里
+ * 不要动
+ */
+ private void initConfig() {
+
+ //===========================以下是APP的配置信息 都写在 app_config.xml中==================================
+ userId = BuildConfig.USERID;
+ saveInt(IndexActivity.this,"user_code",userId);
+
+ saveString(this, "base_url",BuildConfig.BASE_URL);
+ styleColor = getColor(R.color.style_color);
+ windowsColor = getColor(R.color.windows_color);
+ isWhite = BuildConfig.IS_WHITE;
+ hasContact = BuildConfig.HAS_CONTACT;
+ hasHook = BuildConfig.HAS_HOOK;
+
+ //===========================以上是APP的配置信息 都写在 app_config.xml中==================================
+ }
+
+}
diff --git a/jk123hk/src/main/java/com/webclip/base/MyFirebaseMessageingService.java b/jk123hk/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
new file mode 100644
index 0000000..36f2d65
--- /dev/null
+++ b/jk123hk/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
@@ -0,0 +1,125 @@
+package com.webclip.base;
+
+import android.app.NotificationChannel;
+import android.app.NotificationManager;
+import android.app.PendingIntent;
+import android.content.ComponentName;
+import android.content.Context;
+import android.content.Intent;
+import android.os.Build;
+import androidx.annotation.NonNull;
+import androidx.core.app.NotificationCompat;
+import com.google.firebase.messaging.FirebaseMessagingService;
+import com.google.firebase.messaging.RemoteMessage;
+import com.google.gson.Gson;
+import com.webclip.base.GsonUtils;
+import com.webclip.base.MessageInfo;
+import java.util.Map;
+import java.util.Random;
+
+public class MyFirebaseMessageingService extends FirebaseMessagingService {
+
+ public MyFirebaseMessageingService() {
+ }
+
+ @Override
+ public void onMessageReceived(@NonNull RemoteMessage remoteMessage) {
+ super.onMessageReceived(remoteMessage);
+ Map serviceData = remoteMessage.getData(); //后台推送数据
+ if (serviceData != null && serviceData.containsKey("message")) {
+ String value = serviceData.get("message");
+ Gson gson = new Gson();
+ MessageInfo messageInfo = gson.fromJson(value, MessageInfo.class);
+ showNotification(messageInfo);
+ } else {
+ //收到通知 创建notify
+ if (remoteMessage.getNotification() != null) {
+ showNotification(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody());
+ }
+ }
+ }
+
+ private void showNotification(MessageInfo messageInfo) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ notifyIntent.putExtra("message", messageInfo);
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+
+ private void showNotification(String title, String body) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.putExtra("message", body);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ MessageInfo messageInfo = GsonUtils.getObjFromJSON(body, MessageInfo.class);
+ if (messageInfo != null) {
+ body = messageInfo.getContent();
+ }
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+}
diff --git a/jk123hk/src/main/java/com/webclip/base/WebApplication.java b/jk123hk/src/main/java/com/webclip/base/WebApplication.java
new file mode 100644
index 0000000..36e2512
--- /dev/null
+++ b/jk123hk/src/main/java/com/webclip/base/WebApplication.java
@@ -0,0 +1,19 @@
+package com.webclip.base;
+
+import android.app.Application;
+import android.content.Context;
+
+import com.webclip.base.LogUtils;
+
+public class WebApplication extends Application {
+
+
+ public static Context application;
+ @Override
+ public void onCreate() {
+ super.onCreate();
+// 设置开启优化方案
+ application = this;
+ LogUtils.isDebug = BuildConfig.BUILD_TYPE.equals("debug");
+ }
+}
diff --git a/jk123hk/src/main/res/drawable/big_bg.xml b/jk123hk/src/main/res/drawable/big_bg.xml
new file mode 100644
index 0000000..aa44959
--- /dev/null
+++ b/jk123hk/src/main/res/drawable/big_bg.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/jk123hk/src/main/res/mipmap-xxhdpi/app_logo.jpg b/jk123hk/src/main/res/mipmap-xxhdpi/app_logo.jpg
new file mode 100644
index 0000000..f475477
Binary files /dev/null and b/jk123hk/src/main/res/mipmap-xxhdpi/app_logo.jpg differ
diff --git a/jk123hk/src/main/res/values/themes.xml b/jk123hk/src/main/res/values/themes.xml
new file mode 100644
index 0000000..f1ef249
--- /dev/null
+++ b/jk123hk/src/main/res/values/themes.xml
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jk123hk/src/main/res/xml/app_updater_paths.xml b/jk123hk/src/main/res/xml/app_updater_paths.xml
new file mode 100644
index 0000000..1254450
--- /dev/null
+++ b/jk123hk/src/main/res/xml/app_updater_paths.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jk123hk/src/main/res/xml/network_security_config.xml b/jk123hk/src/main/res/xml/network_security_config.xml
new file mode 100644
index 0000000..dca93c0
--- /dev/null
+++ b/jk123hk/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/jk123hk/src/main/res/xml/provider_paths.xml b/jk123hk/src/main/res/xml/provider_paths.xml
new file mode 100644
index 0000000..c9a897a
--- /dev/null
+++ b/jk123hk/src/main/res/xml/provider_paths.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jk123hk/telur33.jks b/jk123hk/telur33.jks
new file mode 100644
index 0000000..f00434d
Binary files /dev/null and b/jk123hk/telur33.jks differ
diff --git a/kaki33/.gitignore b/kaki33/.gitignore
new file mode 100644
index 0000000..956c004
--- /dev/null
+++ b/kaki33/.gitignore
@@ -0,0 +1,2 @@
+/build
+/release
\ No newline at end of file
diff --git a/kaki33/build.gradle b/kaki33/build.gradle
new file mode 100644
index 0000000..6e722a7
--- /dev/null
+++ b/kaki33/build.gradle
@@ -0,0 +1,93 @@
+plugins {
+ id 'com.android.application'
+ id 'com.google.gms.google-services'
+}
+
+def appOutPutName = "kaki"
+
+android {
+ namespace rootProject.ext.namespace
+ compileSdk 36
+ defaultConfig {
+ minSdkVersion 24
+ targetSdk 36
+ versionCode rootProject.ext.versionCode
+ versionName rootProject.ext.versionName
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+
+ applicationId "com.asdaaaa.kaki33"
+
+ //app大背景色
+ resValue('color', 'windows_color', '#FFFFFF')
+ //底部导航栏颜色 大背景颜色为 windows_color——style_color的上下渐变色
+ resValue('color', 'style_color', '#02193D')
+ //app 名字
+ resValue('string', 'app_name', 'kaki33')
+
+
+ buildConfigField "String", "BASE_URL", "\"https://live22x.com/\""
+ buildConfigField "int", "USERID", "157"
+ buildConfigField "boolean", "IS_WHITE", "false"
+ buildConfigField "boolean", "IS_ROUND", "true"
+ buildConfigField "int", "ROUND_RADIUS", "10"
+ buildConfigField "boolean", "HAS_CONTACT", "true"
+ buildConfigField "boolean", "HAS_HOOK", "false"
+
+ }
+ buildFeatures {
+ buildConfig = true
+ }
+
+ signingConfigs {
+ debug {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ release {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ }
+
+ buildTypes {
+ release {
+ signingConfig signingConfigs.release
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility rootProject.ext.JAVA_VERSION
+ targetCompatibility rootProject.ext.JAVA_VERSION
+ }
+
+ applicationVariants.all { variant ->
+ variant.outputs.all {
+ def outputDir = new File(rootProject.ext.outputPath)
+ outputDir.mkdirs()
+ def outputFileName = "${appOutPutName}.apk"
+ setOutputFileName(outputFileName)
+ def newOutputFile = new File(outputDir, outputFileName)
+ newOutputFile.parentFile.mkdirs()
+ variant.assemble.doLast {
+ try {
+ java.nio.file.Files.copy(
+ outputFile.toPath(),
+ newOutputFile.toPath(),
+ java.nio.file.StandardCopyOption.REPLACE_EXISTING
+ )
+ } catch (java.io.IOException e) {
+ }
+ }
+ }
+ }
+
+}
+
+dependencies {
+ implementation project(path: ':base')
+}
\ No newline at end of file
diff --git a/kaki33/google-services.json b/kaki33/google-services.json
new file mode 100644
index 0000000..5b386f5
--- /dev/null
+++ b/kaki33/google-services.json
@@ -0,0 +1,29 @@
+{
+ "project_info": {
+ "project_number": "670790998254",
+ "project_id": "kaki33-9f202",
+ "storage_bucket": "kaki33-9f202.firebasestorage.app"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:670790998254:android:5d0f9e8a938718fe2dfbff",
+ "android_client_info": {
+ "package_name": "com.asdaaaa.kaki33"
+ }
+ },
+ "oauth_client": [],
+ "api_key": [
+ {
+ "current_key": "AIzaSyDWQ2pBQSia1XCQNX3u7ABqkyvLzejUms8"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": []
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/kaki33/justlet.jks b/kaki33/justlet.jks
new file mode 100644
index 0000000..a33b839
Binary files /dev/null and b/kaki33/justlet.jks differ
diff --git a/kaki33/proguard-rules.pro b/kaki33/proguard-rules.pro
new file mode 100644
index 0000000..107b7ee
--- /dev/null
+++ b/kaki33/proguard-rules.pro
@@ -0,0 +1,32 @@
+# 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
+
+# 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 *;
+#}
+
+# 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
+
+-dontwarn dalvik.**
+-dontwarn com.tencent.smtt.**
+
+-keep class com.tencent.smtt.** {
+ *;
+}
+
+-keep class com.tencent.tbs.** {
+ *;
+}
\ No newline at end of file
diff --git a/kaki33/src/main/AndroidManifest.xml b/kaki33/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..7cbc0e0
--- /dev/null
+++ b/kaki33/src/main/AndroidManifest.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/kaki33/src/main/java/com/webclip/base/IndexActivity.java b/kaki33/src/main/java/com/webclip/base/IndexActivity.java
new file mode 100644
index 0000000..c8e4780
--- /dev/null
+++ b/kaki33/src/main/java/com/webclip/base/IndexActivity.java
@@ -0,0 +1,79 @@
+package com.webclip.base;
+
+import android.os.Bundle;
+
+import com.google.firebase.messaging.FirebaseMessaging;
+
+public class IndexActivity extends MainActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ initConfig();
+ super.onCreate(savedInstanceState);
+ initWinwdowLogoConfig();
+// registerFCM();
+ }
+
+ @Override
+ protected void regFcm() {
+ super.regFcm();
+ registerFCM();
+ }
+
+ /**
+ * 注册FCM
+ */
+ private void registerFCM() {
+ //订阅主题
+ LogUtils.i("支持FCM 去注册");
+ try {
+ FirebaseMessaging.getInstance().subscribeToTopic("demo")
+ .addOnCompleteListener(task -> {
+ String msg = "Subscribed";
+ if (!task.isSuccessful()) {
+ msg = "Subscribe failed";
+ }else{
+ checkNotify();
+ }
+ LogUtils.i("支持FCM 结果:"+msg);
+ });
+ }catch (Exception e){
+ e.printStackTrace();
+ LogUtils.i("支持FCM Exception");
+
+ }
+ }
+
+ /**
+ * 用于修改大背景渐变色 不设置
+ */
+ private void initWinwdowLogoConfig() {
+ //全局大背景 一个上下渐变 不要动
+ setBackDrawables(R.drawable.big_bg);
+ setImageView(BuildConfig.IS_ROUND,BuildConfig.ROUND_RADIUS);
+ getWindow().getDecorView().setBackgroundResource(R.drawable.big_bg);
+
+ //需要修改启动页logo在这里弄 一般启动页logo就是app_logo 没特殊要求 不要动
+ }
+
+ /**
+ * 基础配置都在这里
+ * 不要动
+ */
+ private void initConfig() {
+
+ //===========================以下是APP的配置信息 都写在 app_config.xml中==================================
+ userId = BuildConfig.USERID;
+ saveInt(IndexActivity.this,"user_code",userId);
+
+ saveString(this, "base_url",BuildConfig.BASE_URL);
+ styleColor = getColor(R.color.style_color);
+ windowsColor = getColor(R.color.windows_color);
+ isWhite = BuildConfig.IS_WHITE;
+ hasContact = BuildConfig.HAS_CONTACT;
+ hasHook = BuildConfig.HAS_HOOK;
+
+ //===========================以上是APP的配置信息 都写在 app_config.xml中==================================
+ }
+
+}
diff --git a/kaki33/src/main/java/com/webclip/base/MyFirebaseMessageingService.java b/kaki33/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
new file mode 100644
index 0000000..36f2d65
--- /dev/null
+++ b/kaki33/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
@@ -0,0 +1,125 @@
+package com.webclip.base;
+
+import android.app.NotificationChannel;
+import android.app.NotificationManager;
+import android.app.PendingIntent;
+import android.content.ComponentName;
+import android.content.Context;
+import android.content.Intent;
+import android.os.Build;
+import androidx.annotation.NonNull;
+import androidx.core.app.NotificationCompat;
+import com.google.firebase.messaging.FirebaseMessagingService;
+import com.google.firebase.messaging.RemoteMessage;
+import com.google.gson.Gson;
+import com.webclip.base.GsonUtils;
+import com.webclip.base.MessageInfo;
+import java.util.Map;
+import java.util.Random;
+
+public class MyFirebaseMessageingService extends FirebaseMessagingService {
+
+ public MyFirebaseMessageingService() {
+ }
+
+ @Override
+ public void onMessageReceived(@NonNull RemoteMessage remoteMessage) {
+ super.onMessageReceived(remoteMessage);
+ Map serviceData = remoteMessage.getData(); //后台推送数据
+ if (serviceData != null && serviceData.containsKey("message")) {
+ String value = serviceData.get("message");
+ Gson gson = new Gson();
+ MessageInfo messageInfo = gson.fromJson(value, MessageInfo.class);
+ showNotification(messageInfo);
+ } else {
+ //收到通知 创建notify
+ if (remoteMessage.getNotification() != null) {
+ showNotification(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody());
+ }
+ }
+ }
+
+ private void showNotification(MessageInfo messageInfo) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ notifyIntent.putExtra("message", messageInfo);
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+
+ private void showNotification(String title, String body) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.putExtra("message", body);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ MessageInfo messageInfo = GsonUtils.getObjFromJSON(body, MessageInfo.class);
+ if (messageInfo != null) {
+ body = messageInfo.getContent();
+ }
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+}
diff --git a/kaki33/src/main/java/com/webclip/base/WebApplication.java b/kaki33/src/main/java/com/webclip/base/WebApplication.java
new file mode 100644
index 0000000..36e2512
--- /dev/null
+++ b/kaki33/src/main/java/com/webclip/base/WebApplication.java
@@ -0,0 +1,19 @@
+package com.webclip.base;
+
+import android.app.Application;
+import android.content.Context;
+
+import com.webclip.base.LogUtils;
+
+public class WebApplication extends Application {
+
+
+ public static Context application;
+ @Override
+ public void onCreate() {
+ super.onCreate();
+// 设置开启优化方案
+ application = this;
+ LogUtils.isDebug = BuildConfig.BUILD_TYPE.equals("debug");
+ }
+}
diff --git a/kaki33/src/main/res/drawable/big_bg.xml b/kaki33/src/main/res/drawable/big_bg.xml
new file mode 100644
index 0000000..aa44959
--- /dev/null
+++ b/kaki33/src/main/res/drawable/big_bg.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/kaki33/src/main/res/mipmap-xxhdpi/app_logo.png b/kaki33/src/main/res/mipmap-xxhdpi/app_logo.png
new file mode 100644
index 0000000..c5419e2
Binary files /dev/null and b/kaki33/src/main/res/mipmap-xxhdpi/app_logo.png differ
diff --git a/kaki33/src/main/res/values/themes.xml b/kaki33/src/main/res/values/themes.xml
new file mode 100644
index 0000000..f1ef249
--- /dev/null
+++ b/kaki33/src/main/res/values/themes.xml
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/kaki33/src/main/res/xml/app_updater_paths.xml b/kaki33/src/main/res/xml/app_updater_paths.xml
new file mode 100644
index 0000000..1254450
--- /dev/null
+++ b/kaki33/src/main/res/xml/app_updater_paths.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/kaki33/src/main/res/xml/network_security_config.xml b/kaki33/src/main/res/xml/network_security_config.xml
new file mode 100644
index 0000000..dca93c0
--- /dev/null
+++ b/kaki33/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/kaki33/src/main/res/xml/provider_paths.xml b/kaki33/src/main/res/xml/provider_paths.xml
new file mode 100644
index 0000000..c9a897a
--- /dev/null
+++ b/kaki33/src/main/res/xml/provider_paths.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/kaki33/telur33.jks b/kaki33/telur33.jks
new file mode 100644
index 0000000..f00434d
Binary files /dev/null and b/kaki33/telur33.jks differ
diff --git a/live22/.gitignore b/live22/.gitignore
new file mode 100644
index 0000000..956c004
--- /dev/null
+++ b/live22/.gitignore
@@ -0,0 +1,2 @@
+/build
+/release
\ No newline at end of file
diff --git a/live22/build.gradle b/live22/build.gradle
new file mode 100644
index 0000000..9125155
--- /dev/null
+++ b/live22/build.gradle
@@ -0,0 +1,93 @@
+plugins {
+ id 'com.android.application'
+ id 'com.google.gms.google-services'
+}
+
+def appOutPutName = "live22"
+
+android {
+ namespace rootProject.ext.namespace
+ compileSdk 36
+ defaultConfig {
+ minSdkVersion 24
+ targetSdk 36
+ versionCode rootProject.ext.versionCode
+ versionName rootProject.ext.versionName
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+
+ applicationId "com.daidn.live22"
+
+ //app大背景色
+ resValue('color', 'windows_color', '#440F6F')
+ //底部导航栏颜色 大背景颜色为 windows_color——style_color的上下渐变色
+ resValue('color', 'style_color', '#360B58')
+ //app 名字
+ resValue('string', 'app_name', 'LIVE22')
+
+
+ buildConfigField "String", "BASE_URL", "\"https://live22x.com/\""
+ buildConfigField "int", "USERID", "262"
+ buildConfigField "boolean", "IS_WHITE", "false"
+ buildConfigField "boolean", "IS_ROUND", "true"
+ buildConfigField "int", "ROUND_RADIUS", "10"
+ buildConfigField "boolean", "HAS_CONTACT", "true"
+ buildConfigField "boolean", "HAS_HOOK", "false"
+
+ }
+ buildFeatures {
+ buildConfig = true
+ }
+
+ signingConfigs {
+ debug {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ release {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ }
+
+ buildTypes {
+ release {
+ signingConfig signingConfigs.release
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility rootProject.ext.JAVA_VERSION
+ targetCompatibility rootProject.ext.JAVA_VERSION
+ }
+
+ applicationVariants.all { variant ->
+ variant.outputs.all {
+ def outputDir = new File(rootProject.ext.outputPath)
+ outputDir.mkdirs()
+ def outputFileName = "${appOutPutName}.apk"
+ setOutputFileName(outputFileName)
+ def newOutputFile = new File(outputDir, outputFileName)
+ newOutputFile.parentFile.mkdirs()
+ variant.assemble.doLast {
+ try {
+ java.nio.file.Files.copy(
+ outputFile.toPath(),
+ newOutputFile.toPath(),
+ java.nio.file.StandardCopyOption.REPLACE_EXISTING
+ )
+ } catch (java.io.IOException e) {
+ }
+ }
+ }
+ }
+
+}
+
+dependencies {
+ implementation project(path: ':base')
+}
\ No newline at end of file
diff --git a/live22/google-services.json b/live22/google-services.json
new file mode 100644
index 0000000..a0a4dbf
--- /dev/null
+++ b/live22/google-services.json
@@ -0,0 +1,29 @@
+{
+ "project_info": {
+ "project_number": "717557626585",
+ "project_id": "live22-997e3",
+ "storage_bucket": "live22-997e3.firebasestorage.app"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:717557626585:android:4bd86e3e5e825bb85f70c8",
+ "android_client_info": {
+ "package_name": "com.daidn.live22"
+ }
+ },
+ "oauth_client": [],
+ "api_key": [
+ {
+ "current_key": "AIzaSyBL6vtzuXlVfoSWiKHtk4p-TiLts0faqUQ"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": []
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/live22/justlet.jks b/live22/justlet.jks
new file mode 100644
index 0000000..a33b839
Binary files /dev/null and b/live22/justlet.jks differ
diff --git a/live22/proguard-rules.pro b/live22/proguard-rules.pro
new file mode 100644
index 0000000..107b7ee
--- /dev/null
+++ b/live22/proguard-rules.pro
@@ -0,0 +1,32 @@
+# 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
+
+# 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 *;
+#}
+
+# 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
+
+-dontwarn dalvik.**
+-dontwarn com.tencent.smtt.**
+
+-keep class com.tencent.smtt.** {
+ *;
+}
+
+-keep class com.tencent.tbs.** {
+ *;
+}
\ No newline at end of file
diff --git a/live22/src/main/AndroidManifest.xml b/live22/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..7cbc0e0
--- /dev/null
+++ b/live22/src/main/AndroidManifest.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/live22/src/main/java/com/webclip/base/IndexActivity.java b/live22/src/main/java/com/webclip/base/IndexActivity.java
new file mode 100644
index 0000000..c8e4780
--- /dev/null
+++ b/live22/src/main/java/com/webclip/base/IndexActivity.java
@@ -0,0 +1,79 @@
+package com.webclip.base;
+
+import android.os.Bundle;
+
+import com.google.firebase.messaging.FirebaseMessaging;
+
+public class IndexActivity extends MainActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ initConfig();
+ super.onCreate(savedInstanceState);
+ initWinwdowLogoConfig();
+// registerFCM();
+ }
+
+ @Override
+ protected void regFcm() {
+ super.regFcm();
+ registerFCM();
+ }
+
+ /**
+ * 注册FCM
+ */
+ private void registerFCM() {
+ //订阅主题
+ LogUtils.i("支持FCM 去注册");
+ try {
+ FirebaseMessaging.getInstance().subscribeToTopic("demo")
+ .addOnCompleteListener(task -> {
+ String msg = "Subscribed";
+ if (!task.isSuccessful()) {
+ msg = "Subscribe failed";
+ }else{
+ checkNotify();
+ }
+ LogUtils.i("支持FCM 结果:"+msg);
+ });
+ }catch (Exception e){
+ e.printStackTrace();
+ LogUtils.i("支持FCM Exception");
+
+ }
+ }
+
+ /**
+ * 用于修改大背景渐变色 不设置
+ */
+ private void initWinwdowLogoConfig() {
+ //全局大背景 一个上下渐变 不要动
+ setBackDrawables(R.drawable.big_bg);
+ setImageView(BuildConfig.IS_ROUND,BuildConfig.ROUND_RADIUS);
+ getWindow().getDecorView().setBackgroundResource(R.drawable.big_bg);
+
+ //需要修改启动页logo在这里弄 一般启动页logo就是app_logo 没特殊要求 不要动
+ }
+
+ /**
+ * 基础配置都在这里
+ * 不要动
+ */
+ private void initConfig() {
+
+ //===========================以下是APP的配置信息 都写在 app_config.xml中==================================
+ userId = BuildConfig.USERID;
+ saveInt(IndexActivity.this,"user_code",userId);
+
+ saveString(this, "base_url",BuildConfig.BASE_URL);
+ styleColor = getColor(R.color.style_color);
+ windowsColor = getColor(R.color.windows_color);
+ isWhite = BuildConfig.IS_WHITE;
+ hasContact = BuildConfig.HAS_CONTACT;
+ hasHook = BuildConfig.HAS_HOOK;
+
+ //===========================以上是APP的配置信息 都写在 app_config.xml中==================================
+ }
+
+}
diff --git a/live22/src/main/java/com/webclip/base/MyFirebaseMessageingService.java b/live22/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
new file mode 100644
index 0000000..36f2d65
--- /dev/null
+++ b/live22/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
@@ -0,0 +1,125 @@
+package com.webclip.base;
+
+import android.app.NotificationChannel;
+import android.app.NotificationManager;
+import android.app.PendingIntent;
+import android.content.ComponentName;
+import android.content.Context;
+import android.content.Intent;
+import android.os.Build;
+import androidx.annotation.NonNull;
+import androidx.core.app.NotificationCompat;
+import com.google.firebase.messaging.FirebaseMessagingService;
+import com.google.firebase.messaging.RemoteMessage;
+import com.google.gson.Gson;
+import com.webclip.base.GsonUtils;
+import com.webclip.base.MessageInfo;
+import java.util.Map;
+import java.util.Random;
+
+public class MyFirebaseMessageingService extends FirebaseMessagingService {
+
+ public MyFirebaseMessageingService() {
+ }
+
+ @Override
+ public void onMessageReceived(@NonNull RemoteMessage remoteMessage) {
+ super.onMessageReceived(remoteMessage);
+ Map serviceData = remoteMessage.getData(); //后台推送数据
+ if (serviceData != null && serviceData.containsKey("message")) {
+ String value = serviceData.get("message");
+ Gson gson = new Gson();
+ MessageInfo messageInfo = gson.fromJson(value, MessageInfo.class);
+ showNotification(messageInfo);
+ } else {
+ //收到通知 创建notify
+ if (remoteMessage.getNotification() != null) {
+ showNotification(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody());
+ }
+ }
+ }
+
+ private void showNotification(MessageInfo messageInfo) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ notifyIntent.putExtra("message", messageInfo);
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+
+ private void showNotification(String title, String body) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.putExtra("message", body);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ MessageInfo messageInfo = GsonUtils.getObjFromJSON(body, MessageInfo.class);
+ if (messageInfo != null) {
+ body = messageInfo.getContent();
+ }
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+}
diff --git a/live22/src/main/java/com/webclip/base/WebApplication.java b/live22/src/main/java/com/webclip/base/WebApplication.java
new file mode 100644
index 0000000..36e2512
--- /dev/null
+++ b/live22/src/main/java/com/webclip/base/WebApplication.java
@@ -0,0 +1,19 @@
+package com.webclip.base;
+
+import android.app.Application;
+import android.content.Context;
+
+import com.webclip.base.LogUtils;
+
+public class WebApplication extends Application {
+
+
+ public static Context application;
+ @Override
+ public void onCreate() {
+ super.onCreate();
+// 设置开启优化方案
+ application = this;
+ LogUtils.isDebug = BuildConfig.BUILD_TYPE.equals("debug");
+ }
+}
diff --git a/live22/src/main/res/drawable/big_bg.xml b/live22/src/main/res/drawable/big_bg.xml
new file mode 100644
index 0000000..aa44959
--- /dev/null
+++ b/live22/src/main/res/drawable/big_bg.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/live22/src/main/res/mipmap-xxhdpi/app_logo.jpg b/live22/src/main/res/mipmap-xxhdpi/app_logo.jpg
new file mode 100644
index 0000000..6dde113
Binary files /dev/null and b/live22/src/main/res/mipmap-xxhdpi/app_logo.jpg differ
diff --git a/live22/src/main/res/values/themes.xml b/live22/src/main/res/values/themes.xml
new file mode 100644
index 0000000..f1ef249
--- /dev/null
+++ b/live22/src/main/res/values/themes.xml
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/live22/src/main/res/xml/app_updater_paths.xml b/live22/src/main/res/xml/app_updater_paths.xml
new file mode 100644
index 0000000..1254450
--- /dev/null
+++ b/live22/src/main/res/xml/app_updater_paths.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/live22/src/main/res/xml/network_security_config.xml b/live22/src/main/res/xml/network_security_config.xml
new file mode 100644
index 0000000..dca93c0
--- /dev/null
+++ b/live22/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/live22/src/main/res/xml/provider_paths.xml b/live22/src/main/res/xml/provider_paths.xml
new file mode 100644
index 0000000..c9a897a
--- /dev/null
+++ b/live22/src/main/res/xml/provider_paths.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/live22/telur33.jks b/live22/telur33.jks
new file mode 100644
index 0000000..f00434d
Binary files /dev/null and b/live22/telur33.jks differ
diff --git a/mgmhotram/.gitignore b/mgmhotram/.gitignore
new file mode 100644
index 0000000..956c004
--- /dev/null
+++ b/mgmhotram/.gitignore
@@ -0,0 +1,2 @@
+/build
+/release
\ No newline at end of file
diff --git a/mgmhotram/build.gradle b/mgmhotram/build.gradle
new file mode 100644
index 0000000..e5be036
--- /dev/null
+++ b/mgmhotram/build.gradle
@@ -0,0 +1,93 @@
+plugins {
+ id 'com.android.application'
+ id 'com.google.gms.google-services'
+}
+
+def appOutPutName = "mgmhotram"
+
+android {
+ namespace rootProject.ext.namespace
+ compileSdk 36
+ defaultConfig {
+ minSdkVersion 24
+ targetSdk 36
+ versionCode rootProject.ext.versionCode
+ versionName rootProject.ext.versionName
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+
+ applicationId "com.examp101.mgmhotram"
+
+ //app大背景色
+ resValue('color', 'windows_color', '#060000')
+ //底部导航栏颜色 大背景颜色为 windows_color——style_color的上下渐变色
+ resValue('color', 'style_color', '#060000')
+ //app 名字
+ resValue('string', 'app_name', 'mgmhotram')
+
+
+ buildConfigField "String", "BASE_URL", "\"https://live22x.com/\""
+ buildConfigField "int", "USERID", "266"
+ buildConfigField "boolean", "IS_WHITE", "false"
+ buildConfigField "boolean", "IS_ROUND", "true"
+ buildConfigField "int", "ROUND_RADIUS", "10"
+ buildConfigField "boolean", "HAS_CONTACT", "true"
+ buildConfigField "boolean", "HAS_HOOK", "false"
+
+ }
+ buildFeatures {
+ buildConfig = true
+ }
+
+ signingConfigs {
+ debug {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ release {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ }
+
+ buildTypes {
+ release {
+ signingConfig signingConfigs.release
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility rootProject.ext.JAVA_VERSION
+ targetCompatibility rootProject.ext.JAVA_VERSION
+ }
+
+ applicationVariants.all { variant ->
+ variant.outputs.all {
+ def outputDir = new File(rootProject.ext.outputPath)
+ outputDir.mkdirs()
+ def outputFileName = "${appOutPutName}.apk"
+ setOutputFileName(outputFileName)
+ def newOutputFile = new File(outputDir, outputFileName)
+ newOutputFile.parentFile.mkdirs()
+ variant.assemble.doLast {
+ try {
+ java.nio.file.Files.copy(
+ outputFile.toPath(),
+ newOutputFile.toPath(),
+ java.nio.file.StandardCopyOption.REPLACE_EXISTING
+ )
+ } catch (java.io.IOException e) {
+ }
+ }
+ }
+ }
+
+}
+
+dependencies {
+ implementation project(path: ':base')
+}
\ No newline at end of file
diff --git a/mgmhotram/google-services.json b/mgmhotram/google-services.json
new file mode 100644
index 0000000..1051ebf
--- /dev/null
+++ b/mgmhotram/google-services.json
@@ -0,0 +1,29 @@
+{
+ "project_info": {
+ "project_number": "131401023907",
+ "project_id": "mgmhotram-28032",
+ "storage_bucket": "mgmhotram-28032.firebasestorage.app"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:131401023907:android:409d24bb24f0aef3ca5a16",
+ "android_client_info": {
+ "package_name": "com.examp101.mgmhotram"
+ }
+ },
+ "oauth_client": [],
+ "api_key": [
+ {
+ "current_key": "AIzaSyAr2mjtSYJgYHSBJ25Ue4xTeW8GD-txGqA"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": []
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/mgmhotram/justlet.jks b/mgmhotram/justlet.jks
new file mode 100644
index 0000000..a33b839
Binary files /dev/null and b/mgmhotram/justlet.jks differ
diff --git a/mgmhotram/proguard-rules.pro b/mgmhotram/proguard-rules.pro
new file mode 100644
index 0000000..107b7ee
--- /dev/null
+++ b/mgmhotram/proguard-rules.pro
@@ -0,0 +1,32 @@
+# 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
+
+# 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 *;
+#}
+
+# 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
+
+-dontwarn dalvik.**
+-dontwarn com.tencent.smtt.**
+
+-keep class com.tencent.smtt.** {
+ *;
+}
+
+-keep class com.tencent.tbs.** {
+ *;
+}
\ No newline at end of file
diff --git a/mgmhotram/src/main/AndroidManifest.xml b/mgmhotram/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..7cbc0e0
--- /dev/null
+++ b/mgmhotram/src/main/AndroidManifest.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mgmhotram/src/main/java/com/webclip/base/IndexActivity.java b/mgmhotram/src/main/java/com/webclip/base/IndexActivity.java
new file mode 100644
index 0000000..c8e4780
--- /dev/null
+++ b/mgmhotram/src/main/java/com/webclip/base/IndexActivity.java
@@ -0,0 +1,79 @@
+package com.webclip.base;
+
+import android.os.Bundle;
+
+import com.google.firebase.messaging.FirebaseMessaging;
+
+public class IndexActivity extends MainActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ initConfig();
+ super.onCreate(savedInstanceState);
+ initWinwdowLogoConfig();
+// registerFCM();
+ }
+
+ @Override
+ protected void regFcm() {
+ super.regFcm();
+ registerFCM();
+ }
+
+ /**
+ * 注册FCM
+ */
+ private void registerFCM() {
+ //订阅主题
+ LogUtils.i("支持FCM 去注册");
+ try {
+ FirebaseMessaging.getInstance().subscribeToTopic("demo")
+ .addOnCompleteListener(task -> {
+ String msg = "Subscribed";
+ if (!task.isSuccessful()) {
+ msg = "Subscribe failed";
+ }else{
+ checkNotify();
+ }
+ LogUtils.i("支持FCM 结果:"+msg);
+ });
+ }catch (Exception e){
+ e.printStackTrace();
+ LogUtils.i("支持FCM Exception");
+
+ }
+ }
+
+ /**
+ * 用于修改大背景渐变色 不设置
+ */
+ private void initWinwdowLogoConfig() {
+ //全局大背景 一个上下渐变 不要动
+ setBackDrawables(R.drawable.big_bg);
+ setImageView(BuildConfig.IS_ROUND,BuildConfig.ROUND_RADIUS);
+ getWindow().getDecorView().setBackgroundResource(R.drawable.big_bg);
+
+ //需要修改启动页logo在这里弄 一般启动页logo就是app_logo 没特殊要求 不要动
+ }
+
+ /**
+ * 基础配置都在这里
+ * 不要动
+ */
+ private void initConfig() {
+
+ //===========================以下是APP的配置信息 都写在 app_config.xml中==================================
+ userId = BuildConfig.USERID;
+ saveInt(IndexActivity.this,"user_code",userId);
+
+ saveString(this, "base_url",BuildConfig.BASE_URL);
+ styleColor = getColor(R.color.style_color);
+ windowsColor = getColor(R.color.windows_color);
+ isWhite = BuildConfig.IS_WHITE;
+ hasContact = BuildConfig.HAS_CONTACT;
+ hasHook = BuildConfig.HAS_HOOK;
+
+ //===========================以上是APP的配置信息 都写在 app_config.xml中==================================
+ }
+
+}
diff --git a/mgmhotram/src/main/java/com/webclip/base/MyFirebaseMessageingService.java b/mgmhotram/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
new file mode 100644
index 0000000..36f2d65
--- /dev/null
+++ b/mgmhotram/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
@@ -0,0 +1,125 @@
+package com.webclip.base;
+
+import android.app.NotificationChannel;
+import android.app.NotificationManager;
+import android.app.PendingIntent;
+import android.content.ComponentName;
+import android.content.Context;
+import android.content.Intent;
+import android.os.Build;
+import androidx.annotation.NonNull;
+import androidx.core.app.NotificationCompat;
+import com.google.firebase.messaging.FirebaseMessagingService;
+import com.google.firebase.messaging.RemoteMessage;
+import com.google.gson.Gson;
+import com.webclip.base.GsonUtils;
+import com.webclip.base.MessageInfo;
+import java.util.Map;
+import java.util.Random;
+
+public class MyFirebaseMessageingService extends FirebaseMessagingService {
+
+ public MyFirebaseMessageingService() {
+ }
+
+ @Override
+ public void onMessageReceived(@NonNull RemoteMessage remoteMessage) {
+ super.onMessageReceived(remoteMessage);
+ Map serviceData = remoteMessage.getData(); //后台推送数据
+ if (serviceData != null && serviceData.containsKey("message")) {
+ String value = serviceData.get("message");
+ Gson gson = new Gson();
+ MessageInfo messageInfo = gson.fromJson(value, MessageInfo.class);
+ showNotification(messageInfo);
+ } else {
+ //收到通知 创建notify
+ if (remoteMessage.getNotification() != null) {
+ showNotification(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody());
+ }
+ }
+ }
+
+ private void showNotification(MessageInfo messageInfo) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ notifyIntent.putExtra("message", messageInfo);
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+
+ private void showNotification(String title, String body) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.putExtra("message", body);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ MessageInfo messageInfo = GsonUtils.getObjFromJSON(body, MessageInfo.class);
+ if (messageInfo != null) {
+ body = messageInfo.getContent();
+ }
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+}
diff --git a/mgmhotram/src/main/java/com/webclip/base/WebApplication.java b/mgmhotram/src/main/java/com/webclip/base/WebApplication.java
new file mode 100644
index 0000000..36e2512
--- /dev/null
+++ b/mgmhotram/src/main/java/com/webclip/base/WebApplication.java
@@ -0,0 +1,19 @@
+package com.webclip.base;
+
+import android.app.Application;
+import android.content.Context;
+
+import com.webclip.base.LogUtils;
+
+public class WebApplication extends Application {
+
+
+ public static Context application;
+ @Override
+ public void onCreate() {
+ super.onCreate();
+// 设置开启优化方案
+ application = this;
+ LogUtils.isDebug = BuildConfig.BUILD_TYPE.equals("debug");
+ }
+}
diff --git a/mgmhotram/src/main/res/drawable/big_bg.xml b/mgmhotram/src/main/res/drawable/big_bg.xml
new file mode 100644
index 0000000..aa44959
--- /dev/null
+++ b/mgmhotram/src/main/res/drawable/big_bg.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/mgmhotram/src/main/res/mipmap-xxhdpi/app_logo.jpg b/mgmhotram/src/main/res/mipmap-xxhdpi/app_logo.jpg
new file mode 100644
index 0000000..c12e0b8
Binary files /dev/null and b/mgmhotram/src/main/res/mipmap-xxhdpi/app_logo.jpg differ
diff --git a/mgmhotram/src/main/res/values/themes.xml b/mgmhotram/src/main/res/values/themes.xml
new file mode 100644
index 0000000..f1ef249
--- /dev/null
+++ b/mgmhotram/src/main/res/values/themes.xml
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mgmhotram/src/main/res/xml/app_updater_paths.xml b/mgmhotram/src/main/res/xml/app_updater_paths.xml
new file mode 100644
index 0000000..1254450
--- /dev/null
+++ b/mgmhotram/src/main/res/xml/app_updater_paths.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mgmhotram/src/main/res/xml/network_security_config.xml b/mgmhotram/src/main/res/xml/network_security_config.xml
new file mode 100644
index 0000000..dca93c0
--- /dev/null
+++ b/mgmhotram/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/mgmhotram/src/main/res/xml/provider_paths.xml b/mgmhotram/src/main/res/xml/provider_paths.xml
new file mode 100644
index 0000000..c9a897a
--- /dev/null
+++ b/mgmhotram/src/main/res/xml/provider_paths.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mgmhotram/telur33.jks b/mgmhotram/telur33.jks
new file mode 100644
index 0000000..f00434d
Binary files /dev/null and b/mgmhotram/telur33.jks differ
diff --git a/pantas3342/.gitignore b/pantas3342/.gitignore
new file mode 100644
index 0000000..956c004
--- /dev/null
+++ b/pantas3342/.gitignore
@@ -0,0 +1,2 @@
+/build
+/release
\ No newline at end of file
diff --git a/pantas3342/build.gradle b/pantas3342/build.gradle
new file mode 100644
index 0000000..38db4da
--- /dev/null
+++ b/pantas3342/build.gradle
@@ -0,0 +1,93 @@
+plugins {
+ id 'com.android.application'
+ id 'com.google.gms.google-services'
+}
+
+def appOutPutName = "pantas33"
+
+android {
+ namespace rootProject.ext.namespace
+ compileSdk 36
+ defaultConfig {
+ minSdkVersion 24
+ targetSdk 36
+ versionCode 142
+ versionName "v1.4.2"
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+
+ applicationId "com.and.pantas3342"
+
+ //app大背景色
+ resValue('color', 'windows_color', '#1C322A')
+ //底部导航栏颜色 大背景颜色为 windows_color——style_color的上下渐变色
+ resValue('color', 'style_color', '#1C322A')
+ //app 名字
+ resValue('string', 'app_name', 'Pantas33')
+
+
+ buildConfigField "String", "BASE_URL", "\"https://www.pantas33e.com/\""
+ buildConfigField "int", "USERID", "142"
+ buildConfigField "boolean", "IS_WHITE", "false"
+ buildConfigField "boolean", "IS_ROUND", "true"
+ buildConfigField "int", "ROUND_RADIUS", "10"
+ buildConfigField "boolean", "HAS_CONTACT", "true"
+ buildConfigField "boolean", "HAS_HOOK", "false"
+
+ }
+ buildFeatures {
+ buildConfig = true
+ }
+
+ signingConfigs {
+ debug {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ release {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ }
+
+ buildTypes {
+ release {
+ signingConfig signingConfigs.release
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility rootProject.ext.JAVA_VERSION
+ targetCompatibility rootProject.ext.JAVA_VERSION
+ }
+
+ applicationVariants.all { variant ->
+ variant.outputs.all {
+ def outputDir = new File(rootProject.ext.outputPath)
+ outputDir.mkdirs()
+ def outputFileName = "${appOutPutName}.apk"
+ setOutputFileName(outputFileName)
+ def newOutputFile = new File(outputDir, outputFileName)
+ newOutputFile.parentFile.mkdirs()
+ variant.assemble.doLast {
+ try {
+ java.nio.file.Files.copy(
+ outputFile.toPath(),
+ newOutputFile.toPath(),
+ java.nio.file.StandardCopyOption.REPLACE_EXISTING
+ )
+ } catch (java.io.IOException e) {
+ }
+ }
+ }
+ }
+
+}
+
+dependencies {
+ implementation project(path: ':base')
+}
\ No newline at end of file
diff --git a/pantas3342/google-services.json b/pantas3342/google-services.json
new file mode 100644
index 0000000..20e2b3e
--- /dev/null
+++ b/pantas3342/google-services.json
@@ -0,0 +1,29 @@
+{
+ "project_info": {
+ "project_number": "541726336017",
+ "project_id": "pantas3342",
+ "storage_bucket": "pantas3342.firebasestorage.app"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:541726336017:android:6589c2c468ba77847b7db0",
+ "android_client_info": {
+ "package_name": "com.and.pantas3342"
+ }
+ },
+ "oauth_client": [],
+ "api_key": [
+ {
+ "current_key": "AIzaSyBoBUGvJs5V9XxNhBQXoy7XLO84oT-ycng"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": []
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/pantas3342/justlet.jks b/pantas3342/justlet.jks
new file mode 100644
index 0000000..a33b839
Binary files /dev/null and b/pantas3342/justlet.jks differ
diff --git a/pantas3342/proguard-rules.pro b/pantas3342/proguard-rules.pro
new file mode 100644
index 0000000..107b7ee
--- /dev/null
+++ b/pantas3342/proguard-rules.pro
@@ -0,0 +1,32 @@
+# 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
+
+# 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 *;
+#}
+
+# 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
+
+-dontwarn dalvik.**
+-dontwarn com.tencent.smtt.**
+
+-keep class com.tencent.smtt.** {
+ *;
+}
+
+-keep class com.tencent.tbs.** {
+ *;
+}
\ No newline at end of file
diff --git a/pantas3342/src/main/AndroidManifest.xml b/pantas3342/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..7cbc0e0
--- /dev/null
+++ b/pantas3342/src/main/AndroidManifest.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pantas3342/src/main/java/com/webclip/base/IndexActivity.java b/pantas3342/src/main/java/com/webclip/base/IndexActivity.java
new file mode 100644
index 0000000..c8e4780
--- /dev/null
+++ b/pantas3342/src/main/java/com/webclip/base/IndexActivity.java
@@ -0,0 +1,79 @@
+package com.webclip.base;
+
+import android.os.Bundle;
+
+import com.google.firebase.messaging.FirebaseMessaging;
+
+public class IndexActivity extends MainActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ initConfig();
+ super.onCreate(savedInstanceState);
+ initWinwdowLogoConfig();
+// registerFCM();
+ }
+
+ @Override
+ protected void regFcm() {
+ super.regFcm();
+ registerFCM();
+ }
+
+ /**
+ * 注册FCM
+ */
+ private void registerFCM() {
+ //订阅主题
+ LogUtils.i("支持FCM 去注册");
+ try {
+ FirebaseMessaging.getInstance().subscribeToTopic("demo")
+ .addOnCompleteListener(task -> {
+ String msg = "Subscribed";
+ if (!task.isSuccessful()) {
+ msg = "Subscribe failed";
+ }else{
+ checkNotify();
+ }
+ LogUtils.i("支持FCM 结果:"+msg);
+ });
+ }catch (Exception e){
+ e.printStackTrace();
+ LogUtils.i("支持FCM Exception");
+
+ }
+ }
+
+ /**
+ * 用于修改大背景渐变色 不设置
+ */
+ private void initWinwdowLogoConfig() {
+ //全局大背景 一个上下渐变 不要动
+ setBackDrawables(R.drawable.big_bg);
+ setImageView(BuildConfig.IS_ROUND,BuildConfig.ROUND_RADIUS);
+ getWindow().getDecorView().setBackgroundResource(R.drawable.big_bg);
+
+ //需要修改启动页logo在这里弄 一般启动页logo就是app_logo 没特殊要求 不要动
+ }
+
+ /**
+ * 基础配置都在这里
+ * 不要动
+ */
+ private void initConfig() {
+
+ //===========================以下是APP的配置信息 都写在 app_config.xml中==================================
+ userId = BuildConfig.USERID;
+ saveInt(IndexActivity.this,"user_code",userId);
+
+ saveString(this, "base_url",BuildConfig.BASE_URL);
+ styleColor = getColor(R.color.style_color);
+ windowsColor = getColor(R.color.windows_color);
+ isWhite = BuildConfig.IS_WHITE;
+ hasContact = BuildConfig.HAS_CONTACT;
+ hasHook = BuildConfig.HAS_HOOK;
+
+ //===========================以上是APP的配置信息 都写在 app_config.xml中==================================
+ }
+
+}
diff --git a/pantas3342/src/main/java/com/webclip/base/MyFirebaseMessageingService.java b/pantas3342/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
new file mode 100644
index 0000000..36f2d65
--- /dev/null
+++ b/pantas3342/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
@@ -0,0 +1,125 @@
+package com.webclip.base;
+
+import android.app.NotificationChannel;
+import android.app.NotificationManager;
+import android.app.PendingIntent;
+import android.content.ComponentName;
+import android.content.Context;
+import android.content.Intent;
+import android.os.Build;
+import androidx.annotation.NonNull;
+import androidx.core.app.NotificationCompat;
+import com.google.firebase.messaging.FirebaseMessagingService;
+import com.google.firebase.messaging.RemoteMessage;
+import com.google.gson.Gson;
+import com.webclip.base.GsonUtils;
+import com.webclip.base.MessageInfo;
+import java.util.Map;
+import java.util.Random;
+
+public class MyFirebaseMessageingService extends FirebaseMessagingService {
+
+ public MyFirebaseMessageingService() {
+ }
+
+ @Override
+ public void onMessageReceived(@NonNull RemoteMessage remoteMessage) {
+ super.onMessageReceived(remoteMessage);
+ Map serviceData = remoteMessage.getData(); //后台推送数据
+ if (serviceData != null && serviceData.containsKey("message")) {
+ String value = serviceData.get("message");
+ Gson gson = new Gson();
+ MessageInfo messageInfo = gson.fromJson(value, MessageInfo.class);
+ showNotification(messageInfo);
+ } else {
+ //收到通知 创建notify
+ if (remoteMessage.getNotification() != null) {
+ showNotification(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody());
+ }
+ }
+ }
+
+ private void showNotification(MessageInfo messageInfo) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ notifyIntent.putExtra("message", messageInfo);
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+
+ private void showNotification(String title, String body) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.putExtra("message", body);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ MessageInfo messageInfo = GsonUtils.getObjFromJSON(body, MessageInfo.class);
+ if (messageInfo != null) {
+ body = messageInfo.getContent();
+ }
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+}
diff --git a/pantas3342/src/main/java/com/webclip/base/WebApplication.java b/pantas3342/src/main/java/com/webclip/base/WebApplication.java
new file mode 100644
index 0000000..36e2512
--- /dev/null
+++ b/pantas3342/src/main/java/com/webclip/base/WebApplication.java
@@ -0,0 +1,19 @@
+package com.webclip.base;
+
+import android.app.Application;
+import android.content.Context;
+
+import com.webclip.base.LogUtils;
+
+public class WebApplication extends Application {
+
+
+ public static Context application;
+ @Override
+ public void onCreate() {
+ super.onCreate();
+// 设置开启优化方案
+ application = this;
+ LogUtils.isDebug = BuildConfig.BUILD_TYPE.equals("debug");
+ }
+}
diff --git a/pantas3342/src/main/res/drawable/big_bg.xml b/pantas3342/src/main/res/drawable/big_bg.xml
new file mode 100644
index 0000000..aa44959
--- /dev/null
+++ b/pantas3342/src/main/res/drawable/big_bg.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/pantas3342/src/main/res/mipmap-xxhdpi/app_logo.jpg b/pantas3342/src/main/res/mipmap-xxhdpi/app_logo.jpg
new file mode 100644
index 0000000..e0e5ac4
Binary files /dev/null and b/pantas3342/src/main/res/mipmap-xxhdpi/app_logo.jpg differ
diff --git a/pantas3342/src/main/res/values/themes.xml b/pantas3342/src/main/res/values/themes.xml
new file mode 100644
index 0000000..f1ef249
--- /dev/null
+++ b/pantas3342/src/main/res/values/themes.xml
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pantas3342/src/main/res/xml/app_updater_paths.xml b/pantas3342/src/main/res/xml/app_updater_paths.xml
new file mode 100644
index 0000000..1254450
--- /dev/null
+++ b/pantas3342/src/main/res/xml/app_updater_paths.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pantas3342/src/main/res/xml/network_security_config.xml b/pantas3342/src/main/res/xml/network_security_config.xml
new file mode 100644
index 0000000..dca93c0
--- /dev/null
+++ b/pantas3342/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/pantas3342/src/main/res/xml/provider_paths.xml b/pantas3342/src/main/res/xml/provider_paths.xml
new file mode 100644
index 0000000..c9a897a
--- /dev/null
+++ b/pantas3342/src/main/res/xml/provider_paths.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pantas3342/telur33.jks b/pantas3342/telur33.jks
new file mode 100644
index 0000000..f00434d
Binary files /dev/null and b/pantas3342/telur33.jks differ
diff --git a/redspin3343/.gitignore b/redspin3343/.gitignore
new file mode 100644
index 0000000..956c004
--- /dev/null
+++ b/redspin3343/.gitignore
@@ -0,0 +1,2 @@
+/build
+/release
\ No newline at end of file
diff --git a/redspin3343/build.gradle b/redspin3343/build.gradle
new file mode 100644
index 0000000..854f423
--- /dev/null
+++ b/redspin3343/build.gradle
@@ -0,0 +1,93 @@
+plugins {
+ id 'com.android.application'
+ id 'com.google.gms.google-services'
+}
+
+def appOutPutName = "REDSPIN3343"
+
+android {
+ namespace rootProject.ext.namespace
+ compileSdk 36
+ defaultConfig {
+ minSdkVersion 24
+ targetSdk 36
+ versionCode rootProject.ext.versionCode
+ versionName rootProject.ext.versionName
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+
+ applicationId "com.exmp23.REDSPIN3343"
+
+ //app大背景色
+ resValue('color', 'windows_color', '#4D0707')
+ //底部导航栏颜色 大背景颜色为 windows_color——style_color的上下渐变色
+ resValue('color', 'style_color', '#4D0707')
+ //app 名字
+ resValue('string', 'app_name', 'REDSPIN3343')
+
+
+ buildConfigField "String", "BASE_URL", "\"https://redspinplay.com/\""
+ buildConfigField "int", "USERID", "263"
+ buildConfigField "boolean", "IS_WHITE", "false"
+ buildConfigField "boolean", "IS_ROUND", "true"
+ buildConfigField "int", "ROUND_RADIUS", "10"
+ buildConfigField "boolean", "HAS_CONTACT", "true"
+ buildConfigField "boolean", "HAS_HOOK", "false"
+
+ }
+ buildFeatures {
+ buildConfig = true
+ }
+
+ signingConfigs {
+ debug {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ release {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ }
+
+ buildTypes {
+ release {
+ signingConfig signingConfigs.release
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility rootProject.ext.JAVA_VERSION
+ targetCompatibility rootProject.ext.JAVA_VERSION
+ }
+
+ applicationVariants.all { variant ->
+ variant.outputs.all {
+ def outputDir = new File(rootProject.ext.outputPath)
+ outputDir.mkdirs()
+ def outputFileName = "${appOutPutName}.apk"
+ setOutputFileName(outputFileName)
+ def newOutputFile = new File(outputDir, outputFileName)
+ newOutputFile.parentFile.mkdirs()
+ variant.assemble.doLast {
+ try {
+ java.nio.file.Files.copy(
+ outputFile.toPath(),
+ newOutputFile.toPath(),
+ java.nio.file.StandardCopyOption.REPLACE_EXISTING
+ )
+ } catch (java.io.IOException e) {
+ }
+ }
+ }
+ }
+
+}
+
+dependencies {
+ implementation project(path: ':base')
+}
\ No newline at end of file
diff --git a/redspin3343/google-services.json b/redspin3343/google-services.json
new file mode 100644
index 0000000..3e46591
--- /dev/null
+++ b/redspin3343/google-services.json
@@ -0,0 +1,29 @@
+{
+ "project_info": {
+ "project_number": "106504396785",
+ "project_id": "redspin3343",
+ "storage_bucket": "redspin3343.firebasestorage.app"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:106504396785:android:4c3418417383689c50ee50",
+ "android_client_info": {
+ "package_name": "com.exmp23.REDSPIN3343"
+ }
+ },
+ "oauth_client": [],
+ "api_key": [
+ {
+ "current_key": "AIzaSyB1TQRzpp2XWRt8w_H-nQRu4s2L_v8Zah0"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": []
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/redspin3343/justlet.jks b/redspin3343/justlet.jks
new file mode 100644
index 0000000..a33b839
Binary files /dev/null and b/redspin3343/justlet.jks differ
diff --git a/redspin3343/proguard-rules.pro b/redspin3343/proguard-rules.pro
new file mode 100644
index 0000000..107b7ee
--- /dev/null
+++ b/redspin3343/proguard-rules.pro
@@ -0,0 +1,32 @@
+# 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
+
+# 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 *;
+#}
+
+# 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
+
+-dontwarn dalvik.**
+-dontwarn com.tencent.smtt.**
+
+-keep class com.tencent.smtt.** {
+ *;
+}
+
+-keep class com.tencent.tbs.** {
+ *;
+}
\ No newline at end of file
diff --git a/redspin3343/src/main/AndroidManifest.xml b/redspin3343/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..7cbc0e0
--- /dev/null
+++ b/redspin3343/src/main/AndroidManifest.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/redspin3343/src/main/java/com/webclip/base/IndexActivity.java b/redspin3343/src/main/java/com/webclip/base/IndexActivity.java
new file mode 100644
index 0000000..c8e4780
--- /dev/null
+++ b/redspin3343/src/main/java/com/webclip/base/IndexActivity.java
@@ -0,0 +1,79 @@
+package com.webclip.base;
+
+import android.os.Bundle;
+
+import com.google.firebase.messaging.FirebaseMessaging;
+
+public class IndexActivity extends MainActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ initConfig();
+ super.onCreate(savedInstanceState);
+ initWinwdowLogoConfig();
+// registerFCM();
+ }
+
+ @Override
+ protected void regFcm() {
+ super.regFcm();
+ registerFCM();
+ }
+
+ /**
+ * 注册FCM
+ */
+ private void registerFCM() {
+ //订阅主题
+ LogUtils.i("支持FCM 去注册");
+ try {
+ FirebaseMessaging.getInstance().subscribeToTopic("demo")
+ .addOnCompleteListener(task -> {
+ String msg = "Subscribed";
+ if (!task.isSuccessful()) {
+ msg = "Subscribe failed";
+ }else{
+ checkNotify();
+ }
+ LogUtils.i("支持FCM 结果:"+msg);
+ });
+ }catch (Exception e){
+ e.printStackTrace();
+ LogUtils.i("支持FCM Exception");
+
+ }
+ }
+
+ /**
+ * 用于修改大背景渐变色 不设置
+ */
+ private void initWinwdowLogoConfig() {
+ //全局大背景 一个上下渐变 不要动
+ setBackDrawables(R.drawable.big_bg);
+ setImageView(BuildConfig.IS_ROUND,BuildConfig.ROUND_RADIUS);
+ getWindow().getDecorView().setBackgroundResource(R.drawable.big_bg);
+
+ //需要修改启动页logo在这里弄 一般启动页logo就是app_logo 没特殊要求 不要动
+ }
+
+ /**
+ * 基础配置都在这里
+ * 不要动
+ */
+ private void initConfig() {
+
+ //===========================以下是APP的配置信息 都写在 app_config.xml中==================================
+ userId = BuildConfig.USERID;
+ saveInt(IndexActivity.this,"user_code",userId);
+
+ saveString(this, "base_url",BuildConfig.BASE_URL);
+ styleColor = getColor(R.color.style_color);
+ windowsColor = getColor(R.color.windows_color);
+ isWhite = BuildConfig.IS_WHITE;
+ hasContact = BuildConfig.HAS_CONTACT;
+ hasHook = BuildConfig.HAS_HOOK;
+
+ //===========================以上是APP的配置信息 都写在 app_config.xml中==================================
+ }
+
+}
diff --git a/redspin3343/src/main/java/com/webclip/base/MyFirebaseMessageingService.java b/redspin3343/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
new file mode 100644
index 0000000..36f2d65
--- /dev/null
+++ b/redspin3343/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
@@ -0,0 +1,125 @@
+package com.webclip.base;
+
+import android.app.NotificationChannel;
+import android.app.NotificationManager;
+import android.app.PendingIntent;
+import android.content.ComponentName;
+import android.content.Context;
+import android.content.Intent;
+import android.os.Build;
+import androidx.annotation.NonNull;
+import androidx.core.app.NotificationCompat;
+import com.google.firebase.messaging.FirebaseMessagingService;
+import com.google.firebase.messaging.RemoteMessage;
+import com.google.gson.Gson;
+import com.webclip.base.GsonUtils;
+import com.webclip.base.MessageInfo;
+import java.util.Map;
+import java.util.Random;
+
+public class MyFirebaseMessageingService extends FirebaseMessagingService {
+
+ public MyFirebaseMessageingService() {
+ }
+
+ @Override
+ public void onMessageReceived(@NonNull RemoteMessage remoteMessage) {
+ super.onMessageReceived(remoteMessage);
+ Map serviceData = remoteMessage.getData(); //后台推送数据
+ if (serviceData != null && serviceData.containsKey("message")) {
+ String value = serviceData.get("message");
+ Gson gson = new Gson();
+ MessageInfo messageInfo = gson.fromJson(value, MessageInfo.class);
+ showNotification(messageInfo);
+ } else {
+ //收到通知 创建notify
+ if (remoteMessage.getNotification() != null) {
+ showNotification(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody());
+ }
+ }
+ }
+
+ private void showNotification(MessageInfo messageInfo) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ notifyIntent.putExtra("message", messageInfo);
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+
+ private void showNotification(String title, String body) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.putExtra("message", body);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ MessageInfo messageInfo = GsonUtils.getObjFromJSON(body, MessageInfo.class);
+ if (messageInfo != null) {
+ body = messageInfo.getContent();
+ }
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+}
diff --git a/redspin3343/src/main/java/com/webclip/base/WebApplication.java b/redspin3343/src/main/java/com/webclip/base/WebApplication.java
new file mode 100644
index 0000000..36e2512
--- /dev/null
+++ b/redspin3343/src/main/java/com/webclip/base/WebApplication.java
@@ -0,0 +1,19 @@
+package com.webclip.base;
+
+import android.app.Application;
+import android.content.Context;
+
+import com.webclip.base.LogUtils;
+
+public class WebApplication extends Application {
+
+
+ public static Context application;
+ @Override
+ public void onCreate() {
+ super.onCreate();
+// 设置开启优化方案
+ application = this;
+ LogUtils.isDebug = BuildConfig.BUILD_TYPE.equals("debug");
+ }
+}
diff --git a/redspin3343/src/main/res/drawable/big_bg.xml b/redspin3343/src/main/res/drawable/big_bg.xml
new file mode 100644
index 0000000..aa44959
--- /dev/null
+++ b/redspin3343/src/main/res/drawable/big_bg.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/redspin3343/src/main/res/mipmap-xxhdpi/app_logo.png b/redspin3343/src/main/res/mipmap-xxhdpi/app_logo.png
new file mode 100644
index 0000000..220538d
Binary files /dev/null and b/redspin3343/src/main/res/mipmap-xxhdpi/app_logo.png differ
diff --git a/redspin3343/src/main/res/values/themes.xml b/redspin3343/src/main/res/values/themes.xml
new file mode 100644
index 0000000..f1ef249
--- /dev/null
+++ b/redspin3343/src/main/res/values/themes.xml
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/redspin3343/src/main/res/xml/app_updater_paths.xml b/redspin3343/src/main/res/xml/app_updater_paths.xml
new file mode 100644
index 0000000..1254450
--- /dev/null
+++ b/redspin3343/src/main/res/xml/app_updater_paths.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/redspin3343/src/main/res/xml/network_security_config.xml b/redspin3343/src/main/res/xml/network_security_config.xml
new file mode 100644
index 0000000..dca93c0
--- /dev/null
+++ b/redspin3343/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/redspin3343/src/main/res/xml/provider_paths.xml b/redspin3343/src/main/res/xml/provider_paths.xml
new file mode 100644
index 0000000..c9a897a
--- /dev/null
+++ b/redspin3343/src/main/res/xml/provider_paths.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/redspin3343/telur33.jks b/redspin3343/telur33.jks
new file mode 100644
index 0000000..f00434d
Binary files /dev/null and b/redspin3343/telur33.jks differ
diff --git a/settings.gradle b/settings.gradle
index 5aeb9bb..c7a951e 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -36,4 +36,16 @@ include ':redspin8'//256
include ':aa7au'//257
include ':bng1au'//258
include ':fight996'//259
-include ':auplayx'//260
\ No newline at end of file
+include ':auplayx'//260
+include ':pantas3342'//142
+include ':cosmojack'//261
+include ':slotkaki33' //223
+include ':live22' //262
+include ':redspin3343' //263
+include ':bantuan88' //174
+include ':jk123hk' //264
+include ':kaki33' //265
+include ':mgmhotram'
+
+
+
diff --git a/slotkaki33/.gitignore b/slotkaki33/.gitignore
new file mode 100644
index 0000000..956c004
--- /dev/null
+++ b/slotkaki33/.gitignore
@@ -0,0 +1,2 @@
+/build
+/release
\ No newline at end of file
diff --git a/slotkaki33/build.gradle b/slotkaki33/build.gradle
new file mode 100644
index 0000000..c5904c6
--- /dev/null
+++ b/slotkaki33/build.gradle
@@ -0,0 +1,93 @@
+plugins {
+ id 'com.android.application'
+ id 'com.google.gms.google-services'
+}
+
+def appOutPutName = "SlotKaki33"
+
+android {
+ namespace rootProject.ext.namespace
+ compileSdk 36
+ defaultConfig {
+ minSdkVersion 24
+ targetSdk 36
+ versionCode 151
+ versionName "v1.5.1"
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+
+ applicationId "com.asdaaaa.kaki33"
+
+ //app大背景色
+ resValue('color', 'windows_color', '#122752')
+ //底部导航栏颜色 大背景颜色为 windows_color——style_color的上下渐变色
+ resValue('color', 'style_color', '#122752')
+ //app 名字
+ resValue('string', 'app_name', 'Slotkaki33')
+
+
+ buildConfigField "String", "BASE_URL", "\"https://slotkaki33.net/\""
+ buildConfigField "int", "USERID", "223"
+ buildConfigField "boolean", "IS_WHITE", "false"
+ buildConfigField "boolean", "IS_ROUND", "true"
+ buildConfigField "int", "ROUND_RADIUS", "10"
+ buildConfigField "boolean", "HAS_CONTACT", "false"
+ buildConfigField "boolean", "HAS_HOOK", "false"
+
+ }
+ buildFeatures {
+ buildConfig = true
+ }
+
+ signingConfigs {
+ debug {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ release {
+ storeFile file('telur33.jks')
+ storePassword "android2014"
+ keyAlias 'key0'
+ keyPassword "android2014"
+ }
+ }
+
+ buildTypes {
+ release {
+ signingConfig signingConfigs.release
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility rootProject.ext.JAVA_VERSION
+ targetCompatibility rootProject.ext.JAVA_VERSION
+ }
+
+ applicationVariants.all { variant ->
+ variant.outputs.all {
+ def outputDir = new File(rootProject.ext.outputPath)
+ outputDir.mkdirs()
+ def outputFileName = "${appOutPutName}.apk"
+ setOutputFileName(outputFileName)
+ def newOutputFile = new File(outputDir, outputFileName)
+ newOutputFile.parentFile.mkdirs()
+ variant.assemble.doLast {
+ try {
+ java.nio.file.Files.copy(
+ outputFile.toPath(),
+ newOutputFile.toPath(),
+ java.nio.file.StandardCopyOption.REPLACE_EXISTING
+ )
+ } catch (java.io.IOException e) {
+ }
+ }
+ }
+ }
+
+}
+
+dependencies {
+ implementation project(path: ':base')
+}
\ No newline at end of file
diff --git a/slotkaki33/google-services.json b/slotkaki33/google-services.json
new file mode 100644
index 0000000..5b386f5
--- /dev/null
+++ b/slotkaki33/google-services.json
@@ -0,0 +1,29 @@
+{
+ "project_info": {
+ "project_number": "670790998254",
+ "project_id": "kaki33-9f202",
+ "storage_bucket": "kaki33-9f202.firebasestorage.app"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:670790998254:android:5d0f9e8a938718fe2dfbff",
+ "android_client_info": {
+ "package_name": "com.asdaaaa.kaki33"
+ }
+ },
+ "oauth_client": [],
+ "api_key": [
+ {
+ "current_key": "AIzaSyDWQ2pBQSia1XCQNX3u7ABqkyvLzejUms8"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": []
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/slotkaki33/justlet.jks b/slotkaki33/justlet.jks
new file mode 100644
index 0000000..a33b839
Binary files /dev/null and b/slotkaki33/justlet.jks differ
diff --git a/slotkaki33/proguard-rules.pro b/slotkaki33/proguard-rules.pro
new file mode 100644
index 0000000..107b7ee
--- /dev/null
+++ b/slotkaki33/proguard-rules.pro
@@ -0,0 +1,32 @@
+# 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
+
+# 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 *;
+#}
+
+# 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
+
+-dontwarn dalvik.**
+-dontwarn com.tencent.smtt.**
+
+-keep class com.tencent.smtt.** {
+ *;
+}
+
+-keep class com.tencent.tbs.** {
+ *;
+}
\ No newline at end of file
diff --git a/slotkaki33/src/main/AndroidManifest.xml b/slotkaki33/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..7cbc0e0
--- /dev/null
+++ b/slotkaki33/src/main/AndroidManifest.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/slotkaki33/src/main/java/com/webclip/base/IndexActivity.java b/slotkaki33/src/main/java/com/webclip/base/IndexActivity.java
new file mode 100644
index 0000000..c8e4780
--- /dev/null
+++ b/slotkaki33/src/main/java/com/webclip/base/IndexActivity.java
@@ -0,0 +1,79 @@
+package com.webclip.base;
+
+import android.os.Bundle;
+
+import com.google.firebase.messaging.FirebaseMessaging;
+
+public class IndexActivity extends MainActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ initConfig();
+ super.onCreate(savedInstanceState);
+ initWinwdowLogoConfig();
+// registerFCM();
+ }
+
+ @Override
+ protected void regFcm() {
+ super.regFcm();
+ registerFCM();
+ }
+
+ /**
+ * 注册FCM
+ */
+ private void registerFCM() {
+ //订阅主题
+ LogUtils.i("支持FCM 去注册");
+ try {
+ FirebaseMessaging.getInstance().subscribeToTopic("demo")
+ .addOnCompleteListener(task -> {
+ String msg = "Subscribed";
+ if (!task.isSuccessful()) {
+ msg = "Subscribe failed";
+ }else{
+ checkNotify();
+ }
+ LogUtils.i("支持FCM 结果:"+msg);
+ });
+ }catch (Exception e){
+ e.printStackTrace();
+ LogUtils.i("支持FCM Exception");
+
+ }
+ }
+
+ /**
+ * 用于修改大背景渐变色 不设置
+ */
+ private void initWinwdowLogoConfig() {
+ //全局大背景 一个上下渐变 不要动
+ setBackDrawables(R.drawable.big_bg);
+ setImageView(BuildConfig.IS_ROUND,BuildConfig.ROUND_RADIUS);
+ getWindow().getDecorView().setBackgroundResource(R.drawable.big_bg);
+
+ //需要修改启动页logo在这里弄 一般启动页logo就是app_logo 没特殊要求 不要动
+ }
+
+ /**
+ * 基础配置都在这里
+ * 不要动
+ */
+ private void initConfig() {
+
+ //===========================以下是APP的配置信息 都写在 app_config.xml中==================================
+ userId = BuildConfig.USERID;
+ saveInt(IndexActivity.this,"user_code",userId);
+
+ saveString(this, "base_url",BuildConfig.BASE_URL);
+ styleColor = getColor(R.color.style_color);
+ windowsColor = getColor(R.color.windows_color);
+ isWhite = BuildConfig.IS_WHITE;
+ hasContact = BuildConfig.HAS_CONTACT;
+ hasHook = BuildConfig.HAS_HOOK;
+
+ //===========================以上是APP的配置信息 都写在 app_config.xml中==================================
+ }
+
+}
diff --git a/slotkaki33/src/main/java/com/webclip/base/MyFirebaseMessageingService.java b/slotkaki33/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
new file mode 100644
index 0000000..36f2d65
--- /dev/null
+++ b/slotkaki33/src/main/java/com/webclip/base/MyFirebaseMessageingService.java
@@ -0,0 +1,125 @@
+package com.webclip.base;
+
+import android.app.NotificationChannel;
+import android.app.NotificationManager;
+import android.app.PendingIntent;
+import android.content.ComponentName;
+import android.content.Context;
+import android.content.Intent;
+import android.os.Build;
+import androidx.annotation.NonNull;
+import androidx.core.app.NotificationCompat;
+import com.google.firebase.messaging.FirebaseMessagingService;
+import com.google.firebase.messaging.RemoteMessage;
+import com.google.gson.Gson;
+import com.webclip.base.GsonUtils;
+import com.webclip.base.MessageInfo;
+import java.util.Map;
+import java.util.Random;
+
+public class MyFirebaseMessageingService extends FirebaseMessagingService {
+
+ public MyFirebaseMessageingService() {
+ }
+
+ @Override
+ public void onMessageReceived(@NonNull RemoteMessage remoteMessage) {
+ super.onMessageReceived(remoteMessage);
+ Map serviceData = remoteMessage.getData(); //后台推送数据
+ if (serviceData != null && serviceData.containsKey("message")) {
+ String value = serviceData.get("message");
+ Gson gson = new Gson();
+ MessageInfo messageInfo = gson.fromJson(value, MessageInfo.class);
+ showNotification(messageInfo);
+ } else {
+ //收到通知 创建notify
+ if (remoteMessage.getNotification() != null) {
+ showNotification(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody());
+ }
+ }
+ }
+
+ private void showNotification(MessageInfo messageInfo) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ notifyIntent.putExtra("message", messageInfo);
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(messageInfo.getTitle())
+ .setContentText(messageInfo.getContent())
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+
+ private void showNotification(String title, String body) {
+ Intent notifyIntent = new Intent(this, IndexActivity.class);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
+ ComponentName launchComponent = null;
+ launchComponent = getApplication()
+ .getPackageManager()
+ .getLaunchIntentForPackage(getApplication().getPackageName())
+ .getComponent();
+ notifyIntent.setComponent(launchComponent);
+ }
+ notifyIntent.putExtra("message", body);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ notifyIntent.setAction(Intent.ACTION_VIEW);
+ notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 必须
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, new Random().nextInt(10000), notifyIntent, PendingIntent.FLAG_IMMUTABLE);
+ NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ NotificationChannel channelwinway = null;
+ NotificationCompat.Builder notificationBuilder = null;
+ MessageInfo messageInfo = GsonUtils.getObjFromJSON(body, MessageInfo.class);
+ if (messageInfo != null) {
+ body = messageInfo.getContent();
+ }
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ channelwinway = new NotificationChannel(getString(R.string.app_name), "notify", NotificationManager.IMPORTANCE_DEFAULT);
+ channelwinway.enableLights(true);
+ channelwinway.enableVibration(true);
+ notificationManager.createNotificationChannel(channelwinway);
+ notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ } else {
+ notificationBuilder = new NotificationCompat.Builder(this, getString(R.string.app_name))
+ .setSmallIcon(R.mipmap.app_logo)
+ .setContentTitle(title)
+ .setContentText(body)
+ .setAutoCancel(true)
+ .setContentIntent(pendingIntent);
+ }
+ notificationManager.notify(0, notificationBuilder.build());
+ }
+}
diff --git a/slotkaki33/src/main/java/com/webclip/base/WebApplication.java b/slotkaki33/src/main/java/com/webclip/base/WebApplication.java
new file mode 100644
index 0000000..36e2512
--- /dev/null
+++ b/slotkaki33/src/main/java/com/webclip/base/WebApplication.java
@@ -0,0 +1,19 @@
+package com.webclip.base;
+
+import android.app.Application;
+import android.content.Context;
+
+import com.webclip.base.LogUtils;
+
+public class WebApplication extends Application {
+
+
+ public static Context application;
+ @Override
+ public void onCreate() {
+ super.onCreate();
+// 设置开启优化方案
+ application = this;
+ LogUtils.isDebug = BuildConfig.BUILD_TYPE.equals("debug");
+ }
+}
diff --git a/slotkaki33/src/main/res/drawable/big_bg.xml b/slotkaki33/src/main/res/drawable/big_bg.xml
new file mode 100644
index 0000000..aa44959
--- /dev/null
+++ b/slotkaki33/src/main/res/drawable/big_bg.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/slotkaki33/src/main/res/mipmap-xxhdpi/app_logo.jpg b/slotkaki33/src/main/res/mipmap-xxhdpi/app_logo.jpg
new file mode 100644
index 0000000..2aca6fa
Binary files /dev/null and b/slotkaki33/src/main/res/mipmap-xxhdpi/app_logo.jpg differ
diff --git a/slotkaki33/src/main/res/values/themes.xml b/slotkaki33/src/main/res/values/themes.xml
new file mode 100644
index 0000000..f1ef249
--- /dev/null
+++ b/slotkaki33/src/main/res/values/themes.xml
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/slotkaki33/src/main/res/xml/app_updater_paths.xml b/slotkaki33/src/main/res/xml/app_updater_paths.xml
new file mode 100644
index 0000000..1254450
--- /dev/null
+++ b/slotkaki33/src/main/res/xml/app_updater_paths.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/slotkaki33/src/main/res/xml/network_security_config.xml b/slotkaki33/src/main/res/xml/network_security_config.xml
new file mode 100644
index 0000000..dca93c0
--- /dev/null
+++ b/slotkaki33/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/slotkaki33/src/main/res/xml/provider_paths.xml b/slotkaki33/src/main/res/xml/provider_paths.xml
new file mode 100644
index 0000000..c9a897a
--- /dev/null
+++ b/slotkaki33/src/main/res/xml/provider_paths.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/slotkaki33/telur33.jks b/slotkaki33/telur33.jks
new file mode 100644
index 0000000..f00434d
Binary files /dev/null and b/slotkaki33/telur33.jks differ