-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: switch version, run workflow for upcoming version snapshots * feat(generator-web-cli): namespace configuration * perf: intern strings * fix(generator-web-cli): add missing CB version replacement call * feat: support for Quilt mappings (#33) * feat: support for Quilt Mappings * refactor(core): remove Fabric-only code from Quilt implementation * fix(core): log "quilt mappings" instead of just "quilt" * fix(core): fix missing license header * fix(generator-accessor-plugin): fix Quilt being missing from namespaceFriendlinessIndex * refactor(core): remove Fabric remnants from QuiltMetadataProvider and QuiltMappingResolver chore(core): lowercase Quilt mappings, fix typo * feat: support for Quilt Hashed mappings * fix: remove Hashed from default ancestry namespace list fix: add Hashed to namespace friendliness index * fix(accessor-generator-plugin): remove edit remnant --------- Co-authored-by: Matouš Kučera <[email protected]> * feat(core): validate SHA1 hashes of Yarn and Quilt cached metadata (#35) * fix(generator-web-cli): mismatching joined output cache * refactor: improve concurrency model * chore: update license headers * refactor: misc * feat(generator-accessor): add `@since` and `@version` tags to generated javadocs (#38) * feat(generator-accessor): naming strategy (#39) * feat(generator-accessor): introduction of naming strategy * style(generator-accessor): this todo is useless since it has been fixed elsewhere Probably not the best way to fix that tho * feat(generator-accessor): additional naming strategies + licenses * fix(generator-accessor): fix generation * build: updated gradle, kotlin-conventions and -Xjvm-default flag * feat(generator-accessor): specifying custom package containing generator-accessor-runtime module * fix(generator-accessor): groovy dsl compatibility with StandardNamingStrategies enum * refactor: improve API, untested * fix: de-parallelize `AccessorGenerator` Fixes non-deterministic behavior of name conflict resolution, I don't think parallelization makes that much of a difference anyway. * deps: Kotlin, ASM, Jackson, KotlinPoet, SLF4J, Shadow * build: release 1.1.2 * refactor: re-add missing strategies, make them serializable * fix: pass correct input into `generateLookupClass` * feat(generator-accessor-plugin): add naming strategy shortcuts --------- Co-authored-by: Matouš Kučera <[email protected]> * feat(generator-accessor-plugin): namespace configuration * [ci skip] fix: deprecated usage in example * fix(generator-accessor): prevent KotlinPoet from wrapping references * refactor(generator-accessor-plugin): `versions` -> `version` * chore(generator-web): bump Java API doc version * fix(generator-accessor-plugin): wrong source type * fix(generator-accessor): prevent KotlinPoet from wrapping references * fix(generator-accessor): escape Kotlin names in lookup class * feat(generator-accessor): merge chained accessors into single accessor field (#40) * feat(generator-accessor): merge chained accessors into single accessor field * fix(generator-accessor): fix javadoc format * fix(generator-accessor): squash mappings as well, standalone counter for put mappings and accessor fields * feat(generator-accessor): kotlin support * style(generator-accessor): use filter and mutableListOf * refactor(generator-accessor): extract some common code from Java and Kotlin generation context * fix(generator-accessor): Kdoc generation for *Mapping classes * refactor(generator-accessor): improve chain resolving logic Co-authored-by: Matouš Kučera <[email protected]> * fix(generator-accessor): fucking whitespace * refactor: simplify --------- Co-authored-by: Matouš Kučera <[email protected]> * refactor: prepare to make Jackson an implementation detail * deps: update `kotlin-logging-jvm` * deps: bump Kotlin Coroutines and KotlinPoet * [ci skip] fix: doc mistakes * fix(generator-accessor): improve chain tracing * fix(generator-accessor): group method descriptors exactly when tracing * fix(generator-accessor): this logic was needed * feat(generator-accessor): add mapping website link to accessors *doc (#45) * feat(generator-accessor): add mapping website link to accessors *doc * chore(generator-accessor): use toInternalName extension function --------- Co-authored-by: Florentin Schleuß <[email protected]> Co-authored-by: Misat11 <[email protected]>
- Loading branch information
1 parent
302a0e2
commit 5f17c0c
Showing
68 changed files
with
2,993 additions
and
1,078 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- 'ver/**' | ||
|
||
jobs: | ||
build: | ||
|
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
9 changes: 9 additions & 0 deletions
9
build-logic/src/main/kotlin/takenaka.kotlin-conventions.gradle.kts
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,9 @@ | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
apply(plugin = "org.jetbrains.kotlin.jvm") | ||
|
||
tasks.withType<KotlinCompile> { | ||
kotlinOptions { | ||
freeCompilerArgs = listOf("-Xjvm-default=all-compatibility") | ||
} | ||
} |
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,10 +1,9 @@ | ||
plugins { | ||
id("takenaka.base-conventions") | ||
alias(libs.plugins.kotlin.jvm) apply false | ||
} | ||
|
||
allprojects { | ||
group = "me.kcra.takenaka" | ||
version = "1.1.4" | ||
version = "1.2.0-SNAPSHOT" | ||
description = "A Kotlin library for reconciling multiple obfuscation mapping files from multiple versions of Minecraft: JE." | ||
} |
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
50 changes: 50 additions & 0 deletions
50
core/src/main/kotlin/me/kcra/takenaka/core/mapping/adapter/StringPoolingAdapter.kt
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,50 @@ | ||
/* | ||
* This file is part of takenaka, licensed under the Apache License, Version 2.0 (the "License"). | ||
* | ||
* Copyright (c) 2023-2024 Matous Kucera | ||
* | ||
* You may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package me.kcra.takenaka.core.mapping.adapter | ||
|
||
import net.fabricmc.mappingio.MappedElementKind | ||
import net.fabricmc.mappingio.MappingVisitor | ||
import net.fabricmc.mappingio.adapter.ForwardingMappingVisitor | ||
|
||
/** | ||
* Pools element name and descriptor strings (using [String.intern]). | ||
* | ||
* @param next the visitor to delegate to | ||
* @author Matouš Kučera | ||
*/ | ||
class StringPoolingAdapter(next: MappingVisitor) : ForwardingMappingVisitor(next) { | ||
override fun visitClass(srcName: String?): Boolean { | ||
return super.visitClass(srcName?.intern()) | ||
} | ||
|
||
override fun visitField(srcName: String?, srcDesc: String?): Boolean { | ||
return super.visitField(srcName?.intern(), srcDesc?.intern()) | ||
} | ||
|
||
override fun visitMethod(srcName: String?, srcDesc: String?): Boolean { | ||
return super.visitMethod(srcName?.intern(), srcDesc?.intern()) | ||
} | ||
|
||
override fun visitDstName(targetKind: MappedElementKind?, namespace: Int, name: String?) { | ||
super.visitDstName(targetKind, namespace, name?.intern()) | ||
} | ||
|
||
override fun visitDstDesc(targetKind: MappedElementKind?, namespace: Int, desc: String?) { | ||
super.visitDstDesc(targetKind, namespace, desc?.intern()) | ||
} | ||
} |
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
Oops, something went wrong.