Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zeropercenthappy committed Feb 21, 2019
1 parent f2e30b9 commit a2005a6
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 24 deletions.
29 changes: 18 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
# ZPHTabLayout

Simple Tablayout. Mostly use for bottom navigation


Step 1. Add the JitPack repository to your build file
## Step 1. Add the JitPack repository to your build file

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

Step 2. Add the dependency
## Step 2. Add the dependency

dependencies {
compile 'com.github.zeropercenthappy:ZPHTabLayout:1.0.2'
}
```
dependencies {
implementation 'com.github.zeropercenthappy:ZPHTabLayout:1.0.3'
}
```

## Usage

TODO: USAGE
see sample
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.2.41'
ext.anko_version = '0.10.5'
ext.android_support_version = '27.1.1'
ext.kotlin_version = '1.3.21'
ext.anko_version = '0.10.8'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.android.tools.build:gradle:3.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed May 30 14:55:12 CST 2018
#Thu Feb 21 15:43:28 CST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
11 changes: 7 additions & 4 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ android {

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation "com.android.support:appcompat-v7:$android_support_version"
implementation 'com.android.support.constraint:constraint-layout:1.1.3'

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation project(':library')

implementation project(':tablayoutlibrary')
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':library', ':sample'
include ':tablayoutlibrary', ':sample'
File renamed without changes.
8 changes: 5 additions & 3 deletions library/build.gradle → tablayoutlibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'com.android.support:appcompat-v7:27.1.1'
implementation "com.android.support:appcompat-v7:$android_support_version"

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.anko:anko-common:$anko_version"

api "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
api "org.jetbrains.anko:anko-common:$anko_version"
}

task sourcesJar(type: Jar) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a2005a6

Please sign in to comment.