diff --git a/patches/src/main/kotlin/app/template/patches/shared/Constants.kt b/patches/src/main/kotlin/app/template/patches/shared/Constants.kt index 658711cb7..6b1ff43da 100644 --- a/patches/src/main/kotlin/app/template/patches/shared/Constants.kt +++ b/patches/src/main/kotlin/app/template/patches/shared/Constants.kt @@ -9,19 +9,26 @@ object Constants { val COMPATIBILITY_EXAMPLE = Compatibility( name = "XYZ app", // App name as it appears in the Android launcher. packageName = "com.example.app", - apkFileType = ApkFileType.APK, // Preferred or recommended file type. - appIconColor = 0xFF0045, // Icon color in Morphe Manager. Usually the same color as the icon background. + // + // IMPORTANT: This declaration must match the file type on APKMirror/UpToDown. + // + // If this is declared as one type such as APK, but the file type on APKMirror/UpToDown + // is different such as APKM or XAPK, then Morphe Manager will _not_ send the user + // to APKMirror/UpToDown. + apkFileType = ApkFileType.APK, + // Icon color in Morphe Manager. Should be the background or primary color of the app icon. + appIconColor = 0xFF0045, targets = listOf( // "version = null" means the patch works with the latest app target // and is expected to work with all future app targets. // - // It is highly recommended to always include the exact app version developed - // your patches for or the last version you have confirmed as 100% working. + // It is highly recommended to always include the exact app version you used to develop + // your patches so users have a version 100% confirmed as working. // // It is highly preferred to use app versions that are // available on apkmirror.com or uptodown.com, as Morphe web-search will // redirect users to these sites. If an app version is not available - // on ApkMirror or UpToDown, then the user will be sent to Google search. + // on ApkMirror or UpToDown, then the user is sent to Google search. AppTarget( version = "2.0.0" ), @@ -61,12 +68,14 @@ object Constants { AppTarget( version = "1.0.5", // Required version code. If the user tries to patch a different version code - // then Manager will warn they have the wrong original apk/apkm. + // then Manager will warn they have the wrong original file. // // This declaration is only required when multiple architecture releases have the // same version code but only 1 specific version code works or has been well tested. // If there is only 1 release for each architecture file type, then it's best // not to declare this. + // + // If you are unsure, then do not include a version code declaration. versionCodes = mapOf( SupportedAbi.ARM64_V8A to 584009457, SupportedAbi.ARMEABI_V7A to 584119423