fix: move dummy classes to `dummy` module (#162)

This commit is contained in:
d4rkk3y 2022-09-27 20:30:25 +07:00 committed by GitHub
parent 73b40595c4
commit fa0ad3a57b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 59 additions and 1 deletions

View File

@ -43,5 +43,6 @@ android {
}
dependencies {
compileOnly(project(mapOf("path" to ":dummy")))
compileOnly("androidx.annotation:annotation:1.5.0")
}

1
dummy/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/build

30
dummy/build.gradle.kts Normal file
View File

@ -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
dummy/proguard-rules.pro vendored Normal file
View File

@ -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

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

View File

@ -5,7 +5,7 @@ import android.view.ViewGroup;
/**
* "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.

View File

@ -7,4 +7,5 @@ dependencyResolutionManagement {
}
}
include(":app")
include(":dummy")
rootProject.name = "integrations"