272 Commits

Author SHA1 Message Date
Sculas
b873228ef0
fix: invalid type propagation in options
Fixes #98
2022-09-08 16:49:06 +02:00
Sculas
76c45dd7c1
fix: make patcher version public 2022-09-08 14:49:26 +02:00
Sculas
25f74dc5e9
feat: SincePatcher annotation 2022-09-08 14:41:42 +02:00
Sculas
6e73631d4d
fix: remove repeatable from PatchDeprecated 2022-09-08 14:00:15 +02:00
Sculas
62aa295e73
fix: broken deprecation message 2022-09-08 13:42:26 +02:00
Sculas
596ede1b12
refactor: make patchName work on any class 2022-09-08 13:42:15 +02:00
Sculas
002f84da1a
Merge remote-tracking branch 'origin/main' into main 2022-09-08 11:29:14 +02:00
Sculas
aff4968e6f
fix: handle option types and nulls properly 2022-09-08 11:29:06 +02:00
Sculas
4055939c08
fix: only run list option check if not null 2022-09-07 23:46:46 +02:00
Sculas
79f91e0e5a
fix: invalid types for example options 2022-09-07 23:22:34 +02:00
Sculas
ad3d332e27
fix: handle private companion objects 2022-09-07 23:21:32 +02:00
Sculas
80c2e80925
feat: deprecation for patches 2022-09-07 22:31:15 +02:00
Sculas
6b909c1ee6
refactor: Improve Patch Options
It's so much better now. Really happy with the current system.

BREAKING CHANGE: Options has been moved from Patch to a new interface called OptionsContainer and are now handled entirely different. Make sure to check the examples to understand how it works.
2022-09-07 20:55:35 +02:00
Sculas
a562e476c0
fix: PathOption should be open, not sealed 2022-09-06 22:36:20 +02:00
Sculas
75d2be8803
perf: make exception an object 2022-09-06 22:35:33 +02:00
Sculas
d6308e126c
fix: add tests for PathOption 2022-09-06 22:35:00 +02:00
Sculas
bb97af4d86
refactor: add FileOption alias for PathOption 2022-09-06 22:34:46 +02:00
Sculas
392164862c
fix: typo in ListOption 2022-09-06 21:44:05 +02:00
Sculas
53e807dec1
refactor: add PatchOption.PathOption 2022-09-06 21:43:45 +02:00
oSumAtrIX
131dedd4b0
feat: default value for Package.versions annotation parameter
Reverts 4b813187107e85dc267dbc2d353884b2cc671cc4
2022-09-05 16:44:35 +02:00
Sculas
4b81318710
fix: remove default param from Package.versions
Kotlin compiler bug produces invalid bytecode, resulting in an IncompleteAnnotationException at runtime.
2022-09-03 22:52:49 +02:00
oSumAtrIX
7882a8d928
feat: nullable parameters
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-08-31 20:30:31 +02:00
oSumAtrIX
f9da2ad531
fix: show error message if cause is null 2022-08-14 17:22:43 +02:00
dan1st
123ad54c15
fix: close open files (#75) 2022-08-07 00:16:23 +02:00
Sculas
09f6ab4155
Merge remote-tracking branch 'origin/main' into main 2022-08-03 18:32:34 +02:00
Sculas
01cf3fb50f
refactor: util package structure 2022-08-03 18:31:31 +02:00
oSumAtrIX
7b2d058144
fix: revert soft dependencies 2022-08-03 03:45:34 +02:00
Sculas
2572cd04b5
feat: add getValue & setValue for PatchOption 2022-08-02 23:30:38 +02:00
Sculas
14a73bfcaf
fix: check if patch option requirement is met 2022-08-02 22:41:34 +02:00
Sculas
371f0c4d0b
feat: PatchOptions#nullify to nullify an option 2022-08-02 22:32:55 +02:00
Sculas
1b42f65d95
refactor: migrate to custom exceptions for patch options 2022-08-02 22:16:37 +02:00
Sculas
67a5237541
test: refactor & add more tests 2022-08-02 22:00:32 +02:00
Sculas
4e2e772389
feat: validator for patch options 2022-08-02 22:00:10 +02:00
Sculas
2431785d0e
feat: registry for patch options
BREAKING CHANGE: Patch options now use the PatchOptions registry class instead of an Iterable. This change requires modifications to existing patches using this API.
2022-08-02 21:10:14 +02:00
oSumAtrIX
5f7ef2dbff
Merge remote-tracking branch 'origin/main' 2022-08-02 03:09:02 +02:00
Sculas
ec1d8a8fba
refactor: remove DependencyType.SOFT (#82)
BREAKING-CHANGE: DependencyType.SOFT has now been removed after it was deprecated. There is no direct replacement for this. Please look into Patch Options instead, which supersedes this.
2022-08-02 00:47:32 +02:00
oSumAtrIX
814ce0b9ae
feat: exclusive mutable access to files 2022-08-02 00:42:38 +02:00
oSumAtrIX
8d95b14f35
fix: show error message instead of null 2022-08-02 00:42:38 +02:00
Sculas
fbb09f38dc
feat: patch options (#81)
* feat: Patch Options

* refactor: remove delegate property

* feat: List patch options

* refactor: add setter example to PatchOptionsUsage.kt

* docs: add docs for PatchOptions

* docs: tidy docs
2022-08-02 00:31:00 +02:00
oSumAtrIX
bbd40bf2f6
feat: Closeable patches 2022-08-01 04:12:33 +02:00
Sculas
3de999a2d3
refactor: remove ReplaceWith from DependencyType.SOFT 2022-07-31 18:35:02 +02:00
Sculas
fcc7fa75d0
refactor: deprecate DependencyType.SOFT
Soft dependencies will be removed when Patch Options is implemented.
2022-07-31 18:31:40 +02:00
Sculas
8c12f8d488
feat: Soft Dependencies for Patches 2022-07-31 16:50:59 +02:00
Sculas
523f67b238
feat: add Patch#dependsOn extension 2022-07-31 15:07:23 +02:00
Sculas
4813a8b48e
chore: remove import 2022-07-31 15:01:38 +02:00
Sculas
d5c66022c9
refactor: get rid of package names in example 2022-07-31 15:01:13 +02:00
oSumAtrIX
77604d4078
fix: close stream when closing DomFileEditor 2022-07-18 01:28:16 +02:00
oSumAtrIX
91298a8790
Merge pull request #52 from revanced/feat/smali-branching
feat: improve Smali compiler
2022-07-09 15:03:01 +02:00
oSumAtrIX
f2a7cff41c
style: fix casing of the first letter in comments 2022-07-09 06:27:49 +02:00
oSumAtrIX
dd941233ca
refactor: improve the addInstructions extension method further more 2022-07-09 06:26:05 +02:00