Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into flutter
  • Loading branch information
Aunali321 committed Oct 7, 2022
2 parents 78428f6 + da94dfb commit e8cb6d2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .run/main.dart.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="main.dart" type="FlutterRunConfigurationType" factoryName="Flutter">
<option name="filePath" value="$PROJECT_DIR$/lib/main.dart" />
<method v="2" />
</configuration>
</component>
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

// ReVanced
implementation "app.revanced:revanced-patcher:5.1.2"
implementation "app.revanced:revanced-patcher:6.0.0"

// Signing & aligning
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import app.revanced.patcher.Patcher
import app.revanced.patcher.PatcherOptions
import app.revanced.patcher.extensions.PatchExtensions.patchName
import app.revanced.patcher.logging.Logger
import app.revanced.patcher.util.patch.impl.DexPatchBundle
import app.revanced.patcher.util.patch.PatchBundle
import dalvik.system.DexClassLoader
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
Expand Down Expand Up @@ -100,7 +100,7 @@ class MainActivity : FlutterActivity() {
Thread {
try {
val patches = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUPCAKE) {
DexPatchBundle(
PatchBundle.Dex(
patchBundleFilePath,
DexClassLoader(
patchBundleFilePath,
Expand Down Expand Up @@ -178,7 +178,7 @@ class MainActivity : FlutterActivity() {
}

patcher.addPatches(patches)
patcher.applyPatches().forEach { (patch, res) ->
patcher.executePatches().forEach { (patch, res) ->
if (res.isSuccess) {
val msg = "[success] $patch"
handler.post {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ homepage: https://github.com/revanced/revanced-manager

publish_to: 'none'

version: 0.0.28+28
version: 0.0.29+29

environment:
sdk: ">=2.17.5 <3.0.0"
Expand Down

0 comments on commit e8cb6d2

Please sign in to comment.