Skip to content

Commit

Permalink
Merge pull request #198 from bingoogolapple/develop
Browse files Browse the repository at this point in the history
2.0.2: 从 JCenter 迁移到 JitPack
  • Loading branch information
bingoogolapple authored Apr 5, 2021
2 parents 6925cbe + 14c686d commit 8523297
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 31 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Change Log
==========

Version 2.0.2 *(2021-04-05)*
----------------------------

* 从 JCenter 迁移到 JitPack

Version 2.0.1 *(2019-11-16)*
----------------------------

Expand Down
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,13 @@

### 1.添加 Gradle 依赖

* androidx 项目用 [![Download](https://api.bintray.com/packages/bingoogolapple/maven/bga-swipebacklayout/images/download.svg)](https://bintray.com/bingoogolapple/maven/bga-swipebacklayout/_latestVersion) bga-swipebacklayout 后面的「latestVersion」指的是左边这个 Download 徽章后面的「数字」,请自行替换。
* 非 androidx 项目用 1.2.1 版本
* `maven { url 'https://jitpack.io' }` 添加到 root build.gradle 的 repositories 中
* 在 app build.gradle 中添加如下依赖,末尾的「latestVersion」指的是徽章 [![](https://jitpack.io/v/bingoogolapple/BGASwipeBackLayout-Android.svg)](https://jitpack.io/#bingoogolapple/BGASwipeBackLayout-Android) 里的版本名称,请自行替换

```groovy
dependencies {
implementation 'cn.bingoogolapple:bga-swipebacklayout:latestVersion@aar'
// 换成己工程里依赖的 support-v4 的版本
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
}
implementation 'com.github.bingoogolapple:BGASwipeBackLayout-Android:latestVersion'
// 换成己工程里依赖的 support-v4 的版本
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
```

### 2.必须在 Application 的 onCreate 方法中执行 BGASwipeBackHelper.init 来初始化滑动返回
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'

// classpath 'com.novoda:bintray-release:0.9.1'
classpath 'com.android.tools.build:gradle:3.5.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}

allprojects {
repositories {
maven { url 'https://jitpack.io' }
jcenter()
google()
}
Expand Down
6 changes: 3 additions & 3 deletions demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ android {
dependencies {
// 下面两个依赖是必须的
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'cn.bingoogolapple:bga-swipebacklayout:2.0.1@aar'
// implementation 'com.github.bingoogolapple:BGASwipeBackLayout-Android:2.0.2'
// 上面两个依赖是必须的


// implementation project(':library')
implementation project(':library')


// 下面的依赖不是必须的,只是为了方便演示 demo
implementation 'cn.bingoogolapple:bga-baseadapter:2.0.0@aar'
implementation 'com.github.bingoogolapple:BGABaseAdapter-Android:2.0.1'
implementation 'cn.bingoogolapple:bga-refreshlayout:1.1.8@aar'
implementation 'cn.bingoogolapple:bga-progressbar:1.0.1@aar'
implementation 'cn.bingoogolapple:bga-swipeitemlayout:1.0.4@aar'
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ ANDROID_BUILD_MIN_SDK_VERSION=14
ANDROID_BUILD_TARGET_SDK_VERSION=28
ANDROID_BUILD_SDK_VERSION=28

VERSION_NAME=2.0.1
VERSION_CODE=201
VERSION_NAME=2.0.2
VERSION_CODE=202

# 设置为 true,Android 插件会使用相应的 AndroidX 库,而非支持库
android.useAndroidX=true
Expand Down
6 changes: 1 addition & 5 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

android {
compileSdkVersion ANDROID_BUILD_SDK_VERSION as int
Expand All @@ -16,8 +17,3 @@ android {
dependencies {
compileOnly 'androidx.legacy:legacy-support-v4:1.0.0'
}

// ./gradlew :library:clean :library:build :library:bintrayUpload -PpublishAar
if (hasProperty("publishAar")) {
apply from: 'https://raw.githubusercontent.com/bingoogolapple/PublishAar/master/jcenter-release.gradle'
}
3 changes: 0 additions & 3 deletions library/gradle.properties

This file was deleted.

7 changes: 0 additions & 7 deletions publishToJcenter.sh

This file was deleted.

0 comments on commit 8523297

Please sign in to comment.