Skip to content

Commit

Permalink
Remove lombok dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ZaneYork committed Jun 20, 2023
1 parent a26fec7 commit 52f613b
Show file tree
Hide file tree
Showing 24 changed files with 2,708 additions and 169 deletions.
2 changes: 0 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,5 @@ dependencies {
implementation "com.microsoft.appcenter:appcenter-analytics:${appCenterSdkVersion}"
implementation "com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}"

compileOnly 'org.projectlombok:lombok:1.18.16'
annotationProcessor 'org.projectlombok:lombok:1.18.16'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.6'
}
Binary file not shown.
19 changes: 11 additions & 8 deletions app/src/main/java/com/zane/smapiinstaller/MainApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,28 @@

import android.app.Application;
import android.content.Context;

import com.hjq.language.MultiLanguages;
import com.lzy.okgo.OkGo;
import com.zane.smapiinstaller.entity.DaoMaster;
import com.zane.smapiinstaller.entity.DaoSession;
import com.zane.smapiinstaller.utils.DbOpenHelper;

import org.greenrobot.greendao.database.Database;

import androidx.multidex.MultiDex;
import lombok.Getter;
import okhttp3.OkHttpClient;

/**
* @author Zane
*/
@Getter
public class MainApplication extends Application {
private DaoSession daoSession;

@Override
public void onCreate() {
super.onCreate();
OkHttpClient okHttpClient = new OkHttpClient.Builder()
//开启Gzip压缩
OkHttpClient okHttpClient =
//开启Gzip压缩
// .addInterceptor(new GzipRequestInterceptor())
.build();
new OkHttpClient.Builder().build();
OkGo.getInstance().setOkHttpClient(okHttpClient).init(this);
MultiLanguages.init(this);
// note: DevOpenHelper is for dev only, use a OpenHelper subclass instead
Expand All @@ -42,4 +38,11 @@ protected void attachBaseContext(Context base) {
super.attachBaseContext(MultiLanguages.attach(base));
MultiDex.install(this);
}

//<editor-fold defaultstate="collapsed" desc="delombok">
@SuppressWarnings("all")
public DaoSession getDaoSession() {
return this.daoSession;
}
//</editor-fold>
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package com.zane.smapiinstaller.dto;

import lombok.Data;

/**
* @author Zane
*/
@Data
public class AppUpdateCheckResultDto {
/**
* 版本号
Expand All @@ -15,4 +12,79 @@ public class AppUpdateCheckResultDto {
* 版本名称
*/
private String versionName;

//<editor-fold defaultstate="collapsed" desc="delombok">
@SuppressWarnings("all")
public AppUpdateCheckResultDto() {
}

/**
* 版本号
*/
@SuppressWarnings("all")
public long getVersionCode() {
return this.versionCode;
}

/**
* 版本名称
*/
@SuppressWarnings("all")
public String getVersionName() {
return this.versionName;
}

/**
* 版本号
*/
@SuppressWarnings("all")
public void setVersionCode(final long versionCode) {
this.versionCode = versionCode;
}

/**
* 版本名称
*/
@SuppressWarnings("all")
public void setVersionName(final String versionName) {
this.versionName = versionName;
}

@Override
@SuppressWarnings("all")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof AppUpdateCheckResultDto)) return false;
final AppUpdateCheckResultDto other = (AppUpdateCheckResultDto) o;
if (!other.canEqual((Object) this)) return false;
if (this.getVersionCode() != other.getVersionCode()) return false;
final Object this$versionName = this.getVersionName();
final Object other$versionName = other.getVersionName();
if (this$versionName == null ? other$versionName != null : !this$versionName.equals(other$versionName)) return false;
return true;
}

@SuppressWarnings("all")
protected boolean canEqual(final Object other) {
return other instanceof AppUpdateCheckResultDto;
}

@Override
@SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final long $versionCode = this.getVersionCode();
result = result * PRIME + (int) ($versionCode >>> 32 ^ $versionCode);
final Object $versionName = this.getVersionName();
result = result * PRIME + ($versionName == null ? 43 : $versionName.hashCode());
return result;
}

@Override
@SuppressWarnings("all")
public String toString() {
return "AppUpdateCheckResultDto(versionCode=" + this.getVersionCode() + ", versionName=" + this.getVersionName() + ")";
}
//</editor-fold>
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,135 @@
package com.zane.smapiinstaller.dto;

import lombok.Data;

@Data
public class AssemblyStoreAssembly {
private Integer dataOffset;
private Integer dataSize;
private Integer debugDataOffset;
private Integer debugDataSize;
private Integer configDataOffset;
private Integer configDataSize;

//<editor-fold defaultstate="collapsed" desc="delombok">
@SuppressWarnings("all")
public AssemblyStoreAssembly() {
}

@SuppressWarnings("all")
public Integer getDataOffset() {
return this.dataOffset;
}

@SuppressWarnings("all")
public Integer getDataSize() {
return this.dataSize;
}

@SuppressWarnings("all")
public Integer getDebugDataOffset() {
return this.debugDataOffset;
}

@SuppressWarnings("all")
public Integer getDebugDataSize() {
return this.debugDataSize;
}

@SuppressWarnings("all")
public Integer getConfigDataOffset() {
return this.configDataOffset;
}

@SuppressWarnings("all")
public Integer getConfigDataSize() {
return this.configDataSize;
}

@SuppressWarnings("all")
public void setDataOffset(final Integer dataOffset) {
this.dataOffset = dataOffset;
}

@SuppressWarnings("all")
public void setDataSize(final Integer dataSize) {
this.dataSize = dataSize;
}

@SuppressWarnings("all")
public void setDebugDataOffset(final Integer debugDataOffset) {
this.debugDataOffset = debugDataOffset;
}

@SuppressWarnings("all")
public void setDebugDataSize(final Integer debugDataSize) {
this.debugDataSize = debugDataSize;
}

@SuppressWarnings("all")
public void setConfigDataOffset(final Integer configDataOffset) {
this.configDataOffset = configDataOffset;
}

@SuppressWarnings("all")
public void setConfigDataSize(final Integer configDataSize) {
this.configDataSize = configDataSize;
}

@Override
@SuppressWarnings("all")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof AssemblyStoreAssembly)) return false;
final AssemblyStoreAssembly other = (AssemblyStoreAssembly) o;
if (!other.canEqual((Object) this)) return false;
final Object this$dataOffset = this.getDataOffset();
final Object other$dataOffset = other.getDataOffset();
if (this$dataOffset == null ? other$dataOffset != null : !this$dataOffset.equals(other$dataOffset)) return false;
final Object this$dataSize = this.getDataSize();
final Object other$dataSize = other.getDataSize();
if (this$dataSize == null ? other$dataSize != null : !this$dataSize.equals(other$dataSize)) return false;
final Object this$debugDataOffset = this.getDebugDataOffset();
final Object other$debugDataOffset = other.getDebugDataOffset();
if (this$debugDataOffset == null ? other$debugDataOffset != null : !this$debugDataOffset.equals(other$debugDataOffset)) return false;
final Object this$debugDataSize = this.getDebugDataSize();
final Object other$debugDataSize = other.getDebugDataSize();
if (this$debugDataSize == null ? other$debugDataSize != null : !this$debugDataSize.equals(other$debugDataSize)) return false;
final Object this$configDataOffset = this.getConfigDataOffset();
final Object other$configDataOffset = other.getConfigDataOffset();
if (this$configDataOffset == null ? other$configDataOffset != null : !this$configDataOffset.equals(other$configDataOffset)) return false;
final Object this$configDataSize = this.getConfigDataSize();
final Object other$configDataSize = other.getConfigDataSize();
if (this$configDataSize == null ? other$configDataSize != null : !this$configDataSize.equals(other$configDataSize)) return false;
return true;
}

@SuppressWarnings("all")
protected boolean canEqual(final Object other) {
return other instanceof AssemblyStoreAssembly;
}

@Override
@SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final Object $dataOffset = this.getDataOffset();
result = result * PRIME + ($dataOffset == null ? 43 : $dataOffset.hashCode());
final Object $dataSize = this.getDataSize();
result = result * PRIME + ($dataSize == null ? 43 : $dataSize.hashCode());
final Object $debugDataOffset = this.getDebugDataOffset();
result = result * PRIME + ($debugDataOffset == null ? 43 : $debugDataOffset.hashCode());
final Object $debugDataSize = this.getDebugDataSize();
result = result * PRIME + ($debugDataSize == null ? 43 : $debugDataSize.hashCode());
final Object $configDataOffset = this.getConfigDataOffset();
result = result * PRIME + ($configDataOffset == null ? 43 : $configDataOffset.hashCode());
final Object $configDataSize = this.getConfigDataSize();
result = result * PRIME + ($configDataSize == null ? 43 : $configDataSize.hashCode());
return result;
}

@Override
@SuppressWarnings("all")
public String toString() {
return "AssemblyStoreAssembly(dataOffset=" + this.getDataOffset() + ", dataSize=" + this.getDataSize() + ", debugDataOffset=" + this.getDebugDataOffset() + ", debugDataSize=" + this.getDebugDataSize() + ", configDataOffset=" + this.getConfigDataOffset() + ", configDataSize=" + this.getConfigDataSize() + ")";
}
//</editor-fold>
}
Loading

0 comments on commit 52f613b

Please sign in to comment.