Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.2: 从 JCenter 迁移到 JitPack #198

Merged
merged 1 commit into from
Apr 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.