Skip to content

Commit

Permalink
fix: move dummy classes to dummy module (ReVanced#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkk3y committed Sep 27, 2022
1 parent 73b4059 commit fa0ad3a
Show file tree
Hide file tree
Showing 14 changed files with 59 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ android {
}

dependencies {
compileOnly(project(mapOf("path" to ":dummy")))
compileOnly("androidx.annotation:annotation:1.5.0")
}
1 change: 1 addition & 0 deletions dummy/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
30 changes: 30 additions & 0 deletions dummy/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
plugins {
id("com.android.library")
}

android {
namespace = "app.revanced.dummy"
compileSdk = 32

defaultConfig {
minSdk = 26
targetSdk = 32
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}

dependencies {
}
21 changes: 21 additions & 0 deletions dummy/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
4 changes: 4 additions & 0 deletions dummy/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

/**
* "CompileOnly" class
* because android.support.constraint.ConstraintLayout is deprecated
* because android.support.android.support.constraint.ConstraintLayout is deprecated
* in favour of androidx.constraintlayout.widget.ConstraintLayout.
*
* This class will not be included and "replaced" by the real package's class.
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ dependencyResolutionManagement {
}
}
include(":app")
include(":dummy")
rootProject.name = "integrations"

0 comments on commit fa0ad3a

Please sign in to comment.