Skip to content

Commit

Permalink
add JitPack
Browse files Browse the repository at this point in the history
  • Loading branch information
tangsiyuan committed Dec 9, 2016
1 parent 42e29f2 commit d4c6cc1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# PayAndroid

[![License](https://img.shields.io/badge/license-Apache%202-green.svg)](https://www.apache.org/licenses/LICENSE-2.0)
[![](https://jitpack.io/v/tsy12321/PayAndroid.svg)](https://jitpack.io/#tsy12321/PayAndroid)

> 对微信支付和支付宝支付的App端SDK进行二次封装,对外提供一个较为简单的接口和支付结果回调
Expand All @@ -17,7 +18,24 @@

## Android SDK接入指南

### 1. 下载最新SDK,以module的方式引入。
### 如何添加
#### 1.在Project的build.gradle 中添加仓库地址

``` gradle
allprojects {
repositories {
jcenter()
// JitPack仓库地址
maven { url "https://jitpack.io" }
}
}
```

#### 2.在app目录下的build.gradle中添加依赖

```gradle
compile 'com.github.tsy12321:PayAndroid:1.0.0'
```

### 2. Android Manifest配置

Expand Down
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'

// 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.5'
}
}

allprojects {
repositories {
jcenter()
maven { url 'https://jitpack.io' }
}
}

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

android {
compileSdkVersion 24
Expand Down

0 comments on commit d4c6cc1

Please sign in to comment.