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