From 68ea89f15e9ea077df0d0ac20a40b735bb5ae26c Mon Sep 17 00:00:00 2001 From: Lucaskyy Date: Mon, 21 Mar 2022 22:06:24 +0100 Subject: [PATCH] refactor: Rename `net.revanced` to `app.revanced` BREAKING CHANGE: Package name was changed from "net.revanced" to "app.revanced" --- build.gradle.kts | 4 ++-- .../{net => app}/revanced/patches/Index.kt | 10 +++++----- .../revanced/patches/ads/VideoAds.kt | 16 ++++++++-------- .../patches/layouts/CreateButtonRemover.kt | 12 ++++++------ .../patches/layouts/MinimizedPlayback.kt | 10 +++++----- 5 files changed, 26 insertions(+), 26 deletions(-) rename src/main/kotlin/{net => app}/revanced/patches/Index.kt (64%) rename src/main/kotlin/{net => app}/revanced/patches/ads/VideoAds.kt (74%) rename src/main/kotlin/{net => app}/revanced/patches/layouts/CreateButtonRemover.kt (73%) rename src/main/kotlin/{net => app}/revanced/patches/layouts/MinimizedPlayback.kt (52%) diff --git a/build.gradle.kts b/build.gradle.kts index ffec82f3c..6ecf2d4f6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ plugins { `maven-publish` } -group = "net.revanced" +group = "app.revanced" repositories { mavenCentral() @@ -29,7 +29,7 @@ dependencies { implementation("org.ow2.asm:asm-tree:9.2") implementation("org.ow2.asm:asm-commons:9.2") - implementation("net.revanced:revanced-patcher:1.+") // use latest version. + implementation("app.revanced:revanced-patcher:1.+") // use latest version. } java { diff --git a/src/main/kotlin/net/revanced/patches/Index.kt b/src/main/kotlin/app/revanced/patches/Index.kt similarity index 64% rename from src/main/kotlin/net/revanced/patches/Index.kt rename to src/main/kotlin/app/revanced/patches/Index.kt index 7ecd9cfcb..53c603cec 100644 --- a/src/main/kotlin/net/revanced/patches/Index.kt +++ b/src/main/kotlin/app/revanced/patches/Index.kt @@ -1,9 +1,9 @@ -package net.revanced.patches +package app.revanced.patches -import net.revanced.patcher.patch.Patch -import net.revanced.patches.ads.VideoAds -import net.revanced.patches.layouts.CreateButtonRemover -import net.revanced.patches.layouts.MinimizedPlayback +import app.revanced.patcher.patch.Patch +import app.revanced.patches.ads.VideoAds +import app.revanced.patches.layouts.CreateButtonRemover +import app.revanced.patches.layouts.MinimizedPlayback import kotlin.reflect.KClass /** diff --git a/src/main/kotlin/net/revanced/patches/ads/VideoAds.kt b/src/main/kotlin/app/revanced/patches/ads/VideoAds.kt similarity index 74% rename from src/main/kotlin/net/revanced/patches/ads/VideoAds.kt rename to src/main/kotlin/app/revanced/patches/ads/VideoAds.kt index 7de455851..2e4501767 100644 --- a/src/main/kotlin/net/revanced/patches/ads/VideoAds.kt +++ b/src/main/kotlin/app/revanced/patches/ads/VideoAds.kt @@ -1,12 +1,12 @@ -package net.revanced.patches.ads +package app.revanced.patches.ads -import net.revanced.patcher.cache.Cache -import net.revanced.patcher.patch.Patch -import net.revanced.patcher.patch.PatchResult -import net.revanced.patcher.patch.PatchResultError -import net.revanced.patcher.patch.PatchResultSuccess -import net.revanced.patcher.signature.Signature -import net.revanced.patcher.writer.ASMWriter.insertAt +import app.revanced.patcher.cache.Cache +import app.revanced.patcher.patch.Patch +import app.revanced.patcher.patch.PatchResult +import app.revanced.patcher.patch.PatchResultError +import app.revanced.patcher.patch.PatchResultSuccess +import app.revanced.patcher.signature.Signature +import app.revanced.patcher.writer.ASMWriter.insertAt import org.objectweb.asm.Opcodes import org.objectweb.asm.Type import org.objectweb.asm.tree.MethodInsnNode diff --git a/src/main/kotlin/net/revanced/patches/layouts/CreateButtonRemover.kt b/src/main/kotlin/app/revanced/patches/layouts/CreateButtonRemover.kt similarity index 73% rename from src/main/kotlin/net/revanced/patches/layouts/CreateButtonRemover.kt rename to src/main/kotlin/app/revanced/patches/layouts/CreateButtonRemover.kt index 06b383363..62183cd2b 100644 --- a/src/main/kotlin/net/revanced/patches/layouts/CreateButtonRemover.kt +++ b/src/main/kotlin/app/revanced/patches/layouts/CreateButtonRemover.kt @@ -1,10 +1,10 @@ -package net.revanced.patches.layouts +package app.revanced.patches.layouts -import net.revanced.patcher.cache.Cache -import net.revanced.patcher.patch.Patch -import net.revanced.patcher.patch.PatchResult -import net.revanced.patcher.patch.PatchResultSuccess -import net.revanced.patcher.writer.ASMWriter.insertAt +import app.revanced.patcher.cache.Cache +import app.revanced.patcher.patch.Patch +import app.revanced.patcher.patch.PatchResult +import app.revanced.patcher.patch.PatchResultSuccess +import app.revanced.patcher.writer.ASMWriter.insertAt import org.objectweb.asm.Opcodes import org.objectweb.asm.tree.MethodInsnNode import org.objectweb.asm.tree.VarInsnNode diff --git a/src/main/kotlin/net/revanced/patches/layouts/MinimizedPlayback.kt b/src/main/kotlin/app/revanced/patches/layouts/MinimizedPlayback.kt similarity index 52% rename from src/main/kotlin/net/revanced/patches/layouts/MinimizedPlayback.kt rename to src/main/kotlin/app/revanced/patches/layouts/MinimizedPlayback.kt index 8778bcff6..1a67bc211 100644 --- a/src/main/kotlin/net/revanced/patches/layouts/MinimizedPlayback.kt +++ b/src/main/kotlin/app/revanced/patches/layouts/MinimizedPlayback.kt @@ -1,9 +1,9 @@ -package net.revanced.patches.layouts +package app.revanced.patches.layouts -import net.revanced.patcher.cache.Cache -import net.revanced.patcher.patch.Patch -import net.revanced.patcher.patch.PatchResult -import net.revanced.patcher.patch.PatchResultSuccess +import app.revanced.patcher.cache.Cache +import app.revanced.patcher.patch.Patch +import app.revanced.patcher.patch.PatchResult +import app.revanced.patcher.patch.PatchResultSuccess class MinimizedPlayback : Patch("minimized-playback") { override fun execute(cache: Cache): PatchResult {