From 8128e6ba57ec4e4e01a0923a0d353cc934b93899 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 1 May 2023 05:27:14 +0200 Subject: [PATCH] fix(change-package-name): use `null` as default value for option `packageName` (#1998) --- src/main/kotlin/app/revanced/meta/PatchesFileGenerator.kt | 2 +- .../all/misc/packagename/patch/ChangePackageNamePatch.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/meta/PatchesFileGenerator.kt b/src/main/kotlin/app/revanced/meta/PatchesFileGenerator.kt index d34898778..62667a331 100644 --- a/src/main/kotlin/app/revanced/meta/PatchesFileGenerator.kt +++ b/src/main/kotlin/app/revanced/meta/PatchesFileGenerator.kt @@ -5,7 +5,7 @@ import app.revanced.patcher.patch.Patch import app.revanced.patcher.util.patch.PatchBundle import java.io.File -typealias PatchBundlePatches = List>> +internal typealias PatchBundlePatches = List>> internal interface PatchesFileGenerator { fun generate(bundle: PatchBundlePatches) diff --git a/src/main/kotlin/app/revanced/patches/all/misc/packagename/patch/ChangePackageNamePatch.kt b/src/main/kotlin/app/revanced/patches/all/misc/packagename/patch/ChangePackageNamePatch.kt index f94fdf331..20a754759 100644 --- a/src/main/kotlin/app/revanced/patches/all/misc/packagename/patch/ChangePackageNamePatch.kt +++ b/src/main/kotlin/app/revanced/patches/all/misc/packagename/patch/ChangePackageNamePatch.kt @@ -41,7 +41,7 @@ class ChangePackageNamePatch : ResourcePatch { var packageName: String? by option( PatchOption.StringOption( key = "packageName", - default = "", + default = null, title = "Package name", description = "The name of the package to rename of the app.", )