Skip to content

Commit b6c81d4

Browse files
committed
rename package
1 parent 78bf22e commit b6c81d4

File tree

34 files changed

+82
-82
lines changed

34 files changed

+82
-82
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ repositories {
5050
dependencies {
5151
...
5252
// android view system implementation
53-
implementation "wtf.s1.ptr:nsptr-view:x.x.x"
53+
implementation "wtf.s1.ui:nsptr-view:x.x.x"
5454
// jetpack compose implementation
55-
implementation "wtf.s1.ptr:nsptr-compose:x.x.x"
55+
implementation "wtf.s1.ui:nsptr-compose:x.x.x"
5656
...
5757
}
5858
```
@@ -117,13 +117,13 @@ addView(
117117
- or use in XML layouts
118118

119119
```xml
120-
<wtf.s1.ptr.nsptr.view.NSPtrEZLayout
120+
<wtf.s1.ui.nsptr.view.NSPtrEZLayout
121121
android:layout_width="match_parent"
122122
android:layout_height="match_parent">
123123

124124
<androidx.recyclerview.widget.RecyclerView
125125
android:layout_width="match_parent"
126126
android:layout_height="match_parent"/>
127127

128-
</wtf.s1.ptr.nsptr.view.NSPtrEZLayout>
128+
</wtf.s1.ui.nsptr.view.NSPtrEZLayout>
129129
```

README_CN.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ repositories {
4646
dependencies {
4747
...
4848
// android view system 的依赖
49-
implementation "wtf.s1.ptr:nsptr-view:x.x.x"
49+
implementation "wtf.s1.ui:nsptr-view:x.x.x"
5050
// jetpack compose 的依赖
51-
implementation "wtf.s1.ptr:nsptr-compose:x.x.x"
51+
implementation "wtf.s1.ui:nsptr-compose:x.x.x"
5252
...
5353
}
5454
```
@@ -113,13 +113,13 @@ addView(
113113
- 用XML实现
114114

115115
```xml
116-
<wtf.s1.ptr.nsptr.view.NSPtrEZLayout
116+
<wtf.s1.ui.nsptr.view.NSPtrEZLayout
117117
android:layout_width="match_parent"
118118
android:layout_height="match_parent">
119119

120120
<androidx.recyclerview.widget.RecyclerView
121121
android:layout_width="match_parent"
122122
android:layout_height="match_parent"/>
123123

124-
</wtf.s1.ptr.nsptr.view.NSPtrEZLayout>
124+
</wtf.s1.ui.nsptr.view.NSPtrEZLayout>
125125
```

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import wtf.s1rius.ptr.buildsrc.*
1+
import wtf.s1.ui.buildsrc.*
22

33
buildscript {
44
repositories {
55
mavenLocal()
66
google()
77
mavenCentral()
88
jcenter()
9+
maven { url "https://oss.sonatype.org/content/repositories/snapshots"}
910
}
1011

1112
dependencies {
@@ -24,5 +25,6 @@ allprojects {
2425
google()
2526
mavenCentral()
2627
jcenter()
28+
maven { url "https://oss.sonatype.org/content/repositories/snapshots"}
2729
}
2830
}

buildSrc/src/main/java/wtf/s1rius/ptr/buildsrc/Configs.kt renamed to buildSrc/src/main/java/wtf/s1/ui/buildsrc/Configs.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wtf.s1rius.ptr.buildsrc
1+
package wtf.s1.ui.buildsrc
22

33
const val dev = true
44

@@ -15,9 +15,9 @@ object Versions {
1515
const val versionName = "1.0.0"
1616
const val bytex = "0.2.7"
1717
const val compose = "1.0.0"
18-
const val nsptr = "0.1.0"
18+
const val nsptr = "0.1.0-SNAPSHOT"
1919
const val nsptrDev = "0.1.0-SNAPSHOT"
20-
const val group = "wtf.s1.ptr"
20+
const val group = "wtf.s1.ui"
2121
}
2222

2323
object Plugins {
@@ -27,9 +27,9 @@ object Plugins {
2727
object Deps {
2828

2929

30-
const val nsptrCore = "wtf.s1.ptr:nsptr-core:${Versions.nsptr}"
31-
const val nsptrView = "wtf.s1.ptr:nsptr-view:${Versions.nsptr}"
32-
const val nsptrCompose = "wtf.s1.ptr:nsptr-compose:${Versions.nsptr}"
30+
const val nsptrCore = "wtf.s1.ui:nsptr-core:${Versions.nsptr}"
31+
const val nsptrView = "wtf.s1.ui:nsptr-view:${Versions.nsptr}"
32+
const val nsptrCompose = "wtf.s1.ui:nsptr-compose:${Versions.nsptr}"
3333

3434

3535
object Kotlin {

ptr-compose/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import wtf.s1rius.ptr.buildsrc.*
16+
import wtf.s1.ui.buildsrc.*
1717

1818
plugins {
1919
id 'com.android.library'

ptr-compose/gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
GROUP=wtf.s1.ptr
21
POM_NAME=nsptr-compose
32
POM_DESCRIPTION=nsptr
43
POM_ARTIFACT_ID=nsptr-compose

ptr-compose/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
~ limitations under the License.
1515
-->
1616

17-
<manifest package="wtf.s1.ptr.nsptr.compose">
17+
<manifest package="wtf.s1.ui.nsptr.compose">
1818
</manifest>

ptr-compose/src/main/java/wtf/s1/ptr/nsptr/compose/NSPtrDefault.kt renamed to ptr-compose/src/main/java/wtf/s1/ui/nsptr/compose/NSPtrDefault.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wtf.s1.ptr.nsptr.compose
1+
package wtf.s1.ui.nsptr.compose
22

33
import androidx.compose.animation.core.*
44
import androidx.compose.foundation.Canvas
@@ -11,9 +11,9 @@ import androidx.compose.ui.graphics.Color
1111
import androidx.compose.ui.graphics.drawscope.Stroke
1212
import androidx.compose.ui.unit.Dp
1313
import androidx.compose.ui.unit.dp
14-
import wtf.s1.ptr.nsptr.SideEffect
15-
import wtf.s1.ptr.nsptr.State
16-
import wtf.s1.ptr.nsptr.StateMachine
14+
import wtf.s1.ui.nsptr.SideEffect
15+
import wtf.s1.ui.nsptr.State
16+
import wtf.s1.ui.nsptr.StateMachine
1717

1818
@Composable
1919
fun NSPtrEZHeader(

ptr-compose/src/main/java/wtf/s1/ptr/nsptr/compose/NSPtrGesture.kt renamed to ptr-compose/src/main/java/wtf/s1/ui/nsptr/compose/NSPtrGesture.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wtf.s1.ptr.nsptr.compose
1+
package wtf.s1.ui.nsptr.compose
22

33
import androidx.compose.foundation.gestures.awaitFirstDown
44
import androidx.compose.foundation.gestures.forEachGesture

ptr-compose/src/main/java/wtf/s1/ptr/nsptr/compose/NSPtrLayout.kt renamed to ptr-compose/src/main/java/wtf/s1/ui/nsptr/compose/NSPtrLayout.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wtf.s1.ptr.nsptr.compose
1+
package wtf.s1.ui.nsptr.compose
22

33
import androidx.compose.animation.core.AnimationSpec
44
import androidx.compose.animation.core.SpringSpec
@@ -20,8 +20,8 @@ import androidx.compose.ui.unit.Dp
2020
import androidx.compose.ui.unit.dp
2121
import kotlinx.coroutines.CoroutineScope
2222
import kotlinx.coroutines.launch
23-
import wtf.s1.ptr.nsptr.*
24-
import wtf.s1.ptr.nsptr.State
23+
import wtf.s1.ui.nsptr.*
24+
import wtf.s1.ui.nsptr.State
2525
import kotlin.math.max
2626
import kotlin.math.roundToInt
2727

0 commit comments

Comments
 (0)