You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This block is optional and can be used to configure the patches and extension projects.
115
+
settings {
116
+
// "patches" is the default.
117
+
patchesProjectPath ="patches"
118
+
119
+
extensions {
120
+
// The path containing the extension projects. "extensions" is the default.
121
+
projectsPath ="extensions"
122
+
123
+
// A default namespace for extension projects. null is the default.
124
+
defaultNamespace ="app.revanced.extension"
125
+
126
+
// Proguard files relative to the extension project.
127
+
// By default, isMinifyEnabled is false, unless a ProGuard file is added.
128
+
proguardFiles("../proguard-rules.pro")
129
+
}
112
130
}
113
131
```
114
132
@@ -132,15 +150,15 @@ patches {
132
150
> [!NOTE]
133
151
> By default, the plugin expects the patches project to be in the `patches` directory.
134
152
135
-
Create the extension project and configure the `build.gradle.kts` file:
153
+
Create the extension project and add an empty `build.gradle.kts` file.
154
+
Unless the `build.gradle.kts` file is empty, the plugin will not recognize the extension project.
155
+
By default, the extension name will be inferred from the relative path to the extension project.
156
+
For example, the extension name for the `extensions/extension` project will be `extensions/extension.rve`.
157
+
To set an extension name explicitly, add the following to the `build.gradle.kts` file:
136
158
137
159
```kotlin
138
160
extension {
139
-
name ="extensions/extension.rve"
140
-
}
141
-
142
-
android {
143
-
namespace ="app.revanced.extension"
161
+
name ="extensions/extension.rve"
144
162
}
145
163
```
146
164
@@ -162,7 +180,9 @@ To build ReVanced Patches Gradle plugin, follow these steps:
162
180
## 📜 Licence
163
181
164
182
ReVanced Patches Gradle plugin is licensed under the GPLv3 license.
165
-
Please see the [license file](LICENSE) for more information. [tl;dr](https://www.tldrlegal.com/license/gnu-general-public-license-v3-gpl-3) you may copy, distribute and modify
183
+
Please see the [license file](LICENSE) for more
184
+
information. [tl;dr](https://www.tldrlegal.com/license/gnu-general-public-license-v3-gpl-3) you may copy, distribute and
185
+
modify
166
186
ReVanced Patches Gradle plugin as long as you track changes/dates in source files.
167
187
Any modifications to ReVanced Patches Gradle plugin must also be made available under the GPL,
0 commit comments