Skip to content

Commit

Permalink
发布版本2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wsc committed Aug 25, 2023
1 parent 8eb70bf commit f473a9a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 36 deletions.
22 changes: 13 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ android {

repositories {
maven { url "https://jitpack.io" }
mavenCentral()
// maven { url "https://s01.oss.sonatype.org/content/repositories/releases" }
// maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
Expand All @@ -66,8 +69,8 @@ dependencies {
implementation project(':refresh-footer')
implementation project(':refresh-header')
implementation project(':refresh-layout')
implementation project(':refresh-drawable-path')

implementation project(':refresh-drawable-path')
implementation project(':refresh-layout-kernel')
implementation project(':refresh-header-classics')
implementation project(':refresh-header-radar')
Expand All @@ -76,14 +79,15 @@ dependencies {
implementation project(':refresh-header-two-level')
implementation project(':refresh-footer-ball')

// implementation 'com.scwang.smart:refresh-layout-kernel:2.0.0-alpha-1' //核心必须依赖
// implementation 'com.scwang.smart:refresh-header-classics:2.0.0-alpha-1' //经典刷新头
// implementation 'com.scwang.smart:refresh-header-radar:2.0.0-alpha-1' //雷达刷新头
// implementation 'com.scwang.smart:refresh-header-falsify:2.0.0-alpha-1' //虚拟刷新头
// implementation 'com.scwang.smart:refresh-header-material:2.0.0-alpha-1' //谷歌刷新头
// implementation 'com.scwang.smart:refresh-header-two-level:2.0.0-alpha-1' //二级刷新头
// implementation 'com.scwang.smart:refresh-footer-ball:2.0.0-alpha-1' //球脉冲加载
// implementation 'com.scwang.smart:refresh-footer-classics:2.0.0-alpha-1' //经典加载
// implementation 'io.github.scwang90:refresh-drawable-path:2.1.0' //矢量路径
// implementation 'io.github.scwang90:refresh-layout-kernel:2.1.0' //核心必须依赖
// implementation 'io.github.scwang90:refresh-header-classics:2.1.0' //经典刷新头
// implementation 'io.github.scwang90:refresh-header-radar:2.1.0' //雷达刷新头
// implementation 'io.github.scwang90:refresh-header-falsify:2.1.0' //虚拟刷新头
// implementation 'io.github.scwang90:refresh-header-material:2.1.0' //谷歌刷新头
// implementation 'io.github.scwang90:refresh-header-two-level:2.1.0' //二级刷新头
// implementation 'io.github.scwang90:refresh-footer-ball:2.1.0' //球脉冲加载
// implementation 'io.github.scwang90:refresh-footer-classics:2.1.0' //经典加载


implementation 'com.android.support:design:28.0.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Expand All @@ -34,9 +33,6 @@
import com.scwang.refreshlayout.util.StatusBarUtil;
import com.scwang.smart.refresh.layout.SmartRefreshLayout;
import com.scwang.smart.refresh.layout.api.RefreshLayout;
import com.scwang.smart.refresh.layout.constant.RefreshState;
import com.scwang.smart.refresh.layout.listener.OnRefreshListener;
import com.scwang.smart.refresh.layout.simple.SimpleMultiListener;

import java.util.Arrays;

Expand Down Expand Up @@ -96,27 +92,8 @@ protected void onBindViewHolder(SmartViewHolder holder, Item model, int position
}
});
}
Toolbar toolbar = root.findViewById(R.id.toolbar);

SmartRefreshLayout refreshLayout = root.findViewById(R.id.refreshLayout);
refreshLayout.setOnRefreshListener(new OnRefreshListener() {
@Override
public void onRefresh(@NonNull RefreshLayout refreshLayout) {
refreshLayout.finishRefresh();
}
});
refreshLayout.setOnMultiListener(new SimpleMultiListener() {
@Override
public void onStateChanged(@NonNull RefreshLayout refreshLayout, @NonNull RefreshState oldState, @NonNull RefreshState newState) {
toolbar.setTitle("实战 - " + oldState + " -> " + newState);
}

@Override
public void onLoadMore(@NonNull RefreshLayout refreshLayout) {
refreshLayout.finishLoadMore();
}

});
refreshLayout.setOnRefreshListener(RefreshLayout::finishRefresh);
}

@Override
Expand Down
5 changes: 2 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ org.gradle.jvmargs=-Xmx1536m

SMART_USER=scwang90
SMART_GROUP=com.scwang.smart
SMART_VERSION=2.0.5
# -SNAPSHOT
SMART_VERSION=2.1.0
SMART_PUBLISH=false
SMART_GROUP_MVN=io.github.scwang90
SMART_EMAIL=[email protected]

signing.keyId=888F6528
signing.password=
signing.secretKeyRingFile=/Users/scwang/.gnupg/secret-rsa.gpg
signing.secretKeyRingFile=../secret-rsa.gpg

0 comments on commit f473a9a

Please sign in to comment.