Skip to content

Commit

Permalink
发布jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
maning committed May 11, 2017
1 parent 044f68d commit 3ae074b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,27 @@


## 如何添加
### 源码Model添加:
#### 1.直接关联calendarlibrary
### 1:Gradle添加:
#### 1.在Project的build.gradle中添加仓库地址

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

#### 2.在app目录下的build.gradle中添加依赖
``` gradle
dependencies {
compile 'com.github.maning0303:MNCalendar:V1.0.0'
}
```

### 2:源码Model添加:
#### 直接关联calendarlibrary

``` gradle
Expand Down
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
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 All @@ -15,6 +16,7 @@ buildscript {
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}

Expand Down
3 changes: 3 additions & 0 deletions calendarlibrary/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.maning0303'

android {
compileSdkVersion 25
Expand Down

0 comments on commit 3ae074b

Please sign in to comment.