Skip to content

Commit d16c17c

Browse files
authored
Merge pull request #7 from freshbits/v2.3.1
Version 2.3.1
2 parents d5654a6 + 52fac70 commit d16c17c

File tree

8 files changed

+34
-34
lines changed

8 files changed

+34
-34
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## 2.3.1 - 2020-01-31
4+
### Changed
5+
- Added manufacturer specific support
6+
- Minor improvements
7+
38
## 2.3.0 - 2018-12-01
49
### Changed
510
- Added image support to user
@@ -32,4 +37,4 @@
3237

3338
## 1.0.0 - 2015-12-23
3439
### Added
35-
- Pathshare SDK for Android.
40+
- Pathshare SDK for Android.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
## Requirements
2525

26-
`PathshareSDK` for Android supports Android 5.x, 6.x, 7.x, 8.x and 9.x.
26+
`PathshareSDK` for Android supports Android 5.x, 6.x, 7.x, 8.x, 9.x and 10.x.
2727

2828
## Installation
2929

@@ -38,7 +38,7 @@ repositories {
3838
3939
dependencies {
4040
...
41-
compile 'ch.freshbits.pathshare.sdk:pathshare-sdk:2.3.0'
41+
compile 'ch.freshbits.pathshare.sdk:pathshare-sdk:2.3.1'
4242
}
4343
```
4444

android-example-app/app-kotlin/build.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-android-extensions'
44

55
android {
6-
compileSdkVersion 27
6+
compileSdkVersion 28
77

88
defaultConfig {
99
applicationId "ch.freshbits.pathshare.example"
1010
minSdkVersion 21
11-
targetSdkVersion 27
12-
versionCode 2_3_0
13-
versionName "2.3.0"
11+
targetSdkVersion 28
12+
versionCode 131
13+
versionName "2.3.1"
1414

1515
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1616
}
@@ -50,8 +50,7 @@ repositories {
5050
dependencies {
5151
implementation fileTree(dir: 'libs', include: ['*.jar'])
5252
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
53-
implementation 'com.android.support:appcompat-v7:27.1.1'
54-
implementation 'ch.freshbits.pathshare.sdk:pathshare-sdk:2.3.0'
55-
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
56-
implementation 'com.android.support:design:27.1.1'
53+
testImplementation 'junit:junit:4.13'
54+
implementation 'androidx.appcompat:appcompat:1.2.0-alpha01'
55+
implementation 'ch.freshbits.pathshare.sdk:pathshare-sdk:2.3.1'
5756
}

android-example-app/app-kotlin/src/main/java/ch/freshbits/pathshare/example/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package ch.freshbits.pathshare.example
33
import android.content.Context
44
import android.content.SharedPreferences
55
import android.os.Bundle
6-
import android.support.v7.app.AppCompatActivity
76
import android.util.Log
87
import android.view.View
98
import android.widget.Button
109
import android.widget.Toast
10+
import androidx.appcompat.app.AppCompatActivity
1111
import ch.freshbits.pathshare.sdk.Pathshare
1212
import ch.freshbits.pathshare.sdk.helper.*
1313
import ch.freshbits.pathshare.sdk.model.Destination

android-example-app/app/build.gradle

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

33
android {
4-
compileSdkVersion 27
4+
compileSdkVersion 28
55

66
defaultConfig {
77
applicationId "ch.freshbits.pathshare.example"
88
minSdkVersion 25
9-
targetSdkVersion 27
10-
versionCode 2_3_0
11-
versionName "2.3.0"
9+
targetSdkVersion 28
10+
versionCode 131
11+
versionName "2.3.1"
1212
}
1313

1414
packagingOptions {
@@ -45,8 +45,7 @@ repositories {
4545

4646
dependencies {
4747
implementation fileTree(dir: 'libs', include: ['*.jar'])
48-
testImplementation 'junit:junit:4.12'
49-
//noinspection GradleCompatible
50-
implementation 'com.android.support:appcompat-v7:27.1.1'
51-
implementation 'ch.freshbits.pathshare.sdk:pathshare-sdk:2.3.0'
48+
testImplementation 'junit:junit:4.13'
49+
implementation 'androidx.appcompat:appcompat:1.2.0-alpha01'
50+
implementation 'ch.freshbits.pathshare.sdk:pathshare-sdk:2.3.1'
5251
}

android-example-app/app/src/main/java/ch/freshbits/pathshare/example/MainActivity.java

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,19 @@
66
import android.content.SharedPreferences;
77
import android.content.pm.PackageManager;
88
import android.os.Bundle;
9-
import android.support.annotation.NonNull;
109
import android.util.Log;
11-
import android.view.View;
1210
import android.widget.Button;
1311
import android.widget.Toast;
1412

13+
import androidx.annotation.NonNull;
14+
1515
import java.net.URL;
1616
import java.util.Date;
1717

1818
import ch.freshbits.pathshare.sdk.Pathshare;
1919
import ch.freshbits.pathshare.sdk.helper.InvitationResponseListener;
2020
import ch.freshbits.pathshare.sdk.helper.PermissionRequester;
2121
import ch.freshbits.pathshare.sdk.helper.ResponseListener;
22-
import ch.freshbits.pathshare.sdk.helper.SessionExpirationListener;
2322
import ch.freshbits.pathshare.sdk.helper.SessionResponseListener;
2423
import ch.freshbits.pathshare.sdk.model.Destination;
2524
import ch.freshbits.pathshare.sdk.model.Session;
@@ -174,13 +173,11 @@ private boolean hasLocationPermission() {
174173

175174
@Override
176175
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
177-
switch (requestCode) {
178-
case TAG_PERMISSIONS_REQUEST_LOCATION_ACCESS: {
179-
if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
180-
performJoinSession();
181-
} else {
182-
Toast.makeText(this, R.string.permission_access_fine_location_denied, Toast.LENGTH_SHORT).show();
183-
}
176+
if (requestCode == TAG_PERMISSIONS_REQUEST_LOCATION_ACCESS) {
177+
if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
178+
performJoinSession();
179+
} else {
180+
Toast.makeText(this, R.string.permission_access_fine_location_denied, Toast.LENGTH_SHORT).show();
184181
}
185182
}
186183
}

android-example-app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.kotlin_version = '1.2.61'
4+
ext.kotlin_version = '1.3.10'
55

66
repositories {
77
jcenter()
88
google()
99
}
1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.2.1'
11+
classpath 'com.android.tools.build:gradle:3.5.3'
1212
// NOTE: Do not place your application dependencies here; they belong
1313
// in the individual module build.gradle files
1414
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Sat Dec 01 00:29:09 CET 2018
1+
#Fri Jan 31 15:26:07 CET 2020
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-4.6-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

0 commit comments

Comments
 (0)