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

Update project code and dependencies for 2021 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added .idea/caches/build_file_checksums.ser
Binary file not shown.
6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/dictionaries/benj.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ Scrollable view which can be used to give different choices to user with nice ui

# Add With Gradle Dependency
```groovy
compile 'com.webianks.library:scroll-choice:1.0.1'
implementation 'com.webianks.library:scroll-choice:1.0.2'
```
**Maven:**
```xml
<dependency>
<groupId>com.webianks.library</groupId>
<artifactId>scroll-choice</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<type>pom</type>
</dependency>
```
# Min SDK
15

# Compile SDK
25
29

# Add ScrollChoice to layout
```xml
Expand Down Expand Up @@ -61,7 +61,7 @@ data.add("France");

**Add to the ScrollChoice object with default selected item index**
```java
scrollChoice.addItems(data,5);
scrollChoice.addItems(data, 5);
```

**Attach listener to listen to know which item was selected**
Expand Down
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.webianks.library.scrollchoice"
minSdkVersion 15
targetSdkVersion 25
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -20,6 +20,6 @@ android {
}

dependencies {
compile 'com.android.support:appcompat-v7:25.1.0'
compile project(':scroll-choice');
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation project(':scroll-choice')
}
20 changes: 0 additions & 20 deletions app/src/main/res/drawable/border_background.xml

This file was deleted.

13 changes: 0 additions & 13 deletions app/src/main/res/drawable/gradient_background.xml

This file was deleted.

5 changes: 0 additions & 5 deletions app/src/main/res/values/dimens.xml

This file was deleted.

6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.4.0-alpha5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'

// NOTE: Do not place your application dependencies here; they belong
Expand All @@ -17,6 +18,7 @@ buildscript {
allprojects {
repositories {
jcenter()
google()
}
}

Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Apr 13 21:32:38 IST 2017
#Fri Dec 11 16:53:01 CET 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
10 changes: 5 additions & 5 deletions scroll-choice/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ext {
siteUrl = 'http://www.webianks.com/scrollchoice'
gitUrl = 'https://github.com/webianks/ScrollChoice.git'

libraryVersion = '1.0.1'
libraryVersion = '1.0.2'

developerId = 'webianks'
developerName = 'Ramankit Singh'
Expand All @@ -25,12 +25,12 @@ ext {
}

android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
compileSdkVersion 29
buildToolsVersion "29.0.2"

defaultConfig {
minSdkVersion 15
targetSdkVersion 25
targetSdkVersion 29
versionCode 2
versionName "1.1"

Expand All @@ -46,7 +46,7 @@ android {
}

dependencies {
compile 'com.android.support:appcompat-v7:25.1.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
}
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
package com.webianks.library.scroll_choice;

/**
* Created by R Ankit on 17-02-2017.
*/

import android.content.Context;
import android.util.AttributeSet;
import java.util.List;

/**
* Created by R Ankit on 17-02-2017.
*/
public class ScrollChoice extends WheelPicker {

private OnItemSelectedListener onItemSelectedListener;

WheelPicker.Adapter adapter;
final WheelPicker.Adapter adapter;
private int defaultIndex;

public ScrollChoice(Context context) {
Expand Down
Loading