Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 08ee73b2eb | |||
| 3b1f235e81 | |||
| 87f9c17352 | |||
| 79776ddb45 | |||
| e398ead7ba | |||
| f6938e8b8a | |||
| a2eb9d37f6 | |||
| a99eb85fdd | |||
| bd647edd48 | |||
| 77374d8b50 | |||
| a6be76cc3a | |||
| 8c56999da0 | |||
| 898b0b9235 | |||
| 2d74e99b32 |
Generated
-1
@@ -6,7 +6,6 @@
|
|||||||
<GradleProjectSettings>
|
<GradleProjectSettings>
|
||||||
<option name="testRunner" value="CHOOSE_PER_TEST" />
|
<option name="testRunner" value="CHOOSE_PER_TEST" />
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||||
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
|
||||||
<option name="modules">
|
<option name="modules">
|
||||||
<set>
|
<set>
|
||||||
<option value="$PROJECT_DIR$" />
|
<option value="$PROJECT_DIR$" />
|
||||||
|
|||||||
@@ -9,6 +9,11 @@ kotlin {
|
|||||||
jvmToolchain(17)
|
jvmToolchain(17)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
toolchain {
|
||||||
|
languageVersion.set(JavaLanguageVersion.of(17))
|
||||||
|
}
|
||||||
|
}
|
||||||
android {
|
android {
|
||||||
namespace = "com.example.firefly_go_android"
|
namespace = "com.example.firefly_go_android"
|
||||||
compileSdk = 36
|
compileSdk = 36
|
||||||
@@ -16,7 +21,6 @@ android {
|
|||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId = "com.kain344.firefly_go_android"
|
applicationId = "com.kain344.firefly_go_android"
|
||||||
minSdk = 24
|
minSdk = 24
|
||||||
//noinspection OldTargetApi
|
|
||||||
targetSdk = 35
|
targetSdk = 35
|
||||||
versionCode = 1
|
versionCode = 1
|
||||||
versionName = "1.0"
|
versionName = "1.0"
|
||||||
|
|||||||
BIN
Binary file not shown.
@@ -2,12 +2,20 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools">
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"
|
||||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
tools:ignore="ForegroundServicesPolicy" />
|
||||||
|
|
||||||
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
|
||||||
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||||
|
|
||||||
|
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"
|
||||||
|
tools:ignore="RequestInstallPackagesPolicy" />
|
||||||
<uses-permission android:name="android.permission.READ_LOGS"/>
|
<uses-permission android:name="android.permission.READ_LOGS"/>
|
||||||
|
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
@@ -20,6 +28,7 @@
|
|||||||
android:requestLegacyExternalStorage="true"
|
android:requestLegacyExternalStorage="true"
|
||||||
android:theme="@style/Theme.FireflyGoAndroid"
|
android:theme="@style/Theme.FireflyGoAndroid"
|
||||||
tools:targetApi="31">
|
tools:targetApi="31">
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
@@ -32,9 +41,12 @@
|
|||||||
|
|
||||||
<service
|
<service
|
||||||
android:name=".GolangServerService"
|
android:name=".GolangServerService"
|
||||||
android:foregroundServiceType="dataSync"
|
android:foregroundServiceType="specialUse"
|
||||||
android:exported="false" />
|
android:exported="false">
|
||||||
|
<property
|
||||||
|
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
|
||||||
|
android:value="Running local Golang TCP/UDP Server" />
|
||||||
|
</service>
|
||||||
|
|
||||||
<provider
|
<provider
|
||||||
android:name="androidx.core.content.FileProvider"
|
android:name="androidx.core.content.FileProvider"
|
||||||
|
|||||||
@@ -0,0 +1,588 @@
|
|||||||
|
{
|
||||||
|
"leader": 2,
|
||||||
|
"lineups": {
|
||||||
|
"0": 1409,
|
||||||
|
"1": 1407,
|
||||||
|
"2": 1406,
|
||||||
|
"3": 1403
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"x": -4030,
|
||||||
|
"z": -13006,
|
||||||
|
"y": 0,
|
||||||
|
"rot_y": 270000
|
||||||
|
},
|
||||||
|
"scene": {
|
||||||
|
"plane_id": 10000,
|
||||||
|
"floor_id": 10000000,
|
||||||
|
"entry_id": 100000104
|
||||||
|
},
|
||||||
|
"player_outfit": [
|
||||||
|
1003
|
||||||
|
],
|
||||||
|
"char_path": {
|
||||||
|
"main": 8008,
|
||||||
|
"march_7": 1224
|
||||||
|
},
|
||||||
|
"char_enhanced": {
|
||||||
|
"1004": 1,
|
||||||
|
"1005": 0,
|
||||||
|
"1006": 1,
|
||||||
|
"1102": 1,
|
||||||
|
"1205": 1,
|
||||||
|
"1212": 1,
|
||||||
|
"1217": 1,
|
||||||
|
"1306": 1,
|
||||||
|
"1307": 1,
|
||||||
|
"1310": 1
|
||||||
|
},
|
||||||
|
"challenge": {
|
||||||
|
"challenge_id": 0,
|
||||||
|
"skip_half": 0,
|
||||||
|
"random_seed": 0,
|
||||||
|
"blessings": [],
|
||||||
|
"is_in_challenge": false,
|
||||||
|
"current_stage_id": 0,
|
||||||
|
"path_resonance_id": 0,
|
||||||
|
"maze_buff": 0,
|
||||||
|
"first_lineup": [],
|
||||||
|
"second_lineup": []
|
||||||
|
},
|
||||||
|
"challenge_tierce": {
|
||||||
|
"challenge_id": 0,
|
||||||
|
"current_stage_id": 0,
|
||||||
|
"maze_buff": 0,
|
||||||
|
"path_resonance_id": 0,
|
||||||
|
"is_in_challenge": false,
|
||||||
|
"is_single_stage": false,
|
||||||
|
"challenge_tierce_data": {
|
||||||
|
"20245": {
|
||||||
|
"stage_1": {
|
||||||
|
"blessing": 3031361,
|
||||||
|
"cycle_count": 0,
|
||||||
|
"battle_status": 1,
|
||||||
|
"DeadCount": 0,
|
||||||
|
"score": 40000,
|
||||||
|
"lineup": [
|
||||||
|
1407,
|
||||||
|
1413,
|
||||||
|
1415,
|
||||||
|
1409
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"stage_2": {
|
||||||
|
"blessing": 3031361,
|
||||||
|
"cycle_count": 0,
|
||||||
|
"battle_status": 1,
|
||||||
|
"DeadCount": 0,
|
||||||
|
"score": 40000,
|
||||||
|
"lineup": [
|
||||||
|
1310,
|
||||||
|
1225,
|
||||||
|
1321,
|
||||||
|
1222
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"stage_3": {
|
||||||
|
"blessing": 3031362,
|
||||||
|
"cycle_count": 0,
|
||||||
|
"battle_status": 1,
|
||||||
|
"DeadCount": 0,
|
||||||
|
"score": 40000,
|
||||||
|
"lineup": [
|
||||||
|
1506,
|
||||||
|
1502,
|
||||||
|
1501,
|
||||||
|
1217
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"30185": {
|
||||||
|
"stage_1": {
|
||||||
|
"blessing": 3111090,
|
||||||
|
"cycle_count": 0,
|
||||||
|
"battle_status": 1,
|
||||||
|
"DeadCount": 0,
|
||||||
|
"score": 3932,
|
||||||
|
"lineup": [
|
||||||
|
1501,
|
||||||
|
1502,
|
||||||
|
1414,
|
||||||
|
1506
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"stage_2": {
|
||||||
|
"blessing": 3111085,
|
||||||
|
"cycle_count": 0,
|
||||||
|
"battle_status": 1,
|
||||||
|
"DeadCount": 0,
|
||||||
|
"score": 3913,
|
||||||
|
"lineup": [
|
||||||
|
1310,
|
||||||
|
1225,
|
||||||
|
1303,
|
||||||
|
1321
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"stage_3": {
|
||||||
|
"blessing": 3111071,
|
||||||
|
"cycle_count": 0,
|
||||||
|
"battle_status": 1,
|
||||||
|
"DeadCount": 0,
|
||||||
|
"score": 4000,
|
||||||
|
"lineup": [
|
||||||
|
1415,
|
||||||
|
1413,
|
||||||
|
1407,
|
||||||
|
1409
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"5213": {
|
||||||
|
"stage_1": {
|
||||||
|
"blessing": 0,
|
||||||
|
"cycle_count": 0,
|
||||||
|
"battle_status": 1,
|
||||||
|
"DeadCount": 0,
|
||||||
|
"score": 0,
|
||||||
|
"lineup": [
|
||||||
|
1407,
|
||||||
|
1413,
|
||||||
|
1415,
|
||||||
|
1409
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"stage_2": {
|
||||||
|
"blessing": 0,
|
||||||
|
"cycle_count": 1,
|
||||||
|
"battle_status": 1,
|
||||||
|
"DeadCount": 0,
|
||||||
|
"score": 0,
|
||||||
|
"lineup": [
|
||||||
|
1310,
|
||||||
|
1321,
|
||||||
|
1225,
|
||||||
|
1222
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"stage_3": {
|
||||||
|
"blessing": 0,
|
||||||
|
"cycle_count": 0,
|
||||||
|
"battle_status": 1,
|
||||||
|
"DeadCount": 0,
|
||||||
|
"score": 0,
|
||||||
|
"lineup": [
|
||||||
|
1506,
|
||||||
|
1502,
|
||||||
|
1501,
|
||||||
|
1414
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"5313": {
|
||||||
|
"stage_1": {
|
||||||
|
"blessing": 0,
|
||||||
|
"cycle_count": 0,
|
||||||
|
"battle_status": 3,
|
||||||
|
"DeadCount": 0,
|
||||||
|
"score": 0,
|
||||||
|
"lineup": [
|
||||||
|
1510,
|
||||||
|
8001,
|
||||||
|
1004,
|
||||||
|
1414
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"stage_2": {
|
||||||
|
"blessing": 0,
|
||||||
|
"cycle_count": 0,
|
||||||
|
"battle_status": 0,
|
||||||
|
"DeadCount": 0,
|
||||||
|
"score": 0,
|
||||||
|
"lineup": [
|
||||||
|
1302
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"stage_3": {
|
||||||
|
"blessing": 0,
|
||||||
|
"cycle_count": 0,
|
||||||
|
"battle_status": 0,
|
||||||
|
"DeadCount": 0,
|
||||||
|
"score": 0,
|
||||||
|
"lineup": [
|
||||||
|
1321
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"challenge_peak": {
|
||||||
|
"current_mode": "Knight",
|
||||||
|
"group_id": 8,
|
||||||
|
"is_in_challenge_peak": false,
|
||||||
|
"challenge_peak_data": {
|
||||||
|
"1": {
|
||||||
|
"checkmate_data": {
|
||||||
|
"challenge_id": 104,
|
||||||
|
"blessing": 3033006,
|
||||||
|
"lineup": [
|
||||||
|
1413,
|
||||||
|
1409,
|
||||||
|
1407,
|
||||||
|
1403
|
||||||
|
],
|
||||||
|
"stage_id": 30501022,
|
||||||
|
"is_hard_mode": true
|
||||||
|
},
|
||||||
|
"knight_data": {
|
||||||
|
"current_challenge_id": 103,
|
||||||
|
"details_data": [
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1222,
|
||||||
|
1225,
|
||||||
|
1310,
|
||||||
|
1303
|
||||||
|
],
|
||||||
|
"stage_id": 30501011,
|
||||||
|
"challenge_id": 101
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1412,
|
||||||
|
1414,
|
||||||
|
1408,
|
||||||
|
1313
|
||||||
|
],
|
||||||
|
"stage_id": 30501012,
|
||||||
|
"challenge_id": 102
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1407,
|
||||||
|
1403,
|
||||||
|
1409,
|
||||||
|
1413
|
||||||
|
],
|
||||||
|
"stage_id": 30501013,
|
||||||
|
"challenge_id": 103
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"2": {
|
||||||
|
"checkmate_data": {
|
||||||
|
"challenge_id": 204,
|
||||||
|
"blessing": 3033021,
|
||||||
|
"lineup": [
|
||||||
|
1415,
|
||||||
|
1413,
|
||||||
|
1409,
|
||||||
|
1407
|
||||||
|
],
|
||||||
|
"stage_id": 30502022,
|
||||||
|
"is_hard_mode": true
|
||||||
|
},
|
||||||
|
"knight_data": {
|
||||||
|
"current_challenge_id": 203,
|
||||||
|
"details_data": [
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1302,
|
||||||
|
1309,
|
||||||
|
1410
|
||||||
|
],
|
||||||
|
"stage_id": 30502011,
|
||||||
|
"challenge_id": 201
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1221,
|
||||||
|
1222
|
||||||
|
],
|
||||||
|
"stage_id": 30502012,
|
||||||
|
"challenge_id": 202
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1415,
|
||||||
|
8001,
|
||||||
|
1414,
|
||||||
|
1313
|
||||||
|
],
|
||||||
|
"stage_id": 30502013,
|
||||||
|
"challenge_id": 203
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"3": {
|
||||||
|
"checkmate_data": {
|
||||||
|
"challenge_id": 304,
|
||||||
|
"blessing": 3033032,
|
||||||
|
"lineup": [
|
||||||
|
1222,
|
||||||
|
1225,
|
||||||
|
1310,
|
||||||
|
1321
|
||||||
|
],
|
||||||
|
"stage_id": 30503021,
|
||||||
|
"is_hard_mode": false
|
||||||
|
},
|
||||||
|
"knight_data": {
|
||||||
|
"current_challenge_id": 302,
|
||||||
|
"details_data": [
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1003
|
||||||
|
],
|
||||||
|
"stage_id": 30503011,
|
||||||
|
"challenge_id": 301
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1315
|
||||||
|
],
|
||||||
|
"stage_id": 30503012,
|
||||||
|
"challenge_id": 302
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
8001
|
||||||
|
],
|
||||||
|
"stage_id": 30503013,
|
||||||
|
"challenge_id": 303
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"4": {
|
||||||
|
"checkmate_data": {
|
||||||
|
"challenge_id": 404,
|
||||||
|
"blessing": 3033045,
|
||||||
|
"lineup": [
|
||||||
|
1310
|
||||||
|
],
|
||||||
|
"stage_id": 30504021,
|
||||||
|
"is_hard_mode": false
|
||||||
|
},
|
||||||
|
"knight_data": {
|
||||||
|
"current_challenge_id": 401,
|
||||||
|
"details_data": [
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1302
|
||||||
|
],
|
||||||
|
"stage_id": 30504011,
|
||||||
|
"challenge_id": 401
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1321
|
||||||
|
],
|
||||||
|
"stage_id": 30504012,
|
||||||
|
"challenge_id": 402
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1218
|
||||||
|
],
|
||||||
|
"stage_id": 30504013,
|
||||||
|
"challenge_id": 403
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"5": {
|
||||||
|
"checkmate_data": {
|
||||||
|
"challenge_id": 504,
|
||||||
|
"blessing": 3033050,
|
||||||
|
"lineup": [
|
||||||
|
1415,
|
||||||
|
1413,
|
||||||
|
1407,
|
||||||
|
1409
|
||||||
|
],
|
||||||
|
"stage_id": 30505021,
|
||||||
|
"is_hard_mode": false
|
||||||
|
},
|
||||||
|
"knight_data": {
|
||||||
|
"current_challenge_id": 501,
|
||||||
|
"details_data": [
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1310
|
||||||
|
],
|
||||||
|
"stage_id": 30505011,
|
||||||
|
"challenge_id": 501
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1407
|
||||||
|
],
|
||||||
|
"stage_id": 30505012,
|
||||||
|
"challenge_id": 502
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1502
|
||||||
|
],
|
||||||
|
"stage_id": 30505013,
|
||||||
|
"challenge_id": 503
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"6": {
|
||||||
|
"checkmate_data": {
|
||||||
|
"challenge_id": 604,
|
||||||
|
"blessing": 3033053,
|
||||||
|
"lineup": [
|
||||||
|
1505,
|
||||||
|
1217,
|
||||||
|
1502,
|
||||||
|
8001
|
||||||
|
],
|
||||||
|
"stage_id": 30506021,
|
||||||
|
"is_hard_mode": false
|
||||||
|
},
|
||||||
|
"knight_data": {
|
||||||
|
"current_challenge_id": 602,
|
||||||
|
"details_data": [
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1309
|
||||||
|
],
|
||||||
|
"stage_id": 30506011,
|
||||||
|
"challenge_id": 601
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1321,
|
||||||
|
1310,
|
||||||
|
1225,
|
||||||
|
1303
|
||||||
|
],
|
||||||
|
"stage_id": 30506012,
|
||||||
|
"challenge_id": 602
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1415,
|
||||||
|
1413,
|
||||||
|
1409,
|
||||||
|
1407
|
||||||
|
],
|
||||||
|
"stage_id": 30506013,
|
||||||
|
"challenge_id": 603
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"7": {
|
||||||
|
"checkmate_data": {
|
||||||
|
"challenge_id": 704,
|
||||||
|
"blessing": 3033061,
|
||||||
|
"lineup": [
|
||||||
|
1505,
|
||||||
|
1502,
|
||||||
|
1414,
|
||||||
|
1410
|
||||||
|
],
|
||||||
|
"stage_id": 30507021,
|
||||||
|
"is_hard_mode": false
|
||||||
|
},
|
||||||
|
"knight_data": {
|
||||||
|
"current_challenge_id": 703,
|
||||||
|
"details_data": [
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1414
|
||||||
|
],
|
||||||
|
"stage_id": 30507011,
|
||||||
|
"challenge_id": 701
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1501
|
||||||
|
],
|
||||||
|
"stage_id": 30507012,
|
||||||
|
"challenge_id": 702
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lineup": [
|
||||||
|
1507,
|
||||||
|
1222
|
||||||
|
],
|
||||||
|
"stage_id": 30507013,
|
||||||
|
"challenge_id": 703
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"8": {
|
||||||
|
"checkmate_data": {
|
||||||
|
"challenge_id": 0,
|
||||||
|
"blessing": 0,
|
||||||
|
"lineup": null,
|
||||||
|
"stage_id": 0,
|
||||||
|
"is_hard_mode": false
|
||||||
|
},
|
||||||
|
"knight_data": {
|
||||||
|
"current_challenge_id": 0,
|
||||||
|
"details_data": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"theory_craft": {
|
||||||
|
"hp": {
|
||||||
|
"1": [
|
||||||
|
200000,
|
||||||
|
1000000,
|
||||||
|
200000
|
||||||
|
],
|
||||||
|
"2": [
|
||||||
|
2000000000,
|
||||||
|
2000000000,
|
||||||
|
2000000000
|
||||||
|
],
|
||||||
|
"3": []
|
||||||
|
},
|
||||||
|
"cycle_count": 1,
|
||||||
|
"stage_id": 30118121,
|
||||||
|
"mode": false,
|
||||||
|
"custom_lineup": []
|
||||||
|
},
|
||||||
|
"profile_data": {
|
||||||
|
"cur_chat_bubble_id": 220009,
|
||||||
|
"cur_phone_theme_id": 221012,
|
||||||
|
"cur_phone_case_id": 254001,
|
||||||
|
"cur_pam_skin_id": 252000,
|
||||||
|
"cur_pet_id": 0,
|
||||||
|
"cur_avatar_player_icon": 202034,
|
||||||
|
"cur_player_personal_card": 253001,
|
||||||
|
"cur_signature": "Firefly GO By Kain",
|
||||||
|
"cur_nickname": "Firefly GO",
|
||||||
|
"cur_display_avatar": [
|
||||||
|
1310,
|
||||||
|
1309,
|
||||||
|
1407,
|
||||||
|
1413,
|
||||||
|
1412
|
||||||
|
],
|
||||||
|
"cur_is_display_avatar": true
|
||||||
|
},
|
||||||
|
"skin_data": {
|
||||||
|
"1001": 1100101,
|
||||||
|
"1310": 1131001,
|
||||||
|
"1407": 1140701,
|
||||||
|
"1415": 1141501
|
||||||
|
},
|
||||||
|
"extra_setting": {
|
||||||
|
"censorship": false,
|
||||||
|
"cm": false,
|
||||||
|
"first_person": false,
|
||||||
|
"hide_ui": false
|
||||||
|
}
|
||||||
|
}
|
||||||
+10023
-5989
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"CNBETAAndroid4.3.51": {
|
||||||
|
"asset_bundle_url": "https://autopatchos.starrails.com/asb/BetaLive/output_15261247_f6e6db2125cf_369da465b36faf",
|
||||||
|
"asset_bundle_url_b": "https://autopatchos.starrails.com/asb/BetaLive/output_15235885_6091fd15561a_83828f542dc1f3",
|
||||||
|
"ex_resource_url": "https://autopatchos.starrails.com/design_data/BetaLive/output_15265964_c2fbb1eb05fc_f2238199ee2b6e",
|
||||||
|
"lua_url": "https://autopatchos.starrails.com/lua/BetaLive/output_15242148_d40f856defc0_599b68a0adf7bd",
|
||||||
|
"ifix_url": "https://autopatchos.starrails.com/ifix/BetaLive/output_15265964_799df4f0ecef_5a94550ba64cff"
|
||||||
|
},
|
||||||
|
"CNBETAWin4.3.51": {
|
||||||
|
"asset_bundle_url": "https://autopatchos.starrails.com/asb/BetaLive/output_15261247_f6e6db2125cf_369da465b36faf",
|
||||||
|
"asset_bundle_url_b": "https://autopatchos.starrails.com/asb/BetaLive/output_15235885_6091fd15561a_83828f542dc1f3",
|
||||||
|
"ex_resource_url": "https://autopatchos.starrails.com/design_data/BetaLive/output_15265964_c2fbb1eb05fc_f2238199ee2b6e",
|
||||||
|
"lua_url": "https://autopatchos.starrails.com/lua/BetaLive/output_15242148_d40f856defc0_599b68a0adf7bd",
|
||||||
|
"ifix_url": "https://autopatchos.starrails.com/ifix/BetaLive/output_15265964_799df4f0ecef_5a94550ba64cff"
|
||||||
|
},
|
||||||
|
"CNBETAiOS4.3.51": {
|
||||||
|
"asset_bundle_url": "https://autopatchos.starrails.com/asb/BetaLive/output_15261247_f6e6db2125cf_369da465b36faf",
|
||||||
|
"asset_bundle_url_b": "https://autopatchos.starrails.com/asb/BetaLive/output_15235885_6091fd15561a_83828f542dc1f3",
|
||||||
|
"ex_resource_url": "https://autopatchos.starrails.com/design_data/BetaLive/output_15265964_c2fbb1eb05fc_f2238199ee2b6e",
|
||||||
|
"lua_url": "https://autopatchos.starrails.com/lua/BetaLive/output_15242148_d40f856defc0_599b68a0adf7bd",
|
||||||
|
"ifix_url": "https://autopatchos.starrails.com/ifix/BetaLive/output_15265964_799df4f0ecef_5a94550ba64cff"
|
||||||
|
},
|
||||||
|
"OSBETAAndroid4.3.51": {
|
||||||
|
"asset_bundle_url": "https://autopatchos.starrails.com/asb/BetaLive/output_15261247_f6e6db2125cf_369da465b36faf",
|
||||||
|
"asset_bundle_url_b": "https://autopatchos.starrails.com/asb/BetaLive/output_15235885_6091fd15561a_83828f542dc1f3",
|
||||||
|
"ex_resource_url": "https://autopatchos.starrails.com/design_data/BetaLive/output_15265964_c2fbb1eb05fc_f2238199ee2b6e",
|
||||||
|
"lua_url": "https://autopatchos.starrails.com/lua/BetaLive/output_15242148_d40f856defc0_599b68a0adf7bd",
|
||||||
|
"ifix_url": "https://autopatchos.starrails.com/ifix/BetaLive/output_15265964_799df4f0ecef_5a94550ba64cff"
|
||||||
|
},
|
||||||
|
"OSBETAWin4.3.51": {
|
||||||
|
"asset_bundle_url": "https://autopatchos.starrails.com/asb/BetaLive/output_15261247_f6e6db2125cf_369da465b36faf",
|
||||||
|
"asset_bundle_url_b": "https://autopatchos.starrails.com/asb/BetaLive/output_15235885_6091fd15561a_83828f542dc1f3",
|
||||||
|
"ex_resource_url": "https://autopatchos.starrails.com/design_data/BetaLive/output_15265964_c2fbb1eb05fc_f2238199ee2b6e",
|
||||||
|
"lua_url": "https://autopatchos.starrails.com/lua/BetaLive/output_15242148_d40f856defc0_599b68a0adf7bd",
|
||||||
|
"ifix_url": "https://autopatchos.starrails.com/ifix/BetaLive/output_15265964_799df4f0ecef_5a94550ba64cff"
|
||||||
|
},
|
||||||
|
"OSBETAiOS4.3.51": {
|
||||||
|
"asset_bundle_url": "https://autopatchos.starrails.com/asb/BetaLive/output_15261247_f6e6db2125cf_369da465b36faf",
|
||||||
|
"asset_bundle_url_b": "https://autopatchos.starrails.com/asb/BetaLive/output_15235885_6091fd15561a_83828f542dc1f3",
|
||||||
|
"ex_resource_url": "https://autopatchos.starrails.com/design_data/BetaLive/output_15265964_c2fbb1eb05fc_f2238199ee2b6e",
|
||||||
|
"lua_url": "https://autopatchos.starrails.com/lua/BetaLive/output_15242148_d40f856defc0_599b68a0adf7bd",
|
||||||
|
"ifix_url": "https://autopatchos.starrails.com/ifix/BetaLive/output_15265964_799df4f0ecef_5a94550ba64cff"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
package com.example.firefly_go_android
|
package com.example.firefly_go_android
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint
|
||||||
import android.app.NotificationChannel
|
import android.app.NotificationChannel
|
||||||
import android.app.NotificationManager
|
import android.app.NotificationManager
|
||||||
import android.app.PendingIntent
|
import android.app.PendingIntent
|
||||||
import android.app.Service
|
import android.app.Service
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
|
import android.content.pm.ServiceInfo
|
||||||
import android.graphics.BitmapFactory
|
import android.graphics.BitmapFactory
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
import android.os.IBinder
|
import android.os.IBinder
|
||||||
@@ -16,6 +18,7 @@ import androidx.compose.runtime.setValue
|
|||||||
import androidx.core.app.NotificationCompat
|
import androidx.core.app.NotificationCompat
|
||||||
import androidx.core.content.ContextCompat
|
import androidx.core.content.ContextCompat
|
||||||
import libandroid.Libandroid
|
import libandroid.Libandroid
|
||||||
|
import androidx.core.content.edit
|
||||||
|
|
||||||
class GolangServerService : Service() {
|
class GolangServerService : Service() {
|
||||||
|
|
||||||
@@ -33,9 +36,10 @@ class GolangServerService : Service() {
|
|||||||
createNotificationChannel()
|
createNotificationChannel()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressLint("WakelockTimeout")
|
||||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
||||||
if (isRunning) {
|
if (isRunning) {
|
||||||
Log.d(TAG, "❗ Server is already running")
|
Log.d(TAG, "Server is already running")
|
||||||
return START_STICKY
|
return START_STICKY
|
||||||
}
|
}
|
||||||
isRunning = true
|
isRunning = true
|
||||||
@@ -64,42 +68,63 @@ class GolangServerService : Service() {
|
|||||||
.setCategory(NotificationCompat.CATEGORY_SERVICE)
|
.setCategory(NotificationCompat.CATEGORY_SERVICE)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
|
if (Build.VERSION.SDK_INT >= 34) {
|
||||||
|
startForeground(
|
||||||
|
NOTIFICATION_ID,
|
||||||
|
notification,
|
||||||
|
ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE
|
||||||
|
)
|
||||||
|
} else if (Build.VERSION.SDK_INT >= 29) {
|
||||||
|
startForeground(
|
||||||
|
NOTIFICATION_ID,
|
||||||
|
notification,
|
||||||
|
ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
startForeground(NOTIFICATION_ID, notification)
|
||||||
|
}
|
||||||
|
|
||||||
startForeground(NOTIFICATION_ID, notification)
|
// Khởi tạo WakeLock và WifiLock
|
||||||
|
|
||||||
try {
|
try {
|
||||||
val powerManager = getSystemService(POWER_SERVICE) as PowerManager
|
val powerManager = getSystemService(POWER_SERVICE) as PowerManager
|
||||||
wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "GolangServer::WakeLock")
|
wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "GolangServer::WakeLock")
|
||||||
wakeLock?.acquire(10*60*1000L)
|
wakeLock?.acquire()
|
||||||
Log.d(TAG, "✅ WakeLock acquired")
|
Log.d(TAG, "WakeLock acquired")
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Log.e(TAG, "❌ WakeLock failed", e)
|
Log.e(TAG, "Lock failed", e)
|
||||||
}
|
}
|
||||||
|
|
||||||
Thread {
|
Thread {
|
||||||
try {
|
try {
|
||||||
val appDataPath = intent?.getStringExtra("appDataPath")
|
val sharedPrefs = getSharedPreferences("AppPrefs", MODE_PRIVATE)
|
||||||
|
var appDataPath = intent?.getStringExtra("appDataPath")
|
||||||
|
|
||||||
|
if (appDataPath != null) {
|
||||||
|
sharedPrefs.edit { putString("saved_app_data_path", appDataPath) }
|
||||||
|
} else {
|
||||||
|
appDataPath = sharedPrefs.getString("saved_app_data_path", null)
|
||||||
|
}
|
||||||
|
|
||||||
if (appDataPath != null) {
|
if (appDataPath != null) {
|
||||||
Libandroid.setPathDataLocal(appDataPath)
|
Libandroid.setPathDataLocal(appDataPath)
|
||||||
Log.d(TAG, "✅ Set path data: $appDataPath")
|
Log.d(TAG, "Set path data: $appDataPath")
|
||||||
} else {
|
} else {
|
||||||
isRunning = false
|
isRunning = false
|
||||||
Log.e(TAG, "❌ appDataPath not received in intent")
|
Log.e(TAG, "appDataPath not received and not found in SharedPreferences")
|
||||||
stopSelf()
|
stopSelf()
|
||||||
return@Thread
|
return@Thread
|
||||||
}
|
}
|
||||||
|
|
||||||
Libandroid.setServerRunning(true)
|
Libandroid.setServerRunning(true)
|
||||||
isRunning = true
|
isRunning = true
|
||||||
Log.d(TAG, "✅ Server started")
|
Log.d(TAG, "Server started")
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
isRunning = false
|
isRunning = false
|
||||||
Log.e(TAG, "❌ Error starting server", e)
|
Log.e(TAG, "Error starting server", e)
|
||||||
stopSelf()
|
stopSelf()
|
||||||
}
|
}
|
||||||
}.start()
|
}.start()
|
||||||
|
|
||||||
|
|
||||||
return START_STICKY
|
return START_STICKY
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -107,7 +132,6 @@ class GolangServerService : Service() {
|
|||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
Log.d(TAG, "onDestroy called")
|
Log.d(TAG, "onDestroy called")
|
||||||
|
|
||||||
// 1. Tắt server
|
|
||||||
try {
|
try {
|
||||||
val result = Libandroid.setServerRunning(false)
|
val result = Libandroid.setServerRunning(false)
|
||||||
isRunning = false
|
isRunning = false
|
||||||
@@ -116,15 +140,16 @@ class GolangServerService : Service() {
|
|||||||
Log.e(TAG, "Error shutting down server", e)
|
Log.e(TAG, "Error shutting down server", e)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Nhả các khóa tài nguyên
|
||||||
try {
|
try {
|
||||||
wakeLock?.let {
|
wakeLock?.let {
|
||||||
if (it.isHeld) {
|
if (it.isHeld) {
|
||||||
it.release()
|
it.release()
|
||||||
Log.d(TAG, "✅ WakeLock released")
|
Log.d(TAG, "WakeLock released")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Log.e(TAG, "❌ Failed to release WakeLock", e)
|
Log.e(TAG, "Failed to release Locks", e)
|
||||||
}
|
}
|
||||||
isRunning = false
|
isRunning = false
|
||||||
}
|
}
|
||||||
@@ -143,7 +168,7 @@ class GolangServerService : Service() {
|
|||||||
|
|
||||||
val manager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager
|
val manager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager
|
||||||
manager.createNotificationChannel(channel)
|
manager.createNotificationChannel(channel)
|
||||||
Log.d(TAG, "✅ Notification channel created")
|
Log.d(TAG, "Notification channel created")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,8 +4,9 @@ import AutoUpdaterManager
|
|||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
|
import android.os.Build
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
import android.os.Environment
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import android.widget.Toast
|
import android.widget.Toast
|
||||||
import androidx.activity.ComponentActivity
|
import androidx.activity.ComponentActivity
|
||||||
@@ -67,6 +68,11 @@ import kotlinx.coroutines.delay
|
|||||||
import org.json.JSONObject
|
import org.json.JSONObject
|
||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
||||||
import androidx.compose.ui.text.font.FontFamily
|
import androidx.compose.ui.text.font.FontFamily
|
||||||
|
import android.os.PowerManager
|
||||||
|
import android.provider.Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
|
||||||
|
import androidx.core.content.ContextCompat
|
||||||
|
import androidx.core.net.toUri
|
||||||
|
import android.provider.Settings
|
||||||
|
|
||||||
data class AppVersion(
|
data class AppVersion(
|
||||||
val latestVersion: String,
|
val latestVersion: String,
|
||||||
@@ -77,14 +83,14 @@ data class AppVersion(
|
|||||||
class MainActivity : ComponentActivity() {
|
class MainActivity : ComponentActivity() {
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
|
requestBatteryExemption(this)
|
||||||
|
requestInstallPermission(this)
|
||||||
|
|
||||||
val appDataPath = filesDir.absolutePath
|
val appDataPath = File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), "FireflyGo").absolutePath
|
||||||
val dataDir = File("$appDataPath/data")
|
val dataDir = File("$appDataPath/data")
|
||||||
dataDir.mkdirs()
|
if (!dataDir.exists()) dataDir.mkdirs()
|
||||||
|
|
||||||
copyRawToFile(this, dataDir, "data-in-game.json", R.raw.data_in_game_json)
|
copyRawToFile(dataDir)
|
||||||
copyRawToFile(this, dataDir, "freesr-data.json", R.raw.freesr_data_json)
|
|
||||||
copyRawToFile(this, dataDir, "version.json", R.raw.version_json)
|
|
||||||
|
|
||||||
val jsonString = resources.openRawResource(R.raw.app_version_json).use { input ->
|
val jsonString = resources.openRawResource(R.raw.app_version_json).use { input ->
|
||||||
input.bufferedReader().use { it.readText() }
|
input.bufferedReader().use { it.readText() }
|
||||||
@@ -112,22 +118,61 @@ class MainActivity : ComponentActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@SuppressLint("BatteryLife")
|
||||||
|
|
||||||
fun copyRawToFile(context: Context, targetDir: File, fileName: String, resId: Int, override: Boolean = false) {
|
fun requestBatteryExemption(context: Context) {
|
||||||
val outFile = File(targetDir, fileName)
|
val powerManager = context.getSystemService(Context.POWER_SERVICE) as PowerManager
|
||||||
if (!outFile.exists() || override) {
|
if (!powerManager.isIgnoringBatteryOptimizations(context.packageName)) {
|
||||||
try {
|
val intent = Intent().apply {
|
||||||
context.resources.openRawResource(resId).use { input ->
|
action = ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
|
||||||
|
data = "package:${context.packageName}".toUri()
|
||||||
|
}
|
||||||
|
context.startActivity(intent)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun requestInstallPermission(context: Context) {
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
|
if (!context.packageManager.canRequestPackageInstalls()) {
|
||||||
|
val intent = Intent(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES).apply {
|
||||||
|
data = "package:${context.packageName}".toUri()
|
||||||
|
}
|
||||||
|
context.startActivity(intent)
|
||||||
|
Toast.makeText(context, "Please allow installing unknown apps to update", Toast.LENGTH_LONG).show()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fun copyRawToFile(targetDir: File, override: Boolean = false): Boolean {
|
||||||
|
val files = listOf(
|
||||||
|
"assets/data-in-game.json" to "data-in-game.json",
|
||||||
|
"assets/freesr-data.json" to "freesr-data.json",
|
||||||
|
"assets/version.json" to "version.json"
|
||||||
|
)
|
||||||
|
|
||||||
|
return try {
|
||||||
|
if (!targetDir.exists()) targetDir.mkdirs()
|
||||||
|
|
||||||
|
for ((assetPath, name) in files) {
|
||||||
|
val outFile = File(targetDir, name)
|
||||||
|
|
||||||
|
if (outFile.exists() && !override) continue
|
||||||
|
|
||||||
|
val inputStream =
|
||||||
|
MainActivity::class.java.classLoader
|
||||||
|
?.getResourceAsStream(assetPath)
|
||||||
|
?: return false
|
||||||
|
|
||||||
|
inputStream.use { input ->
|
||||||
FileOutputStream(outFile).use { output ->
|
FileOutputStream(outFile).use { output ->
|
||||||
input.copyTo(output)
|
input.copyTo(output)
|
||||||
|
output.fd.sync()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Log.i("FileCopy", "${if (override) "✅ Overridden" else "✅ Copied"} $fileName to ${outFile.absolutePath}")
|
|
||||||
} catch (e: Exception) {
|
|
||||||
Log.e("FileCopy", "❌ Failed to copy $fileName: ${e.message}")
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
Log.i("FileCopy", "ℹ️ $fileName already exists at ${outFile.absolutePath}")
|
true
|
||||||
|
} catch (e: Exception) {
|
||||||
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -136,18 +181,18 @@ fun removeFile(targetDir: File, fileName: String): Boolean {
|
|||||||
return if (file.exists()) {
|
return if (file.exists()) {
|
||||||
try {
|
try {
|
||||||
if (file.delete()) {
|
if (file.delete()) {
|
||||||
Log.i("FileRemove", "🗑️ Removed $fileName from ${file.absolutePath}")
|
Log.i("FileRemove", "Removed $fileName from ${file.absolutePath}")
|
||||||
true
|
true
|
||||||
} else {
|
} else {
|
||||||
Log.e("FileRemove", "❌ Failed to remove $fileName from ${file.absolutePath}")
|
Log.e("FileRemove", "Failed to remove $fileName from ${file.absolutePath}")
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Log.e("FileRemove", "❌ Error removing $fileName: ${e.message}")
|
Log.e("FileRemove", "Error removing $fileName: ${e.message}")
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Log.i("FileRemove", "ℹ️ $fileName does not exist in ${targetDir.absolutePath}")
|
Log.i("FileRemove", "$fileName does not exist in ${targetDir.absolutePath}")
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -239,7 +284,7 @@ fun ServerControlScreen(appDataPath: String, dataDir: File, appVersion: AppVersi
|
|||||||
if (!isRunning) {
|
if (!isRunning) {
|
||||||
val intent = Intent(context, GolangServerService::class.java)
|
val intent = Intent(context, GolangServerService::class.java)
|
||||||
intent.putExtra("appDataPath", appDataPath)
|
intent.putExtra("appDataPath", appDataPath)
|
||||||
context.startService(intent)
|
ContextCompat.startForegroundService(context, intent)
|
||||||
} else {
|
} else {
|
||||||
context.stopService(Intent(context, GolangServerService::class.java))
|
context.stopService(Intent(context, GolangServerService::class.java))
|
||||||
}
|
}
|
||||||
@@ -382,9 +427,7 @@ fun ServerControlScreen(appDataPath: String, dataDir: File, appVersion: AppVersi
|
|||||||
onClick = {
|
onClick = {
|
||||||
showResetDialog = false
|
showResetDialog = false
|
||||||
try {
|
try {
|
||||||
copyRawToFile(context, dataDir, "data-in-game.json", R.raw.data_in_game_json, true)
|
copyRawToFile(dataDir, true)
|
||||||
copyRawToFile(context, dataDir, "freesr-data.json", R.raw.freesr_data_json, true)
|
|
||||||
copyRawToFile(context, dataDir, "version.json", R.raw.version_json, true)
|
|
||||||
Toast.makeText(context, "Data has been reset successfully", Toast.LENGTH_SHORT).show()
|
Toast.makeText(context, "Data has been reset successfully", Toast.LENGTH_SHORT).show()
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Toast.makeText(context, "Reset failed: ${e.message}", Toast.LENGTH_SHORT).show()
|
Toast.makeText(context, "Reset failed: ${e.message}", Toast.LENGTH_SHORT).show()
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"latest_version": "4.0.4-01",
|
"latest_version": "4.3.1-01",
|
||||||
"changelog": "UPDATE: 4.0.54",
|
"changelog": "UPDATE: 4.3.5X",
|
||||||
"apk_url": "https://git.kain.io.vn/Firefly-Shelter/FireflyGo_Android/releases/download/4.0.4-01/firefly_go_android.apk"
|
"apk_url": "https://git.kain.io.vn/Firefly-Shelter/FireflyGo_Android/releases/download/4.3.1-01/firefly_go_android.apk"
|
||||||
}
|
}
|
||||||
@@ -1,310 +0,0 @@
|
|||||||
{
|
|
||||||
"leader": 2,
|
|
||||||
"lineups": {
|
|
||||||
"0": 1217,
|
|
||||||
"1": 1307,
|
|
||||||
"2": 1005,
|
|
||||||
"3": 1410
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"x": -30,
|
|
||||||
"z": -22750,
|
|
||||||
"y": -15000,
|
|
||||||
"rot_y": 234288
|
|
||||||
},
|
|
||||||
"scene": {
|
|
||||||
"plane_id": 10000,
|
|
||||||
"floor_id": 10000003,
|
|
||||||
"entry_id": 100000352
|
|
||||||
},
|
|
||||||
"player_outfit": [
|
|
||||||
1003
|
|
||||||
],
|
|
||||||
"char_path": {
|
|
||||||
"main": 8008,
|
|
||||||
"march_7": 1224
|
|
||||||
},
|
|
||||||
"char_enhanced": {
|
|
||||||
"1005": 1,
|
|
||||||
"1006": 1,
|
|
||||||
"1205": 1,
|
|
||||||
"1212": 1,
|
|
||||||
"1306": 1,
|
|
||||||
"1307": 1
|
|
||||||
},
|
|
||||||
"challenge": {
|
|
||||||
"challenge_id": 0,
|
|
||||||
"skip_half": 0,
|
|
||||||
"blessings": [],
|
|
||||||
"is_in_challenge": false,
|
|
||||||
"current_stage_id": 30121122,
|
|
||||||
"path_resonance_id": 0,
|
|
||||||
"maze_buff": 0,
|
|
||||||
"first_lineup": [],
|
|
||||||
"second_lineup": []
|
|
||||||
},
|
|
||||||
"challenge_peak": {
|
|
||||||
"current_mode": "Boss",
|
|
||||||
"group_id": 5,
|
|
||||||
"is_in_challenge_peak": false,
|
|
||||||
"challenge_peak_data": {
|
|
||||||
"1": {
|
|
||||||
"checkmate_data": {
|
|
||||||
"challenge_id": 104,
|
|
||||||
"blessing": 3033006,
|
|
||||||
"lineup": [
|
|
||||||
1413,
|
|
||||||
1409,
|
|
||||||
1407,
|
|
||||||
1403
|
|
||||||
],
|
|
||||||
"stage_id": 30501022,
|
|
||||||
"is_hard_mode": true
|
|
||||||
},
|
|
||||||
"knight_data": {
|
|
||||||
"current_challenge_id": 103,
|
|
||||||
"details_data": [
|
|
||||||
{
|
|
||||||
"lineup": [
|
|
||||||
1222,
|
|
||||||
1225,
|
|
||||||
1310,
|
|
||||||
1303
|
|
||||||
],
|
|
||||||
"stage_id": 30501011,
|
|
||||||
"challenge_id": 101
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"lineup": [
|
|
||||||
1412,
|
|
||||||
1414,
|
|
||||||
1408,
|
|
||||||
1313
|
|
||||||
],
|
|
||||||
"stage_id": 30501012,
|
|
||||||
"challenge_id": 102
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"lineup": [
|
|
||||||
1407,
|
|
||||||
1403,
|
|
||||||
1409,
|
|
||||||
1413
|
|
||||||
],
|
|
||||||
"stage_id": 30501013,
|
|
||||||
"challenge_id": 103
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"2": {
|
|
||||||
"checkmate_data": {
|
|
||||||
"challenge_id": 204,
|
|
||||||
"blessing": 3033021,
|
|
||||||
"lineup": [
|
|
||||||
1415,
|
|
||||||
1413,
|
|
||||||
1409,
|
|
||||||
1407
|
|
||||||
],
|
|
||||||
"stage_id": 30502022,
|
|
||||||
"is_hard_mode": true
|
|
||||||
},
|
|
||||||
"knight_data": {
|
|
||||||
"current_challenge_id": 203,
|
|
||||||
"details_data": [
|
|
||||||
{
|
|
||||||
"lineup": [
|
|
||||||
1302,
|
|
||||||
1309,
|
|
||||||
1410
|
|
||||||
],
|
|
||||||
"stage_id": 30502011,
|
|
||||||
"challenge_id": 201
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"lineup": [
|
|
||||||
1221,
|
|
||||||
1222
|
|
||||||
],
|
|
||||||
"stage_id": 30502012,
|
|
||||||
"challenge_id": 202
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"lineup": [
|
|
||||||
1415,
|
|
||||||
8001,
|
|
||||||
1414,
|
|
||||||
1313
|
|
||||||
],
|
|
||||||
"stage_id": 30502013,
|
|
||||||
"challenge_id": 203
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"3": {
|
|
||||||
"checkmate_data": {
|
|
||||||
"challenge_id": 304,
|
|
||||||
"blessing": 3033032,
|
|
||||||
"lineup": [
|
|
||||||
1222,
|
|
||||||
1225,
|
|
||||||
1310,
|
|
||||||
1321
|
|
||||||
],
|
|
||||||
"stage_id": 30503021,
|
|
||||||
"is_hard_mode": false
|
|
||||||
},
|
|
||||||
"knight_data": {
|
|
||||||
"current_challenge_id": 302,
|
|
||||||
"details_data": [
|
|
||||||
{
|
|
||||||
"lineup": [
|
|
||||||
1003
|
|
||||||
],
|
|
||||||
"stage_id": 30503011,
|
|
||||||
"challenge_id": 301
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"lineup": [
|
|
||||||
1315
|
|
||||||
],
|
|
||||||
"stage_id": 30503012,
|
|
||||||
"challenge_id": 302
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"lineup": [
|
|
||||||
8001
|
|
||||||
],
|
|
||||||
"stage_id": 30503013,
|
|
||||||
"challenge_id": 303
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"4": {
|
|
||||||
"checkmate_data": {
|
|
||||||
"challenge_id": 404,
|
|
||||||
"blessing": 3033045,
|
|
||||||
"lineup": [
|
|
||||||
1310
|
|
||||||
],
|
|
||||||
"stage_id": 30504021,
|
|
||||||
"is_hard_mode": false
|
|
||||||
},
|
|
||||||
"knight_data": {
|
|
||||||
"current_challenge_id": 401,
|
|
||||||
"details_data": [
|
|
||||||
{
|
|
||||||
"lineup": [
|
|
||||||
1302
|
|
||||||
],
|
|
||||||
"stage_id": 30504011,
|
|
||||||
"challenge_id": 401
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"lineup": [
|
|
||||||
1321
|
|
||||||
],
|
|
||||||
"stage_id": 30504012,
|
|
||||||
"challenge_id": 402
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"lineup": [
|
|
||||||
1218
|
|
||||||
],
|
|
||||||
"stage_id": 30504013,
|
|
||||||
"challenge_id": 403
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"5": {
|
|
||||||
"checkmate_data": {
|
|
||||||
"challenge_id": 504,
|
|
||||||
"blessing": 3033050,
|
|
||||||
"lineup": [
|
|
||||||
1415,
|
|
||||||
1413,
|
|
||||||
1407,
|
|
||||||
1409
|
|
||||||
],
|
|
||||||
"stage_id": 30505021,
|
|
||||||
"is_hard_mode": false
|
|
||||||
},
|
|
||||||
"knight_data": {
|
|
||||||
"current_challenge_id": 501,
|
|
||||||
"details_data": [
|
|
||||||
{
|
|
||||||
"lineup": [
|
|
||||||
1310
|
|
||||||
],
|
|
||||||
"stage_id": 30505011,
|
|
||||||
"challenge_id": 501
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"lineup": [
|
|
||||||
1407
|
|
||||||
],
|
|
||||||
"stage_id": 30505012,
|
|
||||||
"challenge_id": 502
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"lineup": [
|
|
||||||
1502
|
|
||||||
],
|
|
||||||
"stage_id": 30505013,
|
|
||||||
"challenge_id": 503
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"theory_craft": {
|
|
||||||
"hp": {
|
|
||||||
"1": [
|
|
||||||
200000,
|
|
||||||
1000000,
|
|
||||||
200000
|
|
||||||
],
|
|
||||||
"2": [
|
|
||||||
2000000000,
|
|
||||||
2000000000,
|
|
||||||
2000000000
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"cycle_count": 1,
|
|
||||||
"stage_id": 30118121,
|
|
||||||
"mode": false
|
|
||||||
},
|
|
||||||
"profile_data": {
|
|
||||||
"cur_chat_bubble_id": 220009,
|
|
||||||
"cur_phone_theme_id": 221012,
|
|
||||||
"cur_phone_case_id": 254001,
|
|
||||||
"cur_pam_skin_id": 252000,
|
|
||||||
"cur_pet_id": 0,
|
|
||||||
"cur_avatar_player_icon": 202034,
|
|
||||||
"cur_player_personal_card": 253001,
|
|
||||||
"cur_signature": "Firefly GO By Kain",
|
|
||||||
"cur_display_avatar": [
|
|
||||||
1310,
|
|
||||||
1309,
|
|
||||||
1407,
|
|
||||||
1413,
|
|
||||||
1412
|
|
||||||
],
|
|
||||||
"cur_is_display_avatar": true
|
|
||||||
},
|
|
||||||
"skin_data": {
|
|
||||||
"1001": 1100101,
|
|
||||||
"1310": 1131001
|
|
||||||
},
|
|
||||||
"extra_setting": {
|
|
||||||
"censorship": false,
|
|
||||||
"cm": false,
|
|
||||||
"first_person": false,
|
|
||||||
"hide_ui": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
{
|
|
||||||
"CNBETAAndroid4.0.54": {
|
|
||||||
"asset_bundle_url": "https://autopatchcn.bhsr.com/asb/BetaLive/output_14239544_f4c7e35c12ab_be7a50ff5d1728",
|
|
||||||
"asset_bundle_url_b": "https://autopatchcn.bhsr.com/asb/BetaLive/output_14239544_f4c7e35c12ab_be7a50ff5d1728",
|
|
||||||
"ex_resource_url": "https://autopatchcn.bhsr.com/design_data/BetaLive/output_14270934_c5df39ade3cd_9db4958f23406e",
|
|
||||||
"lua_url": "https://autopatchcn.bhsr.com/lua/BetaLive/output_14239726_aa2162bcb19e_b24f07d946065b",
|
|
||||||
"ifix_url": "https://autopatchcn.bhsr.com/ifix/BetaLive/output_0_40d2ce0253_c61ba99f70b885"
|
|
||||||
},
|
|
||||||
"CNBETAWin4.0.54": {
|
|
||||||
"asset_bundle_url": "https://autopatchcn.bhsr.com/asb/BetaLive/output_14239544_f4c7e35c12ab_be7a50ff5d1728",
|
|
||||||
"asset_bundle_url_b": "https://autopatchcn.bhsr.com/asb/BetaLive/output_14239544_f4c7e35c12ab_be7a50ff5d1728",
|
|
||||||
"ex_resource_url": "https://autopatchcn.bhsr.com/design_data/BetaLive/output_14270934_c5df39ade3cd_9db4958f23406e",
|
|
||||||
"lua_url": "https://autopatchcn.bhsr.com/lua/BetaLive/output_14239726_aa2162bcb19e_b24f07d946065b",
|
|
||||||
"ifix_url": "https://autopatchcn.bhsr.com/ifix/BetaLive/output_0_40d2ce0253_c61ba99f70b885"
|
|
||||||
},
|
|
||||||
"CNBETAiOS4.0.54": {
|
|
||||||
"asset_bundle_url": "https://autopatchcn.bhsr.com/asb/BetaLive/output_14239544_f4c7e35c12ab_be7a50ff5d1728",
|
|
||||||
"asset_bundle_url_b": "https://autopatchcn.bhsr.com/asb/BetaLive/output_14239544_f4c7e35c12ab_be7a50ff5d1728",
|
|
||||||
"ex_resource_url": "https://autopatchcn.bhsr.com/design_data/BetaLive/output_14270934_c5df39ade3cd_9db4958f23406e",
|
|
||||||
"lua_url": "https://autopatchcn.bhsr.com/lua/BetaLive/output_14239726_aa2162bcb19e_b24f07d946065b",
|
|
||||||
"ifix_url": "https://autopatchcn.bhsr.com/ifix/BetaLive/output_0_40d2ce0253_c61ba99f70b885"
|
|
||||||
},
|
|
||||||
"OSBETAAndroid4.0.54": {
|
|
||||||
"asset_bundle_url": "https://autopatchcn.bhsr.com/asb/BetaLive/output_14239544_f4c7e35c12ab_be7a50ff5d1728",
|
|
||||||
"asset_bundle_url_b": "https://autopatchcn.bhsr.com/asb/BetaLive/output_14239544_f4c7e35c12ab_be7a50ff5d1728",
|
|
||||||
"ex_resource_url": "https://autopatchcn.bhsr.com/design_data/BetaLive/output_14270934_c5df39ade3cd_9db4958f23406e",
|
|
||||||
"lua_url": "https://autopatchcn.bhsr.com/lua/BetaLive/output_14239726_aa2162bcb19e_b24f07d946065b",
|
|
||||||
"ifix_url": "https://autopatchcn.bhsr.com/ifix/BetaLive/output_0_40d2ce0253_c61ba99f70b885"
|
|
||||||
},
|
|
||||||
"OSBETAWin4.0.54": {
|
|
||||||
"asset_bundle_url": "https://autopatchcn.bhsr.com/asb/BetaLive/output_14239544_f4c7e35c12ab_be7a50ff5d1728",
|
|
||||||
"asset_bundle_url_b": "https://autopatchcn.bhsr.com/asb/BetaLive/output_14239544_f4c7e35c12ab_be7a50ff5d1728",
|
|
||||||
"ex_resource_url": "https://autopatchcn.bhsr.com/design_data/BetaLive/output_14270934_c5df39ade3cd_9db4958f23406e",
|
|
||||||
"lua_url": "https://autopatchcn.bhsr.com/lua/BetaLive/output_14239726_aa2162bcb19e_b24f07d946065b",
|
|
||||||
"ifix_url": "https://autopatchcn.bhsr.com/ifix/BetaLive/output_0_40d2ce0253_c61ba99f70b885"
|
|
||||||
},
|
|
||||||
"OSBETAiOS4.0.54": {
|
|
||||||
"asset_bundle_url": "https://autopatchcn.bhsr.com/asb/BetaLive/output_14239544_f4c7e35c12ab_be7a50ff5d1728",
|
|
||||||
"asset_bundle_url_b": "https://autopatchcn.bhsr.com/asb/BetaLive/output_14239544_f4c7e35c12ab_be7a50ff5d1728",
|
|
||||||
"ex_resource_url": "https://autopatchcn.bhsr.com/design_data/BetaLive/output_14270934_c5df39ade3cd_9db4958f23406e",
|
|
||||||
"lua_url": "https://autopatchcn.bhsr.com/lua/BetaLive/output_14239726_aa2162bcb19e_b24f07d946065b",
|
|
||||||
"ifix_url": "https://autopatchcn.bhsr.com/ifix/BetaLive/output_0_40d2ce0253_c61ba99f70b885"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -24,3 +24,4 @@ kotlin.code.style=official
|
|||||||
android.nonTransitiveRClass=true
|
android.nonTransitiveRClass=true
|
||||||
#org.gradle.configuration-cache=false
|
#org.gradle.configuration-cache=false
|
||||||
android.r8.optimizedResourceShrinking=true
|
android.r8.optimizedResourceShrinking=true
|
||||||
|
org.gradle.java.installations.auto-download=true
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
#This file is generated by updateDaemonJvm
|
||||||
|
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/536afcd1dff540251f85e5d2c80458cf/redirect
|
||||||
|
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/398ffe3949748bfb1d5636f023d228fd/redirect
|
||||||
|
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/536afcd1dff540251f85e5d2c80458cf/redirect
|
||||||
|
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/398ffe3949748bfb1d5636f023d228fd/redirect
|
||||||
|
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/e99bae143b75f9a10ead10248f02055e/redirect
|
||||||
|
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/658299a896470fbb3103ba3a430ee227/redirect
|
||||||
|
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/536afcd1dff540251f85e5d2c80458cf/redirect
|
||||||
|
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/398ffe3949748bfb1d5636f023d228fd/redirect
|
||||||
|
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/248ffb1098f61659502d0c09aa348294/redirect
|
||||||
|
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/932015f6361ccaead0c6d9b8717ed96e/redirect
|
||||||
|
toolchainVendor=JETBRAINS
|
||||||
|
toolchainVersion=21
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## - UPDATE: Support 4.0.5X
|
## - UPDATE: Support 4.3.5X
|
||||||
+3
-2
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
"tag": "4.0.4-01",
|
"tag": "4.3.1-01",
|
||||||
"title": "PreBuild Version 4.0.54 - 01"
|
"title": "PreBuild Version 4.3.51 - 01"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -15,6 +15,9 @@ pluginManagement {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
plugins {
|
||||||
|
id("org.gradle.toolchains.foojay-resolver-convention") version "0.10.0"
|
||||||
|
}
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||||
repositories {
|
repositories {
|
||||||
|
|||||||
Reference in New Issue
Block a user