Skip to content

Commit

Permalink
将仓库转移到bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
tsy12321 committed Dec 13, 2016
1 parent 3ced070 commit d187ac7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# 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 @@ -23,16 +22,15 @@
allprojects {
repositories {
jcenter()
// JitPack仓库地址
maven { url "https://jitpack.io" }
maven { url "https://dl.bintray.com/tangsiyuan/maven" }
}
}
```

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

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

## 2. Android Manifest配置
Expand Down
5 changes: 4 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}

dependencies {
Expand All @@ -25,5 +28,5 @@ dependencies {
compile 'com.android.support:appcompat-v7:24.2.1'

// compile project(':pay_android_sdk')
compile 'com.github.tsy12321:PayAndroid:1.0.0'
compile 'com.tsy:pay:1.0.0'
}
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.novoda:bintray-release:0.3.4'
}
}

allprojects {
repositories {
jcenter()
maven { url 'https://jitpack.io' }
maven { url "https://dl.bintray.com/tangsiyuan/maven" }
}
}

Expand Down
13 changes: 10 additions & 3 deletions pay_android_sdk/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

group='com.github.tsy12321'
apply plugin: 'com.novoda.bintray-release'

android {
compileSdkVersion 24
Expand All @@ -25,4 +23,13 @@ dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.1'
}

publish {
userOrg = 'tangsiyuan'
groupId = 'com.tsy'
artifactId = 'pay'
publishVersion = '1.0.0'
desc = '对微信支付和支付宝支付的App端SDK进行二次封装'
website = 'https://github.com/tsy12321/PayAndroid'
}

0 comments on commit d187ac7

Please sign in to comment.