Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,18 @@ public class DemoActivity extends IntroActivity {
```

### Gradle dependency
Coming soon!
Add the following to your top level build.gradle

allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}

Add the following dependency

compile 'com.github.MizzleDK:IntroActivity:-SNAPSHOT'

## Custom styling
The library allows you to perform various custom styling using the following methods:
Expand Down
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ buildscript {

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
}
}

Expand Down
24 changes: 24 additions & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,27 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.2.1'
}

apply plugin: 'android-maven'

// build a jar with source files
task sourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
failOnError false
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
}