Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

Commit 52f613b

Browse files
committed
Remove lombok dependency
1 parent a26fec7 commit 52f613b

24 files changed

Lines changed: 2708 additions & 169 deletions

app/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,5 @@ dependencies {
112112
implementation "com.microsoft.appcenter:appcenter-analytics:${appCenterSdkVersion}"
113113
implementation "com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}"
114114

115-
compileOnly 'org.projectlombok:lombok:1.18.16'
116-
annotationProcessor 'org.projectlombok:lombok:1.18.16'
117115
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.6'
118116
}
23.8 KB
Binary file not shown.

app/src/main/java/com/zane/smapiinstaller/MainApplication.java

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,28 @@
22

33
import android.app.Application;
44
import android.content.Context;
5-
65
import com.hjq.language.MultiLanguages;
76
import com.lzy.okgo.OkGo;
87
import com.zane.smapiinstaller.entity.DaoMaster;
98
import com.zane.smapiinstaller.entity.DaoSession;
109
import com.zane.smapiinstaller.utils.DbOpenHelper;
11-
1210
import org.greenrobot.greendao.database.Database;
13-
1411
import androidx.multidex.MultiDex;
15-
import lombok.Getter;
1612
import okhttp3.OkHttpClient;
1713

1814
/**
1915
* @author Zane
2016
*/
21-
@Getter
2217
public class MainApplication extends Application {
2318
private DaoSession daoSession;
19+
2420
@Override
2521
public void onCreate() {
2622
super.onCreate();
27-
OkHttpClient okHttpClient = new OkHttpClient.Builder()
28-
//开启Gzip压缩
23+
OkHttpClient okHttpClient =
24+
//开启Gzip压缩
2925
// .addInterceptor(new GzipRequestInterceptor())
30-
.build();
26+
new OkHttpClient.Builder().build();
3127
OkGo.getInstance().setOkHttpClient(okHttpClient).init(this);
3228
MultiLanguages.init(this);
3329
// note: DevOpenHelper is for dev only, use a OpenHelper subclass instead
@@ -42,4 +38,11 @@ protected void attachBaseContext(Context base) {
4238
super.attachBaseContext(MultiLanguages.attach(base));
4339
MultiDex.install(this);
4440
}
41+
42+
//<editor-fold defaultstate="collapsed" desc="delombok">
43+
@SuppressWarnings("all")
44+
public DaoSession getDaoSession() {
45+
return this.daoSession;
46+
}
47+
//</editor-fold>
4548
}
Lines changed: 75 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
package com.zane.smapiinstaller.dto;
22

3-
import lombok.Data;
4-
53
/**
64
* @author Zane
75
*/
8-
@Data
96
public class AppUpdateCheckResultDto {
107
/**
118
* 版本号
@@ -15,4 +12,79 @@ public class AppUpdateCheckResultDto {
1512
* 版本名称
1613
*/
1714
private String versionName;
15+
16+
//<editor-fold defaultstate="collapsed" desc="delombok">
17+
@SuppressWarnings("all")
18+
public AppUpdateCheckResultDto() {
19+
}
20+
21+
/**
22+
* 版本号
23+
*/
24+
@SuppressWarnings("all")
25+
public long getVersionCode() {
26+
return this.versionCode;
27+
}
28+
29+
/**
30+
* 版本名称
31+
*/
32+
@SuppressWarnings("all")
33+
public String getVersionName() {
34+
return this.versionName;
35+
}
36+
37+
/**
38+
* 版本号
39+
*/
40+
@SuppressWarnings("all")
41+
public void setVersionCode(final long versionCode) {
42+
this.versionCode = versionCode;
43+
}
44+
45+
/**
46+
* 版本名称
47+
*/
48+
@SuppressWarnings("all")
49+
public void setVersionName(final String versionName) {
50+
this.versionName = versionName;
51+
}
52+
53+
@Override
54+
@SuppressWarnings("all")
55+
public boolean equals(final Object o) {
56+
if (o == this) return true;
57+
if (!(o instanceof AppUpdateCheckResultDto)) return false;
58+
final AppUpdateCheckResultDto other = (AppUpdateCheckResultDto) o;
59+
if (!other.canEqual((Object) this)) return false;
60+
if (this.getVersionCode() != other.getVersionCode()) return false;
61+
final Object this$versionName = this.getVersionName();
62+
final Object other$versionName = other.getVersionName();
63+
if (this$versionName == null ? other$versionName != null : !this$versionName.equals(other$versionName)) return false;
64+
return true;
65+
}
66+
67+
@SuppressWarnings("all")
68+
protected boolean canEqual(final Object other) {
69+
return other instanceof AppUpdateCheckResultDto;
70+
}
71+
72+
@Override
73+
@SuppressWarnings("all")
74+
public int hashCode() {
75+
final int PRIME = 59;
76+
int result = 1;
77+
final long $versionCode = this.getVersionCode();
78+
result = result * PRIME + (int) ($versionCode >>> 32 ^ $versionCode);
79+
final Object $versionName = this.getVersionName();
80+
result = result * PRIME + ($versionName == null ? 43 : $versionName.hashCode());
81+
return result;
82+
}
83+
84+
@Override
85+
@SuppressWarnings("all")
86+
public String toString() {
87+
return "AppUpdateCheckResultDto(versionCode=" + this.getVersionCode() + ", versionName=" + this.getVersionName() + ")";
88+
}
89+
//</editor-fold>
1890
}
Lines changed: 125 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,135 @@
11
package com.zane.smapiinstaller.dto;
22

3-
import lombok.Data;
4-
5-
@Data
63
public class AssemblyStoreAssembly {
74
private Integer dataOffset;
85
private Integer dataSize;
96
private Integer debugDataOffset;
107
private Integer debugDataSize;
118
private Integer configDataOffset;
129
private Integer configDataSize;
10+
11+
//<editor-fold defaultstate="collapsed" desc="delombok">
12+
@SuppressWarnings("all")
13+
public AssemblyStoreAssembly() {
14+
}
15+
16+
@SuppressWarnings("all")
17+
public Integer getDataOffset() {
18+
return this.dataOffset;
19+
}
20+
21+
@SuppressWarnings("all")
22+
public Integer getDataSize() {
23+
return this.dataSize;
24+
}
25+
26+
@SuppressWarnings("all")
27+
public Integer getDebugDataOffset() {
28+
return this.debugDataOffset;
29+
}
30+
31+
@SuppressWarnings("all")
32+
public Integer getDebugDataSize() {
33+
return this.debugDataSize;
34+
}
35+
36+
@SuppressWarnings("all")
37+
public Integer getConfigDataOffset() {
38+
return this.configDataOffset;
39+
}
40+
41+
@SuppressWarnings("all")
42+
public Integer getConfigDataSize() {
43+
return this.configDataSize;
44+
}
45+
46+
@SuppressWarnings("all")
47+
public void setDataOffset(final Integer dataOffset) {
48+
this.dataOffset = dataOffset;
49+
}
50+
51+
@SuppressWarnings("all")
52+
public void setDataSize(final Integer dataSize) {
53+
this.dataSize = dataSize;
54+
}
55+
56+
@SuppressWarnings("all")
57+
public void setDebugDataOffset(final Integer debugDataOffset) {
58+
this.debugDataOffset = debugDataOffset;
59+
}
60+
61+
@SuppressWarnings("all")
62+
public void setDebugDataSize(final Integer debugDataSize) {
63+
this.debugDataSize = debugDataSize;
64+
}
65+
66+
@SuppressWarnings("all")
67+
public void setConfigDataOffset(final Integer configDataOffset) {
68+
this.configDataOffset = configDataOffset;
69+
}
70+
71+
@SuppressWarnings("all")
72+
public void setConfigDataSize(final Integer configDataSize) {
73+
this.configDataSize = configDataSize;
74+
}
75+
76+
@Override
77+
@SuppressWarnings("all")
78+
public boolean equals(final Object o) {
79+
if (o == this) return true;
80+
if (!(o instanceof AssemblyStoreAssembly)) return false;
81+
final AssemblyStoreAssembly other = (AssemblyStoreAssembly) o;
82+
if (!other.canEqual((Object) this)) return false;
83+
final Object this$dataOffset = this.getDataOffset();
84+
final Object other$dataOffset = other.getDataOffset();
85+
if (this$dataOffset == null ? other$dataOffset != null : !this$dataOffset.equals(other$dataOffset)) return false;
86+
final Object this$dataSize = this.getDataSize();
87+
final Object other$dataSize = other.getDataSize();
88+
if (this$dataSize == null ? other$dataSize != null : !this$dataSize.equals(other$dataSize)) return false;
89+
final Object this$debugDataOffset = this.getDebugDataOffset();
90+
final Object other$debugDataOffset = other.getDebugDataOffset();
91+
if (this$debugDataOffset == null ? other$debugDataOffset != null : !this$debugDataOffset.equals(other$debugDataOffset)) return false;
92+
final Object this$debugDataSize = this.getDebugDataSize();
93+
final Object other$debugDataSize = other.getDebugDataSize();
94+
if (this$debugDataSize == null ? other$debugDataSize != null : !this$debugDataSize.equals(other$debugDataSize)) return false;
95+
final Object this$configDataOffset = this.getConfigDataOffset();
96+
final Object other$configDataOffset = other.getConfigDataOffset();
97+
if (this$configDataOffset == null ? other$configDataOffset != null : !this$configDataOffset.equals(other$configDataOffset)) return false;
98+
final Object this$configDataSize = this.getConfigDataSize();
99+
final Object other$configDataSize = other.getConfigDataSize();
100+
if (this$configDataSize == null ? other$configDataSize != null : !this$configDataSize.equals(other$configDataSize)) return false;
101+
return true;
102+
}
103+
104+
@SuppressWarnings("all")
105+
protected boolean canEqual(final Object other) {
106+
return other instanceof AssemblyStoreAssembly;
107+
}
108+
109+
@Override
110+
@SuppressWarnings("all")
111+
public int hashCode() {
112+
final int PRIME = 59;
113+
int result = 1;
114+
final Object $dataOffset = this.getDataOffset();
115+
result = result * PRIME + ($dataOffset == null ? 43 : $dataOffset.hashCode());
116+
final Object $dataSize = this.getDataSize();
117+
result = result * PRIME + ($dataSize == null ? 43 : $dataSize.hashCode());
118+
final Object $debugDataOffset = this.getDebugDataOffset();
119+
result = result * PRIME + ($debugDataOffset == null ? 43 : $debugDataOffset.hashCode());
120+
final Object $debugDataSize = this.getDebugDataSize();
121+
result = result * PRIME + ($debugDataSize == null ? 43 : $debugDataSize.hashCode());
122+
final Object $configDataOffset = this.getConfigDataOffset();
123+
result = result * PRIME + ($configDataOffset == null ? 43 : $configDataOffset.hashCode());
124+
final Object $configDataSize = this.getConfigDataSize();
125+
result = result * PRIME + ($configDataSize == null ? 43 : $configDataSize.hashCode());
126+
return result;
127+
}
128+
129+
@Override
130+
@SuppressWarnings("all")
131+
public String toString() {
132+
return "AssemblyStoreAssembly(dataOffset=" + this.getDataOffset() + ", dataSize=" + this.getDataSize() + ", debugDataOffset=" + this.getDebugDataOffset() + ", debugDataSize=" + this.getDebugDataSize() + ", configDataOffset=" + this.getConfigDataOffset() + ", configDataSize=" + this.getConfigDataSize() + ")";
133+
}
134+
//</editor-fold>
13135
}

0 commit comments

Comments
 (0)