diff --git a/CHANGELOG.md b/CHANGELOG.md index f905d529..8af1bc9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,198 @@ +# 1.0.0 (2022-09-01) + + +### Bug Fixes + +* `compareSignatureToMethod` not matching correctly in case opcodes are null ([cca12aa](https://github.com/Thuyen21/revanced-patcher/commit/cca12aa34a60d766c02e55241df847f7d230d4d7)) +* `ConcurrentModificationException` while iterating through `proxies` and modifying it ([6cb7cdb](https://github.com/Thuyen21/revanced-patcher/commit/6cb7cdb0b2a2b954adb04033e0f2d3ccb4604545)) +* `InlineSmaliCompiler.compile` using 0 registers instead of 1 by default ([835a421](https://github.com/Thuyen21/revanced-patcher/commit/835a421cc0588b92c2995e9d74727069d14b1750)) +* `JarPatchBundle` loading non-class files to class loader ([849616d](https://github.com/Thuyen21/revanced-patcher/commit/849616dc2b6e30ec1fa1d8a8f9c1f881fc11676a)) +* `MethodWalker` not accounting for all reference instructions ([48068cb](https://github.com/Thuyen21/revanced-patcher/commit/48068cb3d79e283ff1cad9f3f78dc1d0fcd14f83)) +* `PackageMetadata` ([7399450](https://github.com/Thuyen21/revanced-patcher/commit/739945013962fd80d2635fff126d84046870f956)) +* `replaceWith` not replacing classes with used class proxies ([4178a1e](https://github.com/Thuyen21/revanced-patcher/commit/4178a1eedce1436ffeb3ddd6952ce0b6ec87d5a0)) +* `String.toInstructions` defaulting `forStaticMethod` to `false` ([5a2f02b](https://github.com/Thuyen21/revanced-patcher/commit/5a2f02b97dcde95dbe901fa68cca6c6c0219cb82)), closes [revanced/revanced-patches#46](https://github.com/revanced/revanced-patches/issues/46) +* add docs (trigger release) ([6628b78](https://github.com/Thuyen21/revanced-patcher/commit/6628b7870fc052da40be0d50a7e2b0b6c57743cc)) +* add execute permission to `./gradlew` file ([#46](https://github.com/Thuyen21/revanced-patcher/issues/46)) ([34f607a](https://github.com/Thuyen21/revanced-patcher/commit/34f607aa24d89a777d906cc887203f343ce3fd07)) +* adding existing classes to the patchers cache ([9659a61](https://github.com/Thuyen21/revanced-patcher/commit/9659a61c5c3a84714160b78b32cc337a97c8caa9)) +* always return PatchResultSuccess on patch success ([996c4ac](https://github.com/Thuyen21/revanced-patcher/commit/996c4acb2061db776430ad8b07bfdb3fe32861f6)) +* applying no patches throwing error ([5ca5a1c](https://github.com/Thuyen21/revanced-patcher/commit/5ca5a1c29e087ce7e4b6d5e593b775365803151d)) +* applyPatches not returning successful patches ([f806cb3](https://github.com/Thuyen21/revanced-patcher/commit/f806cb38c571cdd22016396ee1874ee18c91b79f)) +* avoid ignoring test resources (fixes [#1](https://github.com/Thuyen21/revanced-patcher/issues/1)) ([d5a3c76](https://github.com/Thuyen21/revanced-patcher/commit/d5a3c76389ba902c22ddc8b7ba1a110b7ff852df)) +* callback for each file instead of class ([930768d](https://github.com/Thuyen21/revanced-patcher/commit/930768dfb31dc5fa6c248050b08ac117c40ee0a3)) +* callback only when inteded ([e3bf367](https://github.com/Thuyen21/revanced-patcher/commit/e3bf367ad6615b30b06027d65f906b2588567a7f)) +* check if patch option requirement is met ([14a73bf](https://github.com/Thuyen21/revanced-patcher/commit/14a73bfcafac36bce2b8466788d460edde7a14fd)) +* Classes not being written properly because of array shifting ([6e4db11](https://github.com/Thuyen21/revanced-patcher/commit/6e4db110c8fdd16fb0c0ce81f427d84f2a3b6ee0)) +* close open files ([#75](https://github.com/Thuyen21/revanced-patcher/issues/75)) ([123ad54](https://github.com/Thuyen21/revanced-patcher/commit/123ad54c150bd04f4b8ef5c65334ea468ceb99cc)) +* close stream when closing `DomFileEditor` ([77604d4](https://github.com/Thuyen21/revanced-patcher/commit/77604d40785847b775155c0e75b663a3c7336aa3)) +* current must be calculated after increment ([5f12bab](https://github.com/Thuyen21/revanced-patcher/commit/5f12bab5df97fbe6e2e62c1bf2814a2e682ab4f3)) +* dexlib must be propagated ([b738dcd](https://github.com/Thuyen21/revanced-patcher/commit/b738dcd7ea04f5fe56e66af46fb11541fe54f6af)) +* DomFileEditor opening in- and output streams on the same file ([83187c9](https://github.com/Thuyen21/revanced-patcher/commit/83187c9edd7b088bc18960c5eb9a2042ca536b5f)) +* enforce aapt v2 ([b68b0bf](https://github.com/Thuyen21/revanced-patcher/commit/b68b0bf3d735f54b92ad7dad8132f77e9007063f)) +* failing tests temporarily ([fc05fe7](https://github.com/Thuyen21/revanced-patcher/commit/fc05fe79deec2486bb746d33e803ad052e68f8de)) +* fix classes having multiple instances of fields ([7cc8a7d](https://github.com/Thuyen21/revanced-patcher/commit/7cc8a7dec321774c1d3f2f1a87ac91f952c4fb7e)) +* fix classes having multiple method instances ([398239d](https://github.com/Thuyen21/revanced-patcher/commit/398239dc10a3ea04e46adb3be176c897876e5587)) +* Fixed writer & signature resolver, improved tests & speed, minor refactoring ([e6c2501](https://github.com/Thuyen21/revanced-patcher/commit/e6c2501539540301d5b70014de460e5452a09b04)) +* fuzzy resolver warning params were turned around ([e5bea06](https://github.com/Thuyen21/revanced-patcher/commit/e5bea06353805f004d607124a8ebed138f84d583)) +* give ClassWriter a ClassReader for symtable ([41749ba](https://github.com/Thuyen21/revanced-patcher/commit/41749ba8290b2dec5dd2ab6e0bc9d714887a1a05)) +* goodbye security ([8f3ac77](https://github.com/Thuyen21/revanced-patcher/commit/8f3ac7702a2b3ee98c55aeac6a1b9972f99664cc)) +* **gradle:** publish source and javadocs ([c236ebe](https://github.com/Thuyen21/revanced-patcher/commit/c236ebe0789f9c78d610769f0feda2b64fa4a128)) +* handle null properly ([#64](https://github.com/Thuyen21/revanced-patcher/issues/64)) ([482af78](https://github.com/Thuyen21/revanced-patcher/commit/482af78f2ba23b8003fc9961df5fde54d7295d5c)) +* incorrect pattern offset ([f3b5f67](https://github.com/Thuyen21/revanced-patcher/commit/f3b5f67b395167c1b9411b2374f3ef584b57b6cf)) +* invert fingerprint resolution condition of `customFingerprint` ([e2faf4c](https://github.com/Thuyen21/revanced-patcher/commit/e2faf4ca9b6de23300b20ab471ee9dc365b04339)) +* **Io:** fix finding classes by name ([b957501](https://github.com/Thuyen21/revanced-patcher/commit/b957501e709028005c4d6c7857022980205b6861)) +* **Io:** JAR loading and saving ([#8](https://github.com/Thuyen21/revanced-patcher/issues/8)) ([310a7c4](https://github.com/Thuyen21/revanced-patcher/commit/310a7c446b547d84b02c5da2161958e77ce69f0d)) +* make `methodMetadata` nullable in `MethodSignatureMetadata` ([4e56652](https://github.com/Thuyen21/revanced-patcher/commit/4e566524299674426fb0344d09db3b0c1cb3d300)) +* make warnings nullable instead of lateinit ([8f1a629](https://github.com/Thuyen21/revanced-patcher/commit/8f1a629191668e05917dc797e486647e55276d59)) +* match to correct signature method parameters ([1ee2e4b](https://github.com/Thuyen21/revanced-patcher/commit/1ee2e4ba56097c5e06c93c9ce04cb5543f0e4a67)) +* **MethodResolver:** fix cd57a8c9a0db7e3ae5ad0bca202e5955930319ab ([cbd8df2](https://github.com/Thuyen21/revanced-patcher/commit/cbd8df2df008ef37c6b43e2a8442c41f24be9358)) +* **MethodResolver:** strip labels and line numbers so opcode patterns match ([699c730](https://github.com/Thuyen21/revanced-patcher/commit/699c730a7cecf31878827d645e845490a37de4cb)) +* **MethodResolver:** strip labels nodes so opcode patterns match ([82c5306](https://github.com/Thuyen21/revanced-patcher/commit/82c530650f926dd026d263cfe23a7d67cb27bbf2)) +* MethodSignature#resolved throwing an exception ([c612676](https://github.com/Thuyen21/revanced-patcher/commit/c612676543282155143471b71a095e26023806ea)) +* missing additional items [skip ci] ([0ebab8b](https://github.com/Thuyen21/revanced-patcher/commit/0ebab8bf598d993df6e340651205cba48f1ef725)) +* more useful error message ([4b2e323](https://github.com/Thuyen21/revanced-patcher/commit/4b2e3230ec74fa3a57ae86067e5cb7cecbe45013)) +* Move proxy package out of cache package ([ce21bd6](https://github.com/Thuyen21/revanced-patcher/commit/ce21bd60f34d78b94d6d85f2c5375bc934ed4091)) +* mutability of local variable `modified` ([0e87ef5](https://github.com/Thuyen21/revanced-patcher/commit/0e87ef56c418d5c37d58abb9b27f85e25fd44f81)) +* null check causing an exception ([338bd9f](https://github.com/Thuyen21/revanced-patcher/commit/338bd9f7394afd84e5e195a7f8155c813812cfb5)) +* nullable signature members ([#10](https://github.com/Thuyen21/revanced-patcher/issues/10)) ([674461f](https://github.com/Thuyen21/revanced-patcher/commit/674461f08daabbf92cb54e4eadb408226fac47af)) +* Patch should have access to the Cache ([4dd820f](https://github.com/Thuyen21/revanced-patcher/commit/4dd820ffdf1b98fe41b50f7cb2670b89acfbb99d)) +* Patcher not writing resolved methods ([fac44a5](https://github.com/Thuyen21/revanced-patcher/commit/fac44a50c39d8c102bd3e7ca4dd1bb86d29f7b57)) +* Patcher setting BuildOptions too late ([6a5c873](https://github.com/Thuyen21/revanced-patcher/commit/6a5c8735fb8a5d6f7e9c606734b6684c7fa99e7f)) +* qualifying `Element` with wrong package ([024fa86](https://github.com/Thuyen21/revanced-patcher/commit/024fa867e115f984cfa3e395b78f4f43aa81709b)) +* reaching all constructors not possible ([c459beb](https://github.com/Thuyen21/revanced-patcher/commit/c459beb5f898d797f2f03ed36326bd9cfad03d31)) +* reformat (trigger release) ([bf48945](https://github.com/Thuyen21/revanced-patcher/commit/bf4894592bf9ee9c6233abc91f538b7b8ef986a0)) +* remove broken code ([0e72a6e](https://github.com/Thuyen21/revanced-patcher/commit/0e72a6e85ff9a6035510680fc5e33ab0cd14144f)) +* remove dependency to fork of Apktool ([11abc67](https://github.com/Thuyen21/revanced-patcher/commit/11abc67d9ab7d7b273fd4cd4c53af54008a80585)) +* remove javadoc jar (also trigger release) ([56f6ca3](https://github.com/Thuyen21/revanced-patcher/commit/56f6ca38919b522c0d5558eabffa4aee41cc0b0b)) +* remove leftover debug code ([0f30eac](https://github.com/Thuyen21/revanced-patcher/commit/0f30eac32ce66d8b90906c02ef7e7854feeecc33)) +* remove requirement for solution [skip ci] ([#80](https://github.com/Thuyen21/revanced-patcher/issues/80)) ([9a4d30e](https://github.com/Thuyen21/revanced-patcher/commit/9a4d30e15234ef62844f035c58a1143674d4c12e)) +* resource patcher ([31815ca](https://github.com/Thuyen21/revanced-patcher/commit/31815ca9ea990f16b3600d61fd570c1805be1c82)) +* return mutable set of classes ([66a9b76](https://github.com/Thuyen21/revanced-patcher/commit/66a9b768457e98fdde0b61f9a8d6aed4c1872027)) +* return resourceFile to caller ([1f75777](https://github.com/Thuyen21/revanced-patcher/commit/1f75777cf985bf08483033ec541937d3e733347b)) +* returning failure on success ([48c4ea2](https://github.com/Thuyen21/revanced-patcher/commit/48c4ea2f6d9de319383a49ea2d4c6ffb4f687a2b)) +* revert soft dependencies ([7b2d058](https://github.com/Thuyen21/revanced-patcher/commit/7b2d058144b0718992d329731e2af7cc704e4370)) +* Search method map for existing class proxy ([a1e909b](https://github.com/Thuyen21/revanced-patcher/commit/a1e909b16337c538f8f8b475801d8b1804163bfe)) +* set index for insertAt to 0 by default ([d5b4c99](https://github.com/Thuyen21/revanced-patcher/commit/d5b4c99c00272e3e5afec2fa0a489ba618f2a81a)) +* set marklimit to Integer.MAX_VALUE ([e6e468f](https://github.com/Thuyen21/revanced-patcher/commit/e6e468fbb5c20b08c8bd59bafc794acea907e4b4)) +* show error message if cause is null ([f9da2ad](https://github.com/Thuyen21/revanced-patcher/commit/f9da2ad531644617ad5a2cc6a1819d530e18ba22)) +* show error message instead of `null` ([8d95b14](https://github.com/Thuyen21/revanced-patcher/commit/8d95b14f350b47ec029f35e776f6e627aaf5f607)) +* string signature in `SignatureResolver` ([e5ae970](https://github.com/Thuyen21/revanced-patcher/commit/e5ae9700096924e63b15a08079dce40ae07202d8)) +* Suppress unused for addFiles ([3d6a1d3](https://github.com/Thuyen21/revanced-patcher/commit/3d6a1d38f339ce2c5d82b7ac46c208c6702d6d44)) +* throwing in case the opcode patterns do not match ([3144ec8](https://github.com/Thuyen21/revanced-patcher/commit/3144ec872ac8651b8c0a9311ae508d5c3cc734ce)) +* update apktool ([ab866bb](https://github.com/Thuyen21/revanced-patcher/commit/ab866bb8ef4792d8f2a51edc79e687b5b636c621)) +* update apktool ([051afd9](https://github.com/Thuyen21/revanced-patcher/commit/051afd98d065f71556392139d77c20b4c2dc7dd1)) +* update apktool to fork ([566ecef](https://github.com/Thuyen21/revanced-patcher/commit/566ecefa2bd4cde5ebfb2b22dc56cd8bf9f396bd)) +* use `Exception` instead of `MethodNotFoundException` ([2fc4ec4](https://github.com/Thuyen21/revanced-patcher/commit/2fc4ec40217a917ea6106ddc87be332f725aa13c)) +* use Array instead of Iterable for methodParameters ([dfac8f0](https://github.com/Thuyen21/revanced-patcher/commit/dfac8f03a362fd273527f552d9eae121505fd4e0)) +* using old instance of `Androlib` when saving ([a4d8be2](https://github.com/Thuyen21/revanced-patcher/commit/a4d8be20fcd444b08ec9c43f9f7029f8bacbbc41)) +* version not working with apktool due to cache ([03f5ee0](https://github.com/Thuyen21/revanced-patcher/commit/03f5ee088b1b96b88cb7aeb323443b6209a13950)) +* workflow on dev branch ([428f7f4](https://github.com/Thuyen21/revanced-patcher/commit/428f7f4decb00d28c9bf137ef4cd1d5fd4a0821e)) +* write all classes ([f068fc8](https://github.com/Thuyen21/revanced-patcher/commit/f068fc87ff8e204826639318af39e48e683254da)) + + +### Code Refactoring + +* bump multidexlib2 to 2.5.2.r2 ([a6c6b49](https://github.com/Thuyen21/revanced-patcher/commit/a6c6b4979af42936cb26608541a4f7a66393b3f0)) +* Change all references from Array to Iterable ([72f3cad](https://github.com/Thuyen21/revanced-patcher/commit/72f3cad3f98001b0109b07373ed9cc57a9001cfa)) +* convert Patch to abstract class ([cb9b1b9](https://github.com/Thuyen21/revanced-patcher/commit/cb9b1b9416c699c68d0fca228d4f8ca6fb634cb5)) +* migrate from `Signature` to `Fingerprint` ([efa8ea1](https://github.com/Thuyen21/revanced-patcher/commit/efa8ea144528fcff588e782468845c315a7d6abd)) +* Optimize Signature class ([#11](https://github.com/Thuyen21/revanced-patcher/issues/11)) ([7faa001](https://github.com/Thuyen21/revanced-patcher/commit/7faa001406c1f28dc2182cf6d1ab19504f4e3eb9)) +* Rename `net.revanced` to `app.revanced` ([7087230](https://github.com/Thuyen21/revanced-patcher/commit/70872307e33282b37dd5fb315b56022ab73bf582)) + + +### Features + +* `Closeable` patches ([bbd40bf](https://github.com/Thuyen21/revanced-patcher/commit/bbd40bf2f6ff200705f2bcb272dd1680bb244e3f)) +* `Dependencies` annotation ([893d4c6](https://github.com/Thuyen21/revanced-patcher/commit/893d4c699bad4c70002fc691c261447d01948b5c)) +* `parametersCount` for `InlineSmaliCompiler` instead of `parameters` ([ad6c5c8](https://github.com/Thuyen21/revanced-patcher/commit/ad6c5c827389d10eae473dc66557a699df8c3280)) +* `PatchLoader` ([ec9fd15](https://github.com/Thuyen21/revanced-patcher/commit/ec9fd15f9b9b9968be7fb5cb384eb8ee2a0c9ba3)) +* Add `findParentMethod` utility method ([#4](https://github.com/Thuyen21/revanced-patcher/issues/4)) ([bbb2c54](https://github.com/Thuyen21/revanced-patcher/commit/bbb2c547aae8dd774a1a883de24fe45da463fa35)) +* add `MethodWalker` ([7755bbc](https://github.com/Thuyen21/revanced-patcher/commit/7755bbc645773e49053fb9ad2b6fd18a7f488659)) +* add `p` naming scheme to smali compiler ([79909cf](https://github.com/Thuyen21/revanced-patcher/commit/79909cf260c0578e88ad22d63397957dbaa91702)) +* add extensions for cloning methods ([01bfbd6](https://github.com/Thuyen21/revanced-patcher/commit/01bfbd656ee06cb2cab951c43d7f76a465a40830)) +* add findClass method with className ([4087f49](https://github.com/Thuyen21/revanced-patcher/commit/4087f498638ee88ba3eaca792039fe481f404732)) +* Add first tests ([544bcf7](https://github.com/Thuyen21/revanced-patcher/commit/544bcf76bd8a8c790c2f799606ad8c9ac7d2aa82)) +* add fuzzy resolver ([7a56dca](https://github.com/Thuyen21/revanced-patcher/commit/7a56dca004cd793121a59ea854c77f4c1a01bd6f)) +* add getValue & setValue for PatchOption ([2572cd0](https://github.com/Thuyen21/revanced-patcher/commit/2572cd04b5da4eeae738c8dde31493177edf0bf8)) +* add immutableMethod ([c63b20f](https://github.com/Thuyen21/revanced-patcher/commit/c63b20fa65aba8bb060a4a7a652747cba7198c2b)) +* add inline smali compiler ([bfe4e3e](https://github.com/Thuyen21/revanced-patcher/commit/bfe4e3e298ac963936ca9621e12aefbe56260826)) +* add missing test for fields ([6b8b057](https://github.com/Thuyen21/revanced-patcher/commit/6b8b0573d479e227b45dc36a6abac622c3ccebdd)) +* add or extension for AccessFlags ([00c85b5](https://github.com/Thuyen21/revanced-patcher/commit/00c85b5d750ccc8de69ad4101220b19eeaf99bcb)) +* Add patch metadata ([642e903](https://github.com/Thuyen21/revanced-patcher/commit/642e9031eb3727ebdca22c75b7c5c602a8775da0)), closes [ReVancedTeam/revanced-patches#1](https://github.com/ReVancedTeam/revanced-patches/issues/1) +* add Patch#dependsOn extension ([523f67b](https://github.com/Thuyen21/revanced-patcher/commit/523f67b238646caaa9b7676a0e238ce82adbdda4)) +* add replace and remove extensions ([#50](https://github.com/Thuyen21/revanced-patcher/issues/50)) ([92ac5e4](https://github.com/Thuyen21/revanced-patcher/commit/92ac5e4dc25f612856e2b5e528cf5fd48a5f20af)) +* add SafeClassWriter ([6626014](https://github.com/Thuyen21/revanced-patcher/commit/6626014ef3dde2f98a53f75d71eeb0de85189bf3)) +* Add warnings for Fuzzy resolver ([715a2ad](https://github.com/Thuyen21/revanced-patcher/commit/715a2ad025d127b5a8225ce50202a859f53c7f50)) +* allow classes to be overwritten in addFiles and resolve signatures when applyPatches is called ([1db735b](https://github.com/Thuyen21/revanced-patcher/commit/1db735b1e2b570bdb1ddce0b9cd724c580113a84)) +* allow custom aapt path to be specified ([8eb4a8f](https://github.com/Thuyen21/revanced-patcher/commit/8eb4a8f87ae7679a272f3224273a37a31d4bb121)) +* allow custom framework path to be specified ([d3a580e](https://github.com/Thuyen21/revanced-patcher/commit/d3a580ea19d7c2d5d8c97650b1e6396ea0a7fc25)) +* Allow unknown opcodes using `null` ([0e5f4ba](https://github.com/Thuyen21/revanced-patcher/commit/0e5f4ba2d55288415c4d1be70ab6a8ab8c1c0d10)) +* exclusive mutable access to files ([814ce0b](https://github.com/Thuyen21/revanced-patcher/commit/814ce0b9ae29725417c86b7d11b40d025724a426)) +* feature request issue template ([1b39278](https://github.com/Thuyen21/revanced-patcher/commit/1b39278b24ba2f964d93bd8ad2e28472ee036d90)) +* Finish first patcher test ([0d8d19e](https://github.com/Thuyen21/revanced-patcher/commit/0d8d19e708a47315e28e7493618568ea40f1e062)) +* Improve `SignatureResolver` ([139a23b](https://github.com/Thuyen21/revanced-patcher/commit/139a23b7500a2d2577df47caf3fd0c5ec891a8d8)) +* improve logging ([c20dfe1](https://github.com/Thuyen21/revanced-patcher/commit/c20dfe12d5c737264b844e6634de11bf1e1629f0)) +* Improve Smali Compiler ([6bfe571](https://github.com/Thuyen21/revanced-patcher/commit/6bfe5716c38181bbe9476b5c6ad29526edb4e022)) +* issue templates [skip ci] ([112bc99](https://github.com/Thuyen21/revanced-patcher/commit/112bc998f4761a647cb9eab7454e35264fa96fd9)) +* log failed patches due to failed dependencies ([a467fbb](https://github.com/Thuyen21/revanced-patcher/commit/a467fbb704eebe812cdec14025398dab2af43959)) +* logging class ([caf2745](https://github.com/Thuyen21/revanced-patcher/commit/caf2745805ffd4b59fa81e79cc489b1a1a5c5d89)) +* migrate logger to `slf4j` ([8f66f9f](https://github.com/Thuyen21/revanced-patcher/commit/8f66f9f606a785ac947b0e553822877f211d82df)) +* migrate to `DexPatchBundle` and `JarPatchBundle` ([8615798](https://github.com/Thuyen21/revanced-patcher/commit/8615798711185b30ce622d9d09faba21f3a92f97)) +* migrate to dexlib ([3651981](https://github.com/Thuyen21/revanced-patcher/commit/36519811610192e299834e9d00627a94faad56a9)) +* Minor refactor and return proxy, if class has been proxied already ([4b26305](https://github.com/Thuyen21/revanced-patcher/commit/4b26305bd57ba9e3eb3e34218ffe10d6c5a2f598)) +* nullability for `BytecodePatch` constructor ([#59](https://github.com/Thuyen21/revanced-patcher/issues/59)) ([4ea030d](https://github.com/Thuyen21/revanced-patcher/commit/4ea030d0a03f736bbecbd491317ba2167b18fe94)) +* nullable parameters ([7882a8d](https://github.com/Thuyen21/revanced-patcher/commit/7882a8d928cad8de8cfea711947fc02659549d20)) +* optional `forStaticMethod` parameter for `InlineSmaliCompiler.compileMethodInstructions` ([41e8860](https://github.com/Thuyen21/revanced-patcher/commit/41e88605c33d1f0d9e7f5466cac03a3b339afb82)) +* patch dependencies annotation and `PatcherOptions` ([6c65952](https://github.com/Thuyen21/revanced-patcher/commit/6c65952d80a795a3ef4a37877123e9375025d3ae)) +* patch options ([#81](https://github.com/Thuyen21/revanced-patcher/issues/81)) ([fbb09f3](https://github.com/Thuyen21/revanced-patcher/commit/fbb09f38dce49adc7f63b71bdf2df2ef0b84db04)) +* PatchOptions#nullify to nullify an option ([371f0c4](https://github.com/Thuyen21/revanced-patcher/commit/371f0c4d0bf96e7f6db35085efccaed3000a096c)) +* properly manage `ClassProxy` & add `ProxyBackedClassList` ([6cb1fdf](https://github.com/Thuyen21/revanced-patcher/commit/6cb1fdf6171e1ab75b7ee28163965eacc00cc5a0)) +* registry for patch options ([2431785](https://github.com/Thuyen21/revanced-patcher/commit/2431785d0e494d6271c6951eec9adfff9db95c17)) +* remaining mutable `EncodedValue` classes ([3f97cc8](https://github.com/Thuyen21/revanced-patcher/commit/3f97cc8e1fa10546d7069e01e5e66a537b0d6f7e)) +* remove deprecated functions ([ada5a03](https://github.com/Thuyen21/revanced-patcher/commit/ada5a033de3cf94e7255ec2d522520f86431f001)) +* return a `File` instance instead of `ExtFile` ([68174bb](https://github.com/Thuyen21/revanced-patcher/commit/68174bbd6b4df47a91b610c2b97dbae55b594163)) +* simplify adding instructions ([e47b67d](https://github.com/Thuyen21/revanced-patcher/commit/e47b67d7ec521f288644afb89baf4146dc9bc87d)) +* Soft Dependencies for Patches ([8c12f8d](https://github.com/Thuyen21/revanced-patcher/commit/8c12f8d488f939cc932e826aad0b20876ae165b7)) +* streams overload for `XmlFileHolder` ([6f72c4c](https://github.com/Thuyen21/revanced-patcher/commit/6f72c4c4c051e48c8d03d2a7b2cfc1c53028ed86)) +* string signature ([#22](https://github.com/Thuyen21/revanced-patcher/issues/22)) ([612515a](https://github.com/Thuyen21/revanced-patcher/commit/612515acf8539febf952f258d30aa3d4b631e3b7)) +* use annotations instead of metadata objects ([d20f7fd](https://github.com/Thuyen21/revanced-patcher/commit/d20f7fd6e1ede6ec7baccb1500ab3fc66d78df73)) +* use streams to write the dex files ([64bae88](https://github.com/Thuyen21/revanced-patcher/commit/64bae884dcb72550a3218e149f3ca0fd0ca03aaf)) +* utility functions to get metadata of patch & sigs ([54511a4](https://github.com/Thuyen21/revanced-patcher/commit/54511a4fc6417d7fe0c868d441e7d6b0ec9e218d)) +* validator for patch options ([4e2e772](https://github.com/Thuyen21/revanced-patcher/commit/4e2e77238957d7732326cfe5e05145bf7dab5bfb)) +* yield the patch result ([dde5385](https://github.com/Thuyen21/revanced-patcher/commit/dde5385232abddc8a85d6e9a939549b71dd9130e)) + + +### Performance Improvements + +* check type instead of class ([c7ef264](https://github.com/Thuyen21/revanced-patcher/commit/c7ef2644d83e1d8e84decb0631a6549d394180fc)) +* decode manifest only when not using resource patcher ([4f60bea](https://github.com/Thuyen21/revanced-patcher/commit/4f60bea81e0bbe85dc6c3150238980292a1e52ab)) +* depend on `androlib` instead of `ApkDecoder` ([cc9416d](https://github.com/Thuyen21/revanced-patcher/commit/cc9416dd11b66140c2882021cbe5088659d85371)) +* do not resolve empty signatures list ([b1eebc9](https://github.com/Thuyen21/revanced-patcher/commit/b1eebc99a71269df33c37f35c1f56ea20a9d6bc0)) +* lazy-ify all mutable clones ([d18a3b6](https://github.com/Thuyen21/revanced-patcher/commit/d18a3b6a28cae4fcb1c4986903208298ee50b083)) +* optimize indexOf call away ([9991f39](https://github.com/Thuyen21/revanced-patcher/commit/9991f39c9a4fa22a221aab0bbf9e08ca7f967fa9)) +* use Set instead of List since there are no dupes ([e65ebd2](https://github.com/Thuyen21/revanced-patcher/commit/e65ebd27c250b1735acf73af0f6b03274b0137f6)) +* use String List and compare instead of any lambda ([5bd416b](https://github.com/Thuyen21/revanced-patcher/commit/5bd416b409290906a6378344f70391e8692ae27f)) + + +### Reverts + +* "fix: enforce aapt v1" ([dfd8a24](https://github.com/Thuyen21/revanced-patcher/commit/dfd8a245124f85b1b028bbba197c70c8dca689b6)) +* AccessFlag extensions not working with IDE ([0bfb92a](https://github.com/Thuyen21/revanced-patcher/commit/0bfb92a0cbd72df5ba513264efb583e201cfcf82)) +* previous commits check for dupes in dexFile, not cache ([e810197](https://github.com/Thuyen21/revanced-patcher/commit/e810197e2aa64534f2e8637165d884cbefbce8ae)) +* propagate dependencies ([365e1d7](https://github.com/Thuyen21/revanced-patcher/commit/365e1d7a4507b918a4c8170ce2c88f6c8ff1d474)) + + +### BREAKING CHANGES + +* Patch options now use the PatchOptions registry class instead of an Iterable. This change requires modifications to existing patches using this API. +* Not backwards compatible, since a lot of classes where renamed. +* arrayOf has to be changed to listOf. +* Method signature of Patcher#save() was changed to comply with the changes of multidexlib2. +* Removed usage of ASM library +* Array was changed to IntArray. This breaks existing patches. +* Package name was changed from "net.revanced" to "app.revanced" +* Method signature of execute() was changed to include the cache, this will break existing implementations of the Patch class. +* Patch class is now an abstract class. You must implement it. You can use anonymous implements, like done in the tests. + # [3.4.0](https://github.com/revanced/revanced-patcher/compare/v3.3.3...v3.4.0) (2022-08-31) diff --git a/gradle.properties b/gradle.properties index 5649e605..eefcc6a0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ kotlin.code.style = official -version = 3.4.0 +version = 1.0.0