GeezerVison is showing github.com — 2.0 开发计划 · ftyangjun/SmartRefreshLayout@f10ccaf
File treeExpand file treeCollapse file tree Open diff view settings refresh-drawable-path/src/main/java/com/scwang/smart/drawable refresh-footer-ball/src/main/java/com/scwang/smart/refresh/footer androidTest/java/com/scwang/smart/refresh/footer main/java/com/scwang/smart/refresh
refresh-header-classics/src/main/java/com/scwang/smart/refresh/header refresh-header-falsify/src/main/java/com/scwang/smart/refresh/header refresh-header-radar/src/main/java/com/scwang/smart/refresh/header refresh-header-two-level/src/main/java/com/scwang/smart/refresh/header refresh-layout-kernel/src/androidTest/java/com/scwang/smart/refresh/layout
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .idea/misc.xml +4Lines changed: 4 additions & 0 deletions Collapse file Copy file name to clipboardExpand all lines: build.gradle +9-2Lines changed: 9 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,8 +10,6 @@ buildscript { | 10 | 10 | // NOTE: Do not place your application dependencies here; they belong | 11 | 11 | // in the individual module build.gradle files | 12 | 12 | classpath 'com.novoda:bintray-release:0.9.1' | 13 | | -// classpath 'com.aaron.gradle:bintray-release:1.3.7' | 14 | | -// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' | 15 | 13 | } | 16 | 14 | } | 17 | 15 |
| @@ -26,6 +24,15 @@ allprojects { | 26 | 24 | charSet 'UTF-8' | 27 | 25 | links "http://docs.oracle.com/javase/7/docs/api" | 28 | 26 | } | | 27 | + exclude( | | 28 | + "**/ClassicsAbstract.java", | | 29 | + "**/ClassicsHeader.java", | | 30 | + "**/PathsDrawable.java", | | 31 | + "**/BallPulseFooter.java", | | 32 | + "**/BezierRadarHeader.java", | | 33 | + "**/TwoLevelHeader.java" | | 34 | + ) | | 35 | + options.addStringOption('Xdoclint:none', '-quiet') | 29 | 36 | } | 30 | 37 | gradle.projectsEvaluated { | 31 | 38 | tasks.withType(JavaCompile) { | |
Collapse file Copy file name to clipboardExpand all lines: refresh-drawable-path/src/main/java/com/scwang/smart/drawable/PathsDrawable.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 18 | 18 | * 路径 | 19 | 19 | * Created by SCWANG on 2017/6/1. | 20 | 20 | */ | 21 | | -//@SuppressWarnings({"unused", "WeakerAccess"}) | | 21 | +@SuppressWarnings({"unused", "WeakerAccess"}) | 22 | 22 | public class PathsDrawable extends PaintDrawable { | 23 | 23 |
| 24 | 24 | protected int mWidth = 1,mHeight = 1; | |
Collapse file Copy file name to clipboardExpand all lines: refresh-footer-ball/src/main/java/com/scwang/smart/refresh/footer/BallPulseFooter.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 26 | 26 | * 球脉冲底部加载组件 | 27 | 27 | * Created by SCWANG on 2017/5/30. | 28 | 28 | */ | 29 | | -//@SuppressWarnings({"unused", "UnusedReturnValue"}) | | 29 | +@SuppressWarnings({"unused", "UnusedReturnValue"}) | 30 | 30 | public class BallPulseFooter extends SimpleComponent implements RefreshFooter { | 31 | 31 |
| 32 | 32 | //<editor-fold desc="属性变量"> | |
Collapse file Copy file name to clipboardExpand all lines: refresh-footer-classics/build.gradle +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -32,9 +32,9 @@ dependencies { | 32 | 32 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' | 33 | 33 |
| 34 | 34 | api project(':refresh-drawable-paint') | 35 | | -// releaseApi 'com.scwang.smart.refresh:drawable-paint:0.0.1' | 36 | | - compileOnly project(':refresh-layout-kernel') | 37 | | - | | 35 | +// api 'com.scwang.smart.refresh:drawable-paint:0.0.1' | | 36 | +// compileOnly project(':refresh-layout-kernel') | | 37 | + compileOnly 'com.scwang.smart:refresh-layout-kernel:0.0.1' | 38 | 38 | } | 39 | 39 |
| 40 | 40 | publish { | |
Collapse file Copy file name to clipboard +26Lines changed: 26 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +package com.scwang.smart.refresh.footer; | | 2 | + | | 3 | +import android.content.Context; | | 4 | +import android.support.test.InstrumentationRegistry; | | 5 | +import android.support.test.runner.AndroidJUnit4; | | 6 | + | | 7 | +import org.junit.Test; | | 8 | +import org.junit.runner.RunWith; | | 9 | + | | 10 | +import static org.junit.Assert.*; | | 11 | + | | 12 | +/** | | 13 | + * Instrumented test, which will execute on an Android device. | | 14 | + * | | 15 | + * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | | 16 | + */ | | 17 | +@RunWith(AndroidJUnit4.class) | | 18 | +public class ExampleInstrumentedTest { | | 19 | + @Test | | 20 | + public void useAppContext() { | | 21 | + // Context of the app under test. | | 22 | + Context appContext = InstrumentationRegistry.getTargetContext(); | | 23 | + | | 24 | + assertEquals("com.scwang.smart.refresh.header.test", appContext.getPackageName()); | | 25 | + } | | 26 | +} |
Collapse file Copy file name to clipboardExpand all lines: refresh-footer-classics/src/main/java/com/scwang/smart/refresh/classics/ClassicsAbstract.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 27 | 27 |
| 28 | 28 | import static android.view.View.MeasureSpec.EXACTLY; | 29 | 29 |
| 30 | | -//@SuppressWarnings({"unused", "UnusedReturnValue"}) | | 30 | +@SuppressWarnings({"unused", "UnusedReturnValue"}) | 31 | 31 | public abstract class ClassicsAbstract<T extends ClassicsAbstract> extends SimpleComponent implements RefreshComponent { | 32 | 32 |
| 33 | 33 | public static final int ID_TEXT_TITLE = R.id.srl_classics_title; | |
Collapse file Copy file name to clipboardExpand all lines: refresh-footer-classics/src/main/java/com/scwang/smart/refresh/footer/ClassicsFooter.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 22 | 22 | * 经典上拉底部 | 23 | 23 | * Created by SCWANG on 2017/5/28. | 24 | 24 | */ | 25 | | -//@SuppressWarnings({"unused", "UnusedReturnValue"}) | | 25 | +@SuppressWarnings({"unused", "UnusedReturnValue"}) | 26 | 26 | public class ClassicsFooter extends ClassicsAbstract<ClassicsFooter> implements RefreshFooter { | 27 | 27 |
| 28 | 28 | public static String REFRESH_FOOTER_PULLING = null;//"上拉加载更多"; | |
Collapse file Copy file name to clipboardExpand all lines: refresh-header-classics/src/main/java/com/scwang/smart/refresh/header/ClassicsHeader.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 39 | 39 | * 经典下拉头部 | 40 | 40 | * Created by SCWANG on 2017/5/28. | 41 | 41 | */ | 42 | | -//@SuppressWarnings({"unused", "UnusedReturnValue"}) | | 42 | +@SuppressWarnings({"unused", "UnusedReturnValue"}) | 43 | 43 | public class ClassicsHeader extends ClassicsAbstract<ClassicsHeader> implements RefreshHeader { | 44 | 44 |
| 45 | 45 | public static final int ID_TEXT_UPDATE = R.id.srl_classics_update; | |
Collapse file Copy file name to clipboardExpand all lines: refresh-header-falsify/src/main/java/com/scwang/smart/refresh/header/FalsifyFooter.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 15 | 15 | * 用于 正真的 Footer 在 RefreshLayout 外部时, | 16 | 16 | * Created by SCWANG on 2017/6/14. | 17 | 17 | */ | 18 | | -//@SuppressWarnings("unused") | | 18 | +@SuppressWarnings("unused") | 19 | 19 | public class FalsifyFooter extends FalsifyAbstract implements RefreshFooter { | 20 | 20 |
| 21 | 21 | //<editor-fold desc="FalsifyHeader"> | |
|