Skip to content

Commit

Permalink
gradle: consumer-rules.pro
Browse files Browse the repository at this point in the history
  • Loading branch information
damionx7 committed Oct 3, 2024
1 parent cb31a53 commit 750ff60
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 69 deletions.
18 changes: 3 additions & 15 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id 'maven-publish'
}

def appVersion = 25
def appVersion = 26

def buttonApiVersion = 11
def buttonQueryIntent = "org.eu.thedoc.zettelnotes.intent.buttons"
Expand Down Expand Up @@ -44,21 +44,9 @@ android {
resValue "string", "zettel_package_name_debug", "\"${zettelNotesPackageNameDebug}\""
buildConfigField "String", "ZETTEL_PACKAGE_NAME", "\"${zettelNotesPackageName}\""
buildConfigField "String", "ZETTEL_PACKAGE_NAME_DEBUG", "\"${zettelNotesPackageNameDebug}\""
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
debug {
debuggable true
minifyEnabled false
}
release {
//disable proguard for plugin system to work
minifyEnabled false
debuggable false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
consumerProguardFiles "consumer-rules.pro"
}
consumerProguardFiles "consumer-rules.pro"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

compileOptions {
Expand Down
26 changes: 2 additions & 24 deletions app/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -1,29 +1,7 @@
# 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 SourceFil

## KEEP INTERFACES FOR APIS
# Exclude Interface From Proguard
-keep class org.eu.thedoc.zettelnotes.interfaces.** { *; }
-keepclassmembers class org.eu.thedoc.zettelnotes.interfaces.** {
<fields>;
<init>();
<methods>;
}
}
29 changes: 0 additions & 29 deletions app/proguard-rules.pro

This file was deleted.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'com.android.library' version '8.6.1' apply false
id 'com.android.library' version '8.7.0' apply false
}

tasks.register('clean', Delete) {
Expand Down

0 comments on commit 750ff60

Please sign in to comment.