Skip to content

Commit ace1a5c

Browse files
author
Denis Miller
committed
API27, gradle 4.1, sample app fixed to flschweiger#33
1 parent 8de75ad commit ace1a5c

File tree

5 files changed

+32
-14
lines changed

5 files changed

+32
-14
lines changed

build.gradle

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,24 @@
33
buildscript {
44
repositories {
55
jcenter()
6+
maven {
7+
url 'https://maven.google.com/'
8+
name 'Google'
9+
}
610
}
711
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.0'
9-
classpath 'com.novoda:bintray-release:0.3.4'
12+
classpath 'com.android.tools.build:gradle:3.0.1'
13+
classpath 'com.novoda:bintray-release:0.7.0'
1014
}
1115
}
1216

1317
allprojects {
1418
repositories {
1519
jcenter()
20+
maven {
21+
url 'https://maven.google.com/'
22+
name 'Google'
23+
}
1624
}
1725
}
1826

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Thu Dec 15 03:17:16 IST 2016
1+
#Wed Nov 29 09:35:22 JST 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

library/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ def final String VERSION_NAME = "0.3.0"
55
def final int VERSION_CODE = 30
66

77
android {
8-
compileSdkVersion 25
9-
buildToolsVersion "25.0.0"
8+
compileSdkVersion 27
9+
buildToolsVersion "27.0.1"
1010

1111
defaultConfig {
1212
minSdkVersion 16
13-
targetSdkVersion 23
13+
targetSdkVersion 27
1414
versionCode VERSION_CODE
1515
versionName VERSION_NAME
1616
}
@@ -25,7 +25,7 @@ android {
2525
dependencies {
2626
compile fileTree(dir: 'libs', include: ['*.jar'])
2727
testCompile 'junit:junit:4.12'
28-
compile 'com.android.support:appcompat-v7:25.0.1'
28+
compile 'com.android.support:appcompat-v7:27.0.2'
2929
}
3030

3131
publish {

sample/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 23
5-
buildToolsVersion "23.0.2"
4+
compileSdkVersion 27
5+
buildToolsVersion "27.0.1"
66

77
defaultConfig {
88
applicationId "link.fls.swipestacksample"
99
minSdkVersion 16
10-
targetSdkVersion 23
10+
targetSdkVersion 27
1111
versionCode 1
1212
versionName "1.0"
1313
}
@@ -23,7 +23,7 @@ dependencies {
2323
compile fileTree(dir: 'libs', include: ['*.jar'])
2424
testCompile 'junit:junit:4.12'
2525
compile project(':library')
26-
compile 'com.android.support:appcompat-v7:23.1.1'
27-
compile 'com.android.support:cardview-v7:23.1.1'
28-
compile 'com.android.support:design:23.1.1'
26+
compile 'com.android.support:appcompat-v7:27.0.2'
27+
compile 'com.android.support:cardview-v7:27.0.2'
28+
compile 'com.android.support:design:27.0.2'
2929
}

sample/src/main/java/link/fls/swipestacksample/MainActivity.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,16 @@ public void onStackEmpty() {
130130
Toast.makeText(this, R.string.stack_empty, Toast.LENGTH_SHORT).show();
131131
}
132132

133+
@Override
134+
public void onClick() {
135+
136+
}
137+
138+
@Override
139+
public void onLongClick(long duration) {
140+
141+
}
142+
133143
public class SwipeStackAdapter extends BaseAdapter {
134144

135145
private List<String> mData;

0 commit comments

Comments
 (0)