Skip to content

Commit

Permalink
gradle update for jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
faruktoptas committed Mar 11, 2017
1 parent e98a1f7 commit 795f882
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
30 changes: 26 additions & 4 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

group = 'com.github.jitpack'

android {
compileSdkVersion 25
Expand All @@ -23,9 +26,28 @@ android {

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.1'
testCompile 'junit:junit:4.12'
}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
failOnError false
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
}

// build a jar with javadoc
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
Expand Up @@ -108,8 +108,8 @@ private FancyShowCaseView(Activity activity, View view, String id, String title,
* Calculates and set initial parameters
*/
private void initializeParameters() {
mBackgroundColor = mBackgroundColor != 0 ? mBackgroundColor : ContextCompat.getColor(mActivity,
R.color.fancy_showcase_view_default_background_color);
mBackgroundColor = mBackgroundColor != 0 ? mBackgroundColor :
mActivity.getResources().getColor(R.color.fancy_showcase_view_default_background_color);
mTitleGravity = mTitleGravity >= 0 ? mTitleGravity : Gravity.CENTER;
mTitleStyle = mTitleStyle != 0 ? mTitleStyle : R.style.FancyShowCaseDefaultTitleStyle;

Expand Down Expand Up @@ -324,6 +324,7 @@ private void writeShown() {

/**
* Returns if FancyShowCaseView with given id is shown before
*
* @return true if show before
*/
public boolean isShownBefore() {
Expand Down Expand Up @@ -368,6 +369,7 @@ public static class Builder {

/**
* Constructor for Builder class
*
* @param activity Activity to show FancyShowCaseView in
*/
public Builder(Activity activity) {
Expand Down Expand Up @@ -479,6 +481,7 @@ public Builder closeOnTouch(boolean closeOnTouch) {

/**
* builds the builder
*
* @return {@link FancyShowCaseView} with given parameters
*/
public FancyShowCaseView build() {
Expand Down

0 comments on commit 795f882

Please sign in to comment.