Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-12-01 00:19:34 +00:00
chore: Add example code from patch docs, add missing context parameter compiler argument
This commit is contained in:
1 parent
4b62e7fe8c
commit
01b9822788
5 files changed
+97
-14
No files matched your search
@@ -1,7 +0,0 @@
|
||||
package app.morphe.extension;
|
||||
|
||||
public class ExampleExtension {
|
||||
public static void get() {
|
||||
// TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package app.morphe.extension;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class ExamplePatch {
|
||||
|
||||
public static boolean showAds() {
|
||||
// Complex Java logic goes here.
|
||||
// Simple patches that override with fixed values do not need to use or call extension code.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user