File tree 9 files changed +68
-49
lines changed
9 files changed +68
-49
lines changed Original file line number Diff line number Diff line change
1
+ ko_fi : shawnlin
Original file line number Diff line number Diff line change 3
3
The android library that provides a simple and customizable NumberPicker.
4
4
It's based on [ android.widget.NumberPicker] ( https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/widget/NumberPicker.java ) .
5
5
6
- [ ![ Platform] ( http://img.shields.io/badge/platform-android-brightgreen.svg?style=flat )] ( http://developer.android.com/index.html ) [ ![ Language] ( http://img.shields.io/badge/language-java-orange.svg?style=flat )] ( http://www.oracle.com/technetwork/java/javase/downloads/index.html ) [ ![ ] ( https://img.shields.io/badge/License-MIT-blue.svg )] ( https://opensource.org/licenses/MIT ) [ ![ Android Arsenal] ( https://img.shields.io/badge/Android%20Arsenal-NumberPicker-green.svg?style=true )] ( https://android-arsenal.com/details/1/3718 ) [ ![ API] ( https://img.shields.io/badge/API-15%2B-blue.svg?style=flat )] ( https://android-arsenal.com/api?level=15 ) [ ![ Download] ( https://api.bintray.com/packages/shawnlin013/maven/number-picker/images/download.svg )] ( https://bintray.com/shawnlin013/maven/number-picker/_latestVersion ) [ ![ CircleCI] ( https://circleci.com/gh/ShawnLin013/NumberPicker.svg?style=svg )] ( https://circleci.com/gh/ShawnLin013/NumberPicker )
6
+ [ ![ Platform] ( http://img.shields.io/badge/platform-android-brightgreen.svg?style=flat )] ( http://developer.android.com/index.html ) [ ![ Language] ( http://img.shields.io/badge/language-java-orange.svg?style=flat )] ( http://www.oracle.com/technetwork/java/javase/downloads/index.html ) [ ![ ] ( https://img.shields.io/badge/License-MIT-blue.svg )] ( https://opensource.org/licenses/MIT ) [ ![ Android Arsenal] ( https://img.shields.io/badge/Android%20Arsenal-NumberPicker-green.svg?style=true )] ( https://android-arsenal.com/details/1/3718 ) [ ![ API] ( https://img.shields.io/badge/API-15%2B-blue.svg?style=flat )] ( https://android-arsenal.com/api?level=15 ) ![ Maven Central] ( https://img.shields.io/maven-central/v/io.github.ShawnLin013/number-picker ) [ ![ CircleCI] ( https://circleci.com/gh/ShawnLin013/NumberPicker.svg?style=svg )] ( https://circleci.com/gh/ShawnLin013/NumberPicker )
7
+ [ ![ GitHub stars] ( https://img.shields.io/github/stars/ShawnLin013/NumberPicker )] ( https://github.com/ShawnLin013/NumberPicker/stargazers ) [ ![ GitHub forks] ( https://img.shields.io/github/forks/ShawnLin013/NumberPicker )] ( https://github.com/ShawnLin013/NumberPicker/network )
7
8
8
9
<img src =" https://github.com/ShawnLin013/NumberPicker/blob/master/screenshot/number-picker-theme.png " >
9
10
@@ -138,7 +139,7 @@ add `xmlns:app="http://schemas.android.com/apk/res-auto"`
138
139
139
140
### Attributes
140
141
141
- | attribute name| attribute description| defalut |
142
+ | attribute name| attribute description| default |
142
143
| :---:| :---:| :---:|
143
144
| np_width| The width of this widget.|
144
145
| np_height| The height of this widget.|
@@ -183,12 +184,12 @@ Add the dependency in your `build.gradle`
183
184
``` gradle
184
185
buildscript {
185
186
repositories {
186
- jcenter ()
187
+ mavenCentral ()
187
188
}
188
189
}
189
190
190
191
dependencies {
191
- implementation 'com.shawnlin :number-picker:2.4.12 '
192
+ implementation 'io.github.ShawnLin013 :number-picker:2.4.13 '
192
193
}
193
194
```
194
195
Original file line number Diff line number Diff line change @@ -6,17 +6,16 @@ buildscript {
6
6
mavenCentral()
7
7
}
8
8
dependencies {
9
- classpath ' com.android.tools.build:gradle:4.0.2'
10
- classpath " guru.stefma.bintrayrelease:bintrayrelease:1.1.2"
11
- // NOTE: Do not place your application dependencies here; they belong
12
- // in the individual module build.gradle files
9
+ classpath ' com.android.tools.build:gradle:8.2.2'
10
+ classpath ' com.vanniktech:gradle-maven-publish-plugin:0.28.0'
13
11
}
14
12
}
15
13
16
14
allprojects {
17
15
repositories {
18
16
google()
19
17
mavenCentral()
18
+ maven { url " https://jitpack.io" }
20
19
}
21
20
}
22
21
Original file line number Diff line number Diff line change 1
- VERSION_CODE =20
2
- VERSION_NAME =2.4.12
1
+ android.useAndroidX =true
2
+ android.enableJetifier =true
3
+ android.debug.obsoleteApi =true
3
4
4
- GROUP_ID =com.shawnlin
5
- ARTIFACT_ID =number-picker
5
+ VERSION_CODE =21
6
+ VERSION_NAME =2.4.13
6
7
8
+ GROUP =io.github.ShawnLin013
9
+ POM_ARTIFACT_ID =number-picker
10
+
11
+ POM_NAME =Number Picker
12
+ POM_PACKAGING =aar
7
13
POM_DESCRIPTION =The android library that provides a simple and customizable NumberPicker.
14
+ POM_INCEPTION_YEAR =2021
8
15
POM_URL =https://github.com/ShawnLin013/NumberPicker
9
- POM_LICENSE_NAME =MIT
10
- POM_LICENSE_URL =https://opensource.org/licenses/MIT
11
- POM_LICENSE_DIST =repo
12
- POM_DEVELOPER_ID =shawnlin013
13
- android.useAndroidX =true
14
- android.enableJetifier =true
15
- android.debug.obsoleteApi =true
16
+
17
+ POM_LICENCE_NAME =MIT
18
+ POM_LICENCE_URL =https://opensource.org/licenses/MIT
19
+ POM_LICENCE_DIST =repo
20
+
21
+ POM_SCM_URL =https://github.com/ShawnLin013/NumberPicker
22
+ POM_SCM_CONNECTION =scm:
[email protected] :ShawnLin013/NumberPicker.git
23
+ POM_SCM_DEV_CONNECTION =scm:
[email protected] :ShawnLin013/NumberPicker.git
24
+
25
+ POM_DEVELOPER_ID =ShawnLin013
26
+ POM_DEVELOPER_NAME =Shawn Lin
27
+ POM_DEVELOPER_URL =https://github.com/ShawnLin013/NumberPicker
Original file line number Diff line number Diff line change 1
- # Sat Jun 13 03:38:47 CST 2020
2
1
distributionBase =GRADLE_USER_HOME
3
2
distributionPath =wrapper/dists
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.2-bin.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
Original file line number Diff line number Diff line change 1
- apply plugin : ' com.android.library'
2
- apply plugin : " guru.stefma.bintrayrelease"
1
+ plugins {
2
+ id ' com.vanniktech.maven.publish'
3
+ id ' com.android.library'
4
+ }
3
5
4
6
android {
5
- compileSdkVersion 30
6
-
7
7
defaultConfig {
8
+ compileSdk 34
8
9
minSdkVersion 15
9
- targetSdkVersion 30
10
+ targetSdkVersion 34
10
11
versionCode VERSION_CODE as int
11
12
versionName VERSION_NAME
12
13
}
14
+
15
+ compileOptions {
16
+ sourceCompatibility JavaVersion . VERSION_17
17
+ targetCompatibility JavaVersion . VERSION_17
18
+ }
19
+
20
+ namespace ' com.shawnlin.numberpicker'
13
21
}
14
22
15
23
dependencies {
16
24
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
17
- implementation ' androidx.appcompat:appcompat:1.2 .0'
25
+ implementation ' androidx.appcompat:appcompat:1.3 .0'
18
26
}
19
27
20
- version = VERSION_NAME
21
- group = GROUP_ID
22
- androidArtifact {
23
- artifactId = ARTIFACT_ID
24
- license {
25
- name = POM_LICENSE_NAME
26
- url = POM_LICENSE_URL
27
- distribution = POM_LICENSE_DIST
28
+ publishing {
29
+ publications {
30
+ myMaven( MavenPublication ) {
31
+ groupId GROUP
32
+ artifactId POM_ARTIFACT_ID
33
+ version VERSION_NAME
34
+ artifact( " $b uildDir /outputs/aar/library-release.aar " )
35
+ }
28
36
}
29
37
}
30
- publish {
31
- userOrg = POM_DEVELOPER_ID
32
- desc = POM_DESCRIPTION
33
- website = POM_URL
34
- }
38
+
39
+ tasks. named(" publishMyMavenPublicationToMavenLocal" ) {
40
+ dependsOn tasks. named(" bundleReleaseAar" )
41
+ }
Original file line number Diff line number Diff line change 1
- <manifest package =" com.shawnlin.numberpicker"
2
- xmlns : android =" http://schemas.android.com/apk/res/android" >
3
- </manifest >
1
+ <manifest />
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
3
android {
4
- compileSdkVersion 30
5
-
6
4
defaultConfig {
7
5
applicationId " com.shawnlin.numberpicker.sample"
6
+ compileSdk 34
8
7
minSdkVersion 15
9
- targetSdkVersion 30
8
+ targetSdkVersion 34
10
9
versionCode 1
11
10
versionName " 1.0"
12
11
}
@@ -16,11 +15,13 @@ android {
16
15
proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
17
16
}
18
17
}
18
+
19
+ namespace ' com.shawnlin.numberpicker.sample'
19
20
}
20
21
21
22
dependencies {
22
23
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
23
- implementation ' androidx.appcompat:appcompat:1.2 .0'
24
- implementation ' com.google.android.material:material:1.3 .0-alpha03 '
24
+ implementation ' androidx.appcompat:appcompat:1.3 .0'
25
+ implementation ' com.google.android.material:material:1.4 .0-beta01 '
25
26
implementation project(' :library' )
26
27
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <manifest package = " com.shawnlin.numberpicker.sample "
2
+ <manifest
3
3
xmlns : android =" http://schemas.android.com/apk/res/android" >
4
4
5
5
<application
10
10
android : theme =" @style/AppTheme" >
11
11
<activity
12
12
android : name =" .MainActivity"
13
+ android : exported =" true"
13
14
android : label =" @string/app_name"
14
15
android : screenOrientation =" portrait"
15
16
android : theme =" @style/AppTheme.NoActionBar" >
You can’t perform that action at this time.
0 commit comments