File tree Expand file tree Collapse file tree
src/main/kotlin/app/morphe/cli/command Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -431,9 +431,11 @@ internal object PatchCommand : Callable<Int> {
431431
432432 val patcherTemporaryFilesPath = temporaryFilesPath.resolve(" patcher" )
433433
434- // Checking if the file is in apkm format (like reddit)
435- val inputApk = if (apk.extension.equals(" apkm" , ignoreCase = true )) {
436- logger.info(" Merging APKM bundle" )
434+ // We need to check for apkm (like reddit), xapk and apks formats here
435+
436+ val inputApk = if (apk.extension.lowercase() in setOf (" apkm" , " xapk" , " apks" )) {
437+
438+ logger.info(" Merging split APK bundle" )
437439
438440 // Save merged APK to output directory (will be cleaned up after patching)
439441 val outputApk = outputFilePath.parentFile.resolve(" ${apk.nameWithoutExtension} -merged.apk" )
@@ -752,7 +754,7 @@ internal object PatchCommand : Callable<Int> {
752754 purge(temporaryFilesPath)
753755 }
754756
755- // Clean up merged APK if we created one from APKM
757+ // Clean up merged apk if we created one from apkm, xapk or apks
756758 mergedApkToCleanup?.let {
757759 if (! it.delete()) {
758760 logger.warning(" Could not clean up merged APK: ${it.path} " )
You can’t perform that action at this time.
0 commit comments