diff --git a/AndroidManifest.xml b/AndroidManifest.xml --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2,8 +2,6 @@ - - @@ -14,13 +12,19 @@ + android:name=".BustoApp" + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:networkSecurityConfig="@xml/networks_security_config" + android:roundIcon="@mipmap/ic_launcher_round" + android:theme="@style/AppTheme.NoActionBar"> + + + + android:name=".ActivityMap" + android:label="@string/title_activity_map" + android:parentActivityName=".ActivityMain" + android:theme="@style/MapTheme"> + android:name="android.support.PARENT_ACTIVITY" + android:value=".ActivityMain"/> - + android:label="@string/app_name" + android:screenOrientation="portrait"> - - + @@ -132,4 +134,4 @@ - + \ No newline at end of file diff --git a/build.gradle b/build.gradle --- a/build.gradle +++ b/build.gradle @@ -6,11 +6,9 @@ } - dependencies { - - classpath 'com.android.tools.build:gradle:4.1.3' - } ext { + //multidex + multidex_version = "2.0.1" //libraries versions fragment_version = "1.3.6" activity_version = "1.2.4" @@ -21,8 +19,17 @@ acra_version = "5.7.0" lifecycle_version = "2.3.1" arch_version = "2.1.0" + room_version = "2.3.0" + //kotlin + kotlin_version = '1.5.0' + coroutines_version = "1.5.0" } + dependencies { + + classpath 'com.android.tools.build:gradle:4.1.3' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } } allprojects { repositories { @@ -34,6 +41,8 @@ } apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply plugin: 'kotlin-kapt' android { compileSdkVersion 29 @@ -41,11 +50,12 @@ defaultConfig { applicationId "it.reyboz.bustorino" - minSdkVersion 14 + minSdkVersion 15 targetSdkVersion 29 versionCode 35 versionName "1.15.4" vectorDrawables.useSupportLibrary = true + multiDexEnabled true } compileOptions { @@ -91,8 +101,8 @@ implementation "androidx.preference:preference:$preference_version" implementation "androidx.work:work-runtime:$work_version" - - implementation "com.google.android.material:material:1.3.0" + implementation "com.google.android.material:material:1.4.0" + implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation 'org.jsoup:jsoup:1.13.1' @@ -113,5 +123,18 @@ // Lifecycles only (without ViewModel or LiveData) implementation "androidx.lifecycle:lifecycle-runtime:$lifecycle_version" + // Room components + implementation "androidx.room:room-ktx:$room_version" + kapt "androidx.room:room-compiler:$room_version" + androidTestImplementation "androidx.room:room-testing:$room_version" + //multidex - we need this to build the app + implementation "androidx.multidex:multidex:$multidex_version" } } + +dependencies { + + implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version" + api "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version" +} \ No newline at end of file diff --git a/res/layout/activity_experiments.xml b/res/layout/activity_experiments.xml new file mode 100644 --- /dev/null +++ b/res/layout/activity_experiments.xml @@ -0,0 +1,19 @@ + + + +