-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
109 changed files
with
1,873 additions
and
691 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,3 @@ | ||
# See https://help.github.com/articles/about-codeowners/ | ||
|
||
* @jamierocks |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,9 @@ subprojects { | |
sourceCompatibility = '1.8' | ||
targetCompatibility = '1.8' | ||
|
||
group = 'me.jamiemansfield' | ||
group = 'org.cadixdev' | ||
archivesBaseName = project.name.toLowerCase() | ||
version = '0.4.4' | ||
version = '0.5.0' | ||
|
||
repositories { | ||
mavenCentral() | ||
|
@@ -36,6 +36,10 @@ subprojects { | |
testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.2.0' | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} | ||
|
||
license { | ||
header = rootProject.file('HEADER.txt') | ||
} | ||
|
@@ -70,12 +74,6 @@ subprojects { | |
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
// repo.jamiemansfield.me | ||
if (System.getenv('MAVEN_RELEASES') != null && System.getenv('MAVEN_SNAPSHOTS') != null) { | ||
repository(url: 'file://' + System.getenv('MAVEN_RELEASES')) | ||
snapshotRepository(url: 'file://' + System.getenv('MAVEN_SNAPSHOTS')) | ||
} | ||
|
||
// Maven Central | ||
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
@@ -100,14 +98,14 @@ subprojects { | |
inceptionYear = project.inceptionYear | ||
|
||
scm { | ||
url = 'https://github.com/jamiemansfield/Lorenz' | ||
connection = 'scm:git:https://github.com/jamiemansfield/Lorenz.git' | ||
developerConnection = 'scm:git:[email protected]:jamiemansfield/Lorenz.git' | ||
url = 'https://github.com/CadixDev/Lorenz' | ||
connection = 'scm:git:https://github.com/CadixDev/Lorenz.git' | ||
developerConnection = 'scm:git:[email protected]:CadixDev/Lorenz.git' | ||
} | ||
|
||
issueManagement { | ||
system = 'GitHub' | ||
url = 'https://github.com/jamiemansfield/Lorenz/issues' | ||
url = 'https://github.com/CadixDev/Lorenz/issues' | ||
} | ||
|
||
licenses { | ||
|
@@ -135,5 +133,5 @@ subprojects { | |
} | ||
|
||
task wrapper(type: Wrapper) { | ||
gradleVersion = '4.1' | ||
gradleVersion = '4.10' | ||
} |
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,51 @@ | ||
Lorenz 0.5.0 | ||
=========== | ||
|
||
Lorenz 0.5.0 has enjoyed a long development process (beginning the 1st of September!), | ||
and packs a bundle of cool changes. The most notable being the change of package, from | ||
`me.jamiemansfield.lorenz` to `org.cadixdev.lorenz`. | ||
|
||
## Modularisation | ||
|
||
The long put-off modularisation has finally arrived - with the Enigma, JAM, and Kin | ||
mapping formats being given their own modules. | ||
|
||
- Enigma: `org.cadixdev:lorenz-io-enigma:0.5.0` | ||
- JAM: `org.cadixdev:lorenz-io-jam:0.5.0` | ||
- Kin: `org.cadixdev:lorenz-io-kin:0.5.0` | ||
|
||
Mapping formats can be introduced through service providers, and `MappingFormats` will | ||
populate a registry with all the formats found. You can get a mapping format, like the | ||
following: | ||
|
||
```java | ||
final MappingFormat enigma = MappingFormats.byId("enigma"); | ||
final MappingFormat jam = MappingFormats.byId("jam"); | ||
final MappingFormat kin = MappingFormats.byId("kin"); | ||
``` | ||
|
||
## Merging and reversing | ||
|
||
Mapping sets can now be reversed (`A->B` -> `B->A`), and mapping sets merged | ||
(`A->B` + `B->C` = `A->C`). This can be achieved like the following. | ||
|
||
```java | ||
// let a be a MappingSet | ||
// let b be a MappingSet | ||
|
||
final MappingSet reversed = a.reverse(); | ||
final MappingSet merged = a.merge(b); | ||
``` | ||
|
||
## Extension Data | ||
|
||
Lorenz now supports adding extension data to the mapping model (**no existing formats serialise this | ||
information**). | ||
|
||
```java | ||
static final ExtensionKey<String> EXTRA_NAME = new ExtensionKey<>(String.class, "extra_name"); | ||
|
||
final MappingSet mappings = new MappingSet(); | ||
mappings.set(EXTRA_NAME, "Beep Boop"); | ||
mappings.get(EXTRA_NAME).get(); // Beep Boop | ||
``` |
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,8 +1,7 @@ | ||
# Project Information | ||
name = Lorenz | ||
description = A library for modelling, creating, and manipulating Java de-obfuscation mappings. | ||
url = https://www.jamiemansfield.me/projects/lorenz | ||
inceptionYear = 2016 | ||
|
||
# Build Settings | ||
bombeVersion = 0.2.0 | ||
bombeVersion = 0.3.0 |
Binary file not shown.
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,6 +1,5 @@ | ||
#Sat Aug 12 17:37:03 BST 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip |
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,4 @@ | ||
dependencies { | ||
compile project(':lorenz') | ||
compile "me.jamiemansfield:bombe-asm:${rootProject.bombeVersion}" | ||
compile "org.cadixdev:bombe-asm:${rootProject.bombeVersion}" | ||
} |
152 changes: 0 additions & 152 deletions
152
lorenz-asm/src/main/java/me/jamiemansfield/lorenz/asm/LorenzRemapper.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.