From 96c9ca22cb1b274b37e481a2cf09b10d16878ed3 Mon Sep 17 00:00:00 2001 From: Michal Holecy Date: Wed, 2 Aug 2017 09:24:28 +0200 Subject: [PATCH 1/2] SDK: Updating Android SDK version to 26 --- app/build.gradle | 18 ++++++------ .../sygic/travel/sdkdemo/DemoMainActivity.kt | 11 ++++---- .../sdkdemo/detail/PlaceDetailActivity.kt | 28 +++++++++---------- .../sdkdemo/detail/ReferenceActivity.kt | 4 +-- .../sdkdemo/favorites/FavoritesActivity.kt | 2 +- .../sdkdemo/filters/CategoriesDialog.kt | 2 +- .../travel/sdkdemo/gallery/GalleryActivity.kt | 2 +- .../travel/sdkdemo/gallery/GalleryAdapter.kt | 2 +- .../travel/sdkdemo/gallery/PhotoActivity.kt | 2 +- .../travel/sdkdemo/list/PlacesAdapter.kt | 5 ++-- .../travel/sdkdemo/list/PlacesListActivity.kt | 2 +- .../travel/sdkdemo/search/SearchActivity.kt | 4 +-- .../travel/sdkdemo/tours/ToursActivity.kt | 2 +- .../travel/sdkdemo/tours/ToursAdapter.kt | 4 +-- build.gradle | 2 +- sdk/build.gradle | 8 +++--- 16 files changed, 49 insertions(+), 49 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 578dd78d..459aa94d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,13 +2,13 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' android { - compileSdkVersion 25 - buildToolsVersion "25.0.3" + compileSdkVersion 26 + buildToolsVersion "26.0.1" defaultConfig { applicationId "com.sygic.travel.sdkdemo" minSdkVersion 15 - targetSdkVersion 25 + targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" @@ -30,15 +30,15 @@ dependencies { compile project(":sdk") // google - compile 'com.google.android.gms:play-services-location:11.0.2' - compile 'com.google.android.gms:play-services-maps:11.0.2' + compile 'com.google.android.gms:play-services-location:11.0.4' + compile 'com.google.android.gms:play-services-maps:11.0.4' compile 'com.google.android:flexbox:0.3.0' // Android - compile 'com.android.support:appcompat-v7:25.4.0' - compile 'com.android.support:design:25.4.0' - compile 'com.android.support:cardview-v7:25.4.0' - compile 'com.android.support:recyclerview-v7:25.4.0' + compile 'com.android.support:appcompat-v7:26.0.0' + compile 'com.android.support:design:26.0.0' + compile 'com.android.support:cardview-v7:26.0.0' + compile 'com.android.support:recyclerview-v7:26.0.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' // photos diff --git a/app/src/main/java/com/sygic/travel/sdkdemo/DemoMainActivity.kt b/app/src/main/java/com/sygic/travel/sdkdemo/DemoMainActivity.kt index 2818eba4..c43d2ddf 100644 --- a/app/src/main/java/com/sygic/travel/sdkdemo/DemoMainActivity.kt +++ b/app/src/main/java/com/sygic/travel/sdkdemo/DemoMainActivity.kt @@ -3,6 +3,7 @@ package com.sygic.travel.sdkdemo import android.content.Intent import android.os.Bundle import android.support.v7.app.AppCompatActivity +import android.widget.Button import com.sygic.travel.sdk.StSDK import com.sygic.travel.sdkdemo.favorites.FavoritesActivity import com.sygic.travel.sdkdemo.list.PlacesListActivity @@ -23,11 +24,11 @@ class DemoMainActivity : AppCompatActivity() { } private fun initUI() { - findViewById(R.id.btn_map_activity).setOnClickListener { startMapActivity() } - findViewById(R.id.btn_list_activity).setOnClickListener { startListActivity() } - findViewById(R.id.btn_search_activity).setOnClickListener { startSearchActivity() } - findViewById(R.id.btn_tours_activity).setOnClickListener { startToursActivity() } - findViewById(R.id.btn_favorites_activity).setOnClickListener { startFavoritesActivity() } + findViewById