Skip to content

Commit 3bcab79

Browse files
committed
Update 76e24f7 -> 0425408
1 parent fe8040b commit 3bcab79

21 files changed

+138
-204
lines changed

patches/client/0001-BUILD-build.gradle.kts-and-clear.patch

+23-51
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ clear and replce jabel(Support record)
77
way-zer <[email protected]> on 2024/6/9
88
---
99
.gitignore | 2 +-
10-
android/build.gradle | 80 +++--
11-
android/proguard-rules.pro | 5 +
10+
android/build.gradle | 78 +++--
11+
android/proguard-rules.pro | 4 +
1212
.../com/github/bsideup/jabel/Desugar.java | 13 +
1313
.../javax.annotation.processing.Processor | 6 +
1414
build.gradle | 241 ++-------------
@@ -17,15 +17,14 @@ way-zer <[email protected]> on 2024/6/9
1717
desktop/build.gradle | 162 +---------
1818
gradle.properties | 2 +
1919
gradle/wrapper/gradle-wrapper.jar | Bin 59203 -> 43462 bytes
20-
gradle/wrapper/gradle-wrapper.properties | 4 +-
2120
gradlew | 282 +++++++++++-------
2221
gradlew.bat | 35 ++-
2322
ios/build.gradle | 2 +-
2423
server/build.gradle | 44 +--
2524
settings.gradle | 10 +-
2625
tools/build.gradle | 44 ++-
2726
tools/src/mindustry/tools/Generators.java | 2 +-
28-
19 files changed, 389 insertions(+), 611 deletions(-)
27+
18 files changed, 383 insertions(+), 610 deletions(-)
2928
create mode 100644 annotations/src/main/java/com/github/bsideup/jabel/Desugar.java
3029
create mode 100644 annotations/src/main/resources/META-INF/services/javax.annotation.processing.Processor
3130
delete mode 100644 core/build.gradle
@@ -52,7 +51,7 @@ index dd3f2a0f065d3f774ea84fbc932e337160e4b307..7d91d3191096c431b739d2d5ecd951a7
5251
/core/assets/locales
5352
/core/assets/cache/
5453
diff --git a/android/build.gradle b/android/build.gradle
55-
index f7f1ce377bb162249e8034db9ab712a75e96bc17..8b9676e3f124728d59ee80367d14f433853c0c40 100644
54+
index f1dc45aa74b149babea9cce2535ed7dca8d49a1f..093c328edc2719aa86bb212e1abb1f500044b08a 100644
5655
--- a/android/build.gradle
5756
+++ b/android/build.gradle
5857
@@ -1,18 +1,19 @@
@@ -68,7 +67,7 @@ index f7f1ce377bb162249e8034db9ab712a75e96bc17..8b9676e3f124728d59ee80367d14f433
6867
+}
6968

7069
- dependencies{
71-
- classpath 'com.android.tools.build:gradle:7.2.1'
70+
- classpath 'com.android.tools.build:gradle:8.2.2'
7271
+ext{
7372
+ findSdkDir = {
7473
+ //null because IntelliJ doesn't get env variables
@@ -86,7 +85,7 @@ index f7f1ce377bb162249e8034db9ab712a75e96bc17..8b9676e3f124728d59ee80367d14f433
8685
configurations{ natives }
8786

8887
repositories{
89-
@@ -20,17 +21,10 @@ repositories{
88+
@@ -20,16 +21,8 @@ repositories{
9089
maven{ url "https://maven.google.com" }
9190
}
9291

@@ -99,15 +98,12 @@ index f7f1ce377bb162249e8034db9ab712a75e96bc17..8b9676e3f124728d59ee80367d14f433
9998
-}
10099
-
101100
android{
102-
- buildToolsVersion '33.0.2'
103-
- compileSdkVersion 33
101+
- namespace = "io.anuke.mindustry"
104102
+ namespace = "com.github.tinylake.mindustryX"
105-
+ buildToolsVersion = '33.0.2'
106-
+ compileSdk = 33
103+
buildToolsVersion = '34.0.0'
104+
compileSdk = 34
107105
sourceSets{
108-
main{
109-
manifest.srcFile 'AndroidManifest.xml'
110-
@@ -50,8 +44,6 @@ android{
106+
@@ -51,8 +44,6 @@ android{
111107
}
112108

113109
defaultConfig{
@@ -116,12 +112,13 @@ index f7f1ce377bb162249e8034db9ab712a75e96bc17..8b9676e3f124728d59ee80367d14f433
116112
def versionNameResult = "$versionNumber-$versionType-${getBuildVersion().replace(" ", "-")}"
117113

118114
applicationId "io.anuke.mindustry"
119-
@@ -59,12 +51,15 @@ android{
120-
targetSdkVersion 33
115+
@@ -60,14 +51,16 @@ android{
116+
targetSdkVersion 34
121117

122118
versionName versionNameResult
123119
- versionCode = vcode
124120
+ versionCode = 1
121+
+ multiDexEnabled true
125122

126123
if(project.hasProperty("release")){
127124
+ Properties props = loadVersionProps()
@@ -131,19 +128,12 @@ index f7f1ce377bb162249e8034db9ab712a75e96bc17..8b9676e3f124728d59ee80367d14f433
131128
+ props.store(file('../core/assets/version.properties').newWriter(), null)
132129
}
133130
- props.store(file('../core/assets/version.properties').newWriter(), null)
131+
-
132+
- multiDexEnabled true
134133
}
135134

136135
compileOptions{
137-
@@ -72,7 +67,7 @@ android{
138-
targetCompatibility JavaVersion.VERSION_1_8
139-
}
140-
141-
- flavorDimensions "google"
142-
+ flavorDimensions = ["google"]
143-
144-
signingConfigs{
145-
release{
146-
@@ -119,8 +114,8 @@ dependencies{
136+
@@ -122,8 +115,8 @@ dependencies{
147137
implementation arcModule("backends:backend-android")
148138
implementation 'com.jakewharton.android.repackaged:dalvik-dx:9.0.0_r3'
149139

@@ -154,7 +144,7 @@ index f7f1ce377bb162249e8034db9ab712a75e96bc17..8b9676e3f124728d59ee80367d14f433
154144

155145
def version;
156146
def highestVersion;
157-
@@ -133,24 +128,25 @@ dependencies{
147+
@@ -136,24 +129,25 @@ dependencies{
158148
if(sdkFile.exists()) compileOnly files(sdkFile.absolutePath)
159149
}
160150

@@ -196,25 +186,20 @@ index f7f1ce377bb162249e8034db9ab712a75e96bc17..8b9676e3f124728d59ee80367d14f433
196186
+}
197187
\ No newline at end of file
198188
diff --git a/android/proguard-rules.pro b/android/proguard-rules.pro
199-
index 368b7f4e1e14f4f6cd83f3390fb33899552235fc..7977507301e2bb020346409539c54f8c87e4b320 100644
189+
index ebda968ae6947db76031a6d37bc74f049e2e3db4..6f53c442978ee6a880dfd05a81a69fde596a783b 100644
200190
--- a/android/proguard-rules.pro
201191
+++ b/android/proguard-rules.pro
202-
@@ -3,9 +3,14 @@
203-
#these are essential packages that should not be "optimized" in any way
204-
#the main purpose of d8 here is to shrink the absurdly-large google play games libraries
205-
-keep class mindustry.** { *; }
206-
+-keep class mindustryX.** { *; }
207-
-keep class arc.** { *; }
192+
@@ -5,6 +5,10 @@
208193
-keep class net.jpountz.** { *; }
209194
-keep class rhino.** { *; }
210195
-keep class com.android.dex.** { *; }
196+
+-keep class mindustryX.** { *; }
211197
+-keep class kotlin.** { *; }
212198
+-keep class org.jetbrains.annotations.** { *; }
213199
+-keep class org.intellij.lang.annotations.** { *; }
200+
-keepattributes Signature,*Annotation*,InnerClasses,EnclosingMethod
214201

215-
+-dontwarn javax.naming.**
216-
#-printusage out.txt
217-
\ No newline at end of file
202+
-dontwarn javax.naming.**
218203
diff --git a/annotations/src/main/java/com/github/bsideup/jabel/Desugar.java b/annotations/src/main/java/com/github/bsideup/jabel/Desugar.java
219204
new file mode 100644
220205
index 0000000000000000000000000000000000000000..dcea5cdf03b366f9f59e20511dafee3601e15fb6
@@ -858,7 +843,7 @@ index 7f4ecdcf0a6407ffce7181234527dc6cbc4d484b..ecb36e1a2a501040d3adee3203eacef2
858843
+}
859844
\ No newline at end of file
860845
diff --git a/gradle.properties b/gradle.properties
861-
index 087025418f6b5419bcf23f6354c18f53a7eef0dc..f43e22ea642fe0dcd62cf970a518de025db65ea4 100644
846+
index 827c8445c4ac9ea773041bba50235598c3604fe1..16ce1c54512959ff201113c746e222291fdb11ff 100644
862847
--- a/gradle.properties
863848
+++ b/gradle.properties
864849
@@ -21,6 +21,8 @@ kapt.include.compile.classpath=false
@@ -2655,19 +2640,6 @@ z9CObS!0m)Tgg`K#xBM8B(|Z)Wb&DYL{WTYv`;A=q6~Nnx2+!lTIXtj8J7dZE!P_{z
26552640
z#f8w6F}^!?^KE#+ZDv+xd5O&3EmomZzsv?>E-~ygGum45fk!SBN&|eo1rKw^?aZJ4
26562641
E2O(~oYXATM
26572642

2658-
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
2659-
index 3994438e229201828cf0e387c24a7c12d78b3972..a80b22ce5cffec8b48ee79b11c67945e91f99d5f 100644
2660-
--- a/gradle/wrapper/gradle-wrapper.properties
2661-
+++ b/gradle/wrapper/gradle-wrapper.properties
2662-
@@ -1,5 +1,7 @@
2663-
distributionBase=GRADLE_USER_HOME
2664-
distributionPath=wrapper/dists
2665-
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip
2666-
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
2667-
+networkTimeout=10000
2668-
+validateDistributionUrl=true
2669-
zipStoreBase=GRADLE_USER_HOME
2670-
zipStorePath=wrapper/dists
26712643
diff --git a/gradlew b/gradlew
26722644
index 4f906e0c811fc9e230eb44819f509cd0627f2600..1aa94a4269074199e6ed2c37e8db3e0826030965 100755
26732645
--- a/gradlew

patches/client/0003-CS-Version.patch

+9-22
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Subject: [PATCH] CS: Version
55

66
---
77
.gitignore | 1 +
8-
android/AndroidManifest.xml | 3 +--
98
android/build.gradle | 4 ++--
109
android/res/values/strings.xml | 2 +-
1110
build.gradle | 4 ++--
@@ -15,7 +14,7 @@ Subject: [PATCH] CS: Version
1514
core/src/mindustry/core/Version.java | 16 +++++++++++++++-
1615
core/src/mindustry/net/NetworkIO.java | 2 +-
1716
gradle.properties | 2 ++
18-
11 files changed, 29 insertions(+), 11 deletions(-)
17+
10 files changed, 28 insertions(+), 9 deletions(-)
1918

2019
diff --git a/.gitignore b/.gitignore
2120
index 7d91d3191096c431b739d2d5ecd951a764feead3..ba271e6bd0dd06971fff6fa2314254149cc90087 100644
@@ -29,20 +28,8 @@ index 7d91d3191096c431b739d2d5ecd951a764feead3..ba271e6bd0dd06971fff6fa231425414
2928
/deploy/
3029
/out/
3130
ios/libs/
32-
diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml
33-
index 8cae20eee7a480cef6a14576fc72b096d38271e1..25602c4ab4070b7db9b31803c88281c7e4aa449e 100644
34-
--- a/android/AndroidManifest.xml
35-
+++ b/android/AndroidManifest.xml
36-
@@ -1,6 +1,5 @@
37-
<?xml version="1.0" encoding="utf-8"?>
38-
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
39-
- package="io.anuke.mindustry">
40-
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
41-
42-
<uses-feature android:glEsVersion="0x00020000" android:required="true"/>
43-
<uses-feature android:name="android.hardware.type.pc" android:required="false" />
4431
diff --git a/android/build.gradle b/android/build.gradle
45-
index 8b9676e3f124728d59ee80367d14f433853c0c40..c39484bf6b00b8031b7ae8862cc172f8946f12cc 100644
32+
index 093c328edc2719aa86bb212e1abb1f500044b08a..fc719ba8aaa918185c1bba016ba83d7ad975e402 100644
4633
--- a/android/build.gradle
4734
+++ b/android/build.gradle
4835
@@ -18,7 +18,7 @@ configurations{ natives }
@@ -61,7 +48,7 @@ index 8b9676e3f124728d59ee80367d14f433853c0c40..c39484bf6b00b8031b7ae8862cc172f8
6148
- applicationId "io.anuke.mindustry"
6249
+ applicationId "com.github.tinylake.mindustryX"
6350
minSdkVersion 14
64-
targetSdkVersion 33
51+
targetSdkVersion 34
6552

6653
diff --git a/android/res/values/strings.xml b/android/res/values/strings.xml
6754
index d42ffe6d4a318ce558f1010eae46140f88ed5c99..bf44ead5c58abfb79c500e6daae30c3e7c322bed 100644
@@ -119,7 +106,7 @@ index bc4c6a494aec88af73f001906598ba91a50ac6a3..d08d04a6f0e8107cec995876b2072c46
119106
public static final Seq<ServerGroup> defaultServers = Seq.with();
120107
/** maximum size of any block, do not change unless you know what you're doing */
121108
diff --git a/core/src/mindustry/core/NetClient.java b/core/src/mindustry/core/NetClient.java
122-
index 8171a89797a0d1cb29fb50364a94b6d3130698ae..6b05845bad6eb3862dea511563e099085d15b479 100644
109+
index 8d3ac0bd19be8caca3aa95ab48adda63c3c317a1..5cbdf0a613c067f662a3c7dd4511bb33e35657ae 100644
123110
--- a/core/src/mindustry/core/NetClient.java
124111
+++ b/core/src/mindustry/core/NetClient.java
125112
@@ -135,6 +135,8 @@ public class NetClient implements ApplicationListener{
@@ -192,13 +179,13 @@ index 48599c6b96474117057e7ca2b87b545873a0ea31..4366eeef830845fb13132a0ae3534129
192179
buffer.put((byte)state.rules.mode().ordinal());
193180
buffer.putInt(netServer.admins.getPlayerLimit());
194181
diff --git a/gradle.properties b/gradle.properties
195-
index f43e22ea642fe0dcd62cf970a518de025db65ea4..b1921b8ac0d8d0ca7ac86e4d551a694d1ae38ed9 100644
182+
index 16ce1c54512959ff201113c746e222291fdb11ff..81861490f166f3f5af54997d6bb1ac8adedff122 100644
196183
--- a/gradle.properties
197184
+++ b/gradle.properties
198-
@@ -28,3 +28,5 @@ org.gradle.caching=true
199-
org.gradle.internal.http.socketTimeout=100000
185+
@@ -29,3 +29,5 @@ org.gradle.internal.http.socketTimeout=100000
200186
org.gradle.internal.http.connectionTimeout=100000
201-
archash=7d6e89dffd
187+
android.enableR8.fullMode=false
188+
archash=96cd86d08a
202189
+
203-
+upstreamBuild=25087
190+
+upstreamBuild=25136
204191
\ No newline at end of file

patches/client/0006-S-update-TypeIO.writeRequest.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Subject: [PATCH] S: update TypeIO.writeRequest
88
1 file changed, 3 insertions(+), 2 deletions(-)
99

1010
diff --git a/core/src/mindustry/io/TypeIO.java b/core/src/mindustry/io/TypeIO.java
11-
index 70d1543c366b4eeef80c67f4eaeb05643c93451e..fe9682663342ccd1f3537cf82ea4c74996655440 100644
11+
index c02ceb4ae69d9f7e5bea93df94c546d7a06cd1e2..c8de9a61012e3362c3f4a06af1c0237f5de120ac 100644
1212
--- a/core/src/mindustry/io/TypeIO.java
1313
+++ b/core/src/mindustry/io/TypeIO.java
14-
@@ -414,8 +414,9 @@ public class TypeIO{
14+
@@ -413,8 +413,9 @@ public class TypeIO{
1515
if(!plan.breaking){
1616
write.s(plan.block.id);
1717
write.b((byte)plan.rotation);

patches/client/0016-C-RenderExt-bulletShow-showMineBeam-displayAllMessag.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Subject: [PATCH] C(RenderExt) bulletShow showMineBeam displayAllMessage
1111
3 files changed, 19 insertions(+), 1 deletion(-)
1212

1313
diff --git a/core/src/mindustry/type/UnitType.java b/core/src/mindustry/type/UnitType.java
14-
index 34c3b537df9075827b24df0f26c83de1cc805bf6..939924880db520a918cc51cf5cace817000fb28d 100644
14+
index 3408948807b1bc145fa5effb4cd77b9f5ff4a29d..d8999d2001071b91a9976921f66a71562c215e09 100644
1515
--- a/core/src/mindustry/type/UnitType.java
1616
+++ b/core/src/mindustry/type/UnitType.java
1717
@@ -37,6 +37,7 @@ import mindustry.world.blocks.payloads.*;

patches/client/0023-C-StatExt.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ index 79d0177b41b7480488f6131935dbf345b9f4598a..2e67b422063355deac7aecb7dd93b3ed
148148
if(damage < 0) stats.add(Stat.healing, -damage * 60f, StatUnit.perSecond);
149149

150150
diff --git a/core/src/mindustry/type/UnitType.java b/core/src/mindustry/type/UnitType.java
151-
index 939924880db520a918cc51cf5cace817000fb28d..998caed117d2eeef7f74ad0527c2f01f76f60650 100644
151+
index d8999d2001071b91a9976921f66a71562c215e09..682d2cdb951823b61c7951c8c19ed8a0a976f396 100644
152152
--- a/core/src/mindustry/type/UnitType.java
153153
+++ b/core/src/mindustry/type/UnitType.java
154154
@@ -612,29 +612,47 @@ public class UnitType extends UnlockableContent implements Senseable{
@@ -480,7 +480,7 @@ index 97aedf43b5595bcfb63ea9ecce91dc6e57967e92..cd30d93b35b0547658c39c0b0f6e5ef0
480480

481481
public class PointDefenseBuild extends ReloadTurretBuild{
482482
diff --git a/core/src/mindustry/world/blocks/defense/turrets/Turret.java b/core/src/mindustry/world/blocks/defense/turrets/Turret.java
483-
index 0baea25f9367d45ad3384bbbc69bd4299b9a19a8..df8ecaa3537b0fb9d1ffad0226695af9596b9b81 100644
483+
index e9f5331bbef3b2110eeeed5934ec10b5f5fc9e12..cf350df9ea21f3654672c99a70c5c9f2ea439413 100644
484484
--- a/core/src/mindustry/world/blocks/defense/turrets/Turret.java
485485
+++ b/core/src/mindustry/world/blocks/defense/turrets/Turret.java
486486
@@ -26,6 +26,7 @@ import mindustry.ui.*;
@@ -491,7 +491,7 @@ index 0baea25f9367d45ad3384bbbc69bd4299b9a19a8..df8ecaa3537b0fb9d1ffad0226695af9
491491

492492
import static mindustry.Vars.*;
493493

494-
@@ -152,7 +153,8 @@ public class Turret extends ReloadTurret{
494+
@@ -153,7 +154,8 @@ public class Turret extends ReloadTurret{
495495
super.setStats();
496496

497497
stats.add(Stat.inaccuracy, (int)inaccuracy, StatUnit.degrees);

patches/client/0024-API-Hooks-onHandleSendMessage.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Subject: [PATCH] API(Hooks) onHandleSendMessage
99
2 files changed, 10 insertions(+)
1010

1111
diff --git a/core/src/mindustry/core/NetClient.java b/core/src/mindustry/core/NetClient.java
12-
index 6b05845bad6eb3862dea511563e099085d15b479..c0960a878e6831e746499bdf13444c2e6ab42f9a 100644
12+
index 5cbdf0a613c067f662a3c7dd4511bb33e35657ae..3a5b36fd03f48d2c1265884c21b70bb3cdb772bb 100644
1313
--- a/core/src/mindustry/core/NetClient.java
1414
+++ b/core/src/mindustry/core/NetClient.java
1515
@@ -198,6 +198,8 @@ public class NetClient implements ApplicationListener{

patches/client/0029-BUILD-Kotlin-1.9.20.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ index 67e4cde70b0dbdc197cf8e9d5f12b5ae26172f08..609d7414566c6c5e860196d564941209
6060
}
6161

6262
diff --git a/gradle.properties b/gradle.properties
63-
index b1921b8ac0d8d0ca7ac86e4d551a694d1ae38ed9..8f52954bc94a027e5116e7d06a79ad1ca4358f83 100644
63+
index 81861490f166f3f5af54997d6bb1ac8adedff122..85ffb7703a2f41e9ec9d7c4681158d00e12add6c 100644
6464
--- a/gradle.properties
6565
+++ b/gradle.properties
6666
@@ -18,7 +18,7 @@ kapt.use.worker.api=true

patches/client/0037-C-ReplayController.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ way-zer <[email protected]> on 2024/4/22 at 20:15
2020
create mode 100644 core/src/mindustryX/features/ReplayController.java
2121

2222
diff --git a/core/src/mindustry/core/NetClient.java b/core/src/mindustry/core/NetClient.java
23-
index c0960a878e6831e746499bdf13444c2e6ab42f9a..0a904cfeb92b230e7d52fff7a16e1104fe5415fa 100644
23+
index 3a5b36fd03f48d2c1265884c21b70bb3cdb772bb..2e9a8c337ae1182dfa5527a23c50afb6da42f834 100644
2424
--- a/core/src/mindustry/core/NetClient.java
2525
+++ b/core/src/mindustry/core/NetClient.java
2626
@@ -24,6 +24,7 @@ import mindustry.net.*;

0 commit comments

Comments
 (0)