-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Consumer proguard rules, javadoc artifact #143
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
google() | ||
maven { url 'https://maven.google.com' } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @samtstern Any reason we added the more verbose version of the repo instead of keeping There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because when I use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Haha, SGTM 😄 |
||
} | ||
|
||
dependencies { | ||
classpath 'com.android.tools.build:gradle:3.0.0-alpha1' | ||
classpath 'com.android.tools.build:gradle:3.0.0-alpha8' | ||
|
||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' | ||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3' | ||
|
@@ -15,7 +15,7 @@ buildscript { | |
allprojects { | ||
repositories { | ||
jcenter() | ||
google() | ||
maven { url 'https://maven.google.com' } | ||
} | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,18 @@ task sourcesJar(type: Jar) { | |
classifier = 'sources' | ||
} | ||
|
||
task javadoc(type: Javadoc) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we need to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep! Gonna see if I can actually fix the errors first and then add this. |
||
source = android.sourceSets.main.java.srcDirs | ||
classpath += configurations.compile | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar | ||
archives javadocJar | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,3 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in ${sdk.dir}/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# 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 *; | ||
#} | ||
-keepclassmembers class * { | ||
@pub.devrel.easypermissions.AfterPermissionGranted <methods>; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: add a new line at the bottom of the file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should deliver a proguarded version of the library. It personal drives me insane if I can't
Ctrl + B
a method and get the uncompiled/unobfuscated raw source code.We have
minifyEnabled false
in FirebaseUI with aconsumerProguardFile
so the dev can decide to obfuscate their app if they want, but still develop it with the library source code.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the app, not the library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh lol. Oops! 😄