-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add file sizes and hashes (closes #5)
- Loading branch information
Showing
15 changed files
with
135 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
src/main/java/org/quiltmc/meta/update/model/v3/HashedMojmapVersionV3.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package org.quiltmc.meta.update.model.v3; | ||
|
||
public record HashedMojmapVersionV3(String maven, String version) { | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.util.Map; | ||
|
||
public record HashedMojmapVersionV3(String maven, String version, @SerializedName("file_size") long fileSize, Map<String, String> hashes) { | ||
} |
3 changes: 3 additions & 0 deletions
3
src/main/java/org/quiltmc/meta/update/model/v3/IntermediaryVersionV3.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
package org.quiltmc.meta.update.model.v3; | ||
|
||
/** | ||
* No hashes provided here because fabric likes to re-publish intermediary artifacts! | ||
*/ | ||
public record IntermediaryVersionV3(String maven, String version) { | ||
} |
6 changes: 5 additions & 1 deletion
6
src/main/java/org/quiltmc/meta/update/model/v3/QuiltInstallerVersionV3.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package org.quiltmc.meta.update.model.v3; | ||
|
||
public record QuiltInstallerVersionV3(String maven, String version, String url) { | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.util.Map; | ||
|
||
public record QuiltInstallerVersionV3(String maven, String version, String url, @SerializedName("file_size") long fileSize, Map<String, String> hashes) { | ||
} |
6 changes: 5 additions & 1 deletion
6
src/main/java/org/quiltmc/meta/update/model/v3/QuiltLoaderVersionV3.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package org.quiltmc.meta.update.model.v3; | ||
|
||
public record QuiltLoaderVersionV3(String maven, String version, int build, String separator) { | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.util.Map; | ||
|
||
public record QuiltLoaderVersionV3(String maven, String version, int build, String separator, @SerializedName("file_size") long fileSize, Map<String, String> hashes) { | ||
} |
6 changes: 5 additions & 1 deletion
6
src/main/java/org/quiltmc/meta/update/model/v3/QuiltMappingsVersionV3.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
package org.quiltmc.meta.update.model.v3; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.util.Map; | ||
|
||
// TODO remove 'hashed' field in v4? it seems superfluous | ||
public record QuiltMappingsVersionV3(String maven, String version, String gameVersion, int build, String separator, String hashed) { | ||
public record QuiltMappingsVersionV3(String maven, String version, String gameVersion, int build, String separator, String hashed, @SerializedName("file_size") long fileSize, Map<String, String> hashes) { | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/org/quiltmc/meta/update/util/function/ThrowingConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.quiltmc.meta.update.util.function; | ||
|
||
@FunctionalInterface | ||
public interface ThrowingConsumer<T, E extends Throwable> { | ||
|
||
void accept(T t) throws E; | ||
} |
Oops, something went wrong.