diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 5291345..ca8abe0 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,127 +1,129 @@ + android:name=".BustoApp" + android:networkSecurityConfig="@xml/networks_security_config" + android:allowBackup="true" + android:icon="@drawable/ic_launcher" + android:label="@string/app_name" + android:theme="@style/AppTheme"> diff --git a/build.gradle b/build.gradle index 6af1718..3edbf00 100644 --- a/build.gradle +++ b/build.gradle @@ -1,87 +1,106 @@ buildscript { repositories { jcenter() maven { url 'https://maven.google.com' } google() } dependencies { - classpath 'com.android.tools.build:gradle:3.1.4' + + classpath 'com.android.tools.build:gradle:4.0.0' } ext { - support_ver = "25.4.0" + //libraries versions + fragment_version = "1.2.5" + activity_version = "1.1.0" + appcompat_version = "1.2.0" + preference_version = "1.1.1" + work_version = "2.4.0" + + acra_version = "5.7.0" + } } allprojects { repositories { jcenter() maven { url 'https://maven.google.com' } google() } } apply plugin: 'com.android.application' android { - compileSdkVersion 25 - buildToolsVersion '27.0.3' + compileSdkVersion 28 + buildToolsVersion '29.0.3' defaultConfig { applicationId "it.reyboz.bustorino" - minSdkVersion 9 - targetSdkVersion 25 + minSdkVersion 14 + targetSdkVersion 28 versionCode 30 versionName "1.13.1" vectorDrawables.useSupportLibrary = true } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } } buildTypes { debug { applicationIdSuffix ".debug" versionNameSuffix "-dev" } } lintOptions { abortOnError false } repositories { jcenter() mavenLocal() } dependencies { - implementation "com.android.support:support-v4:$support_ver" - implementation "com.android.support:appcompat-v7:$support_ver" - implementation "com.android.support:design:$support_ver" - implementation "com.android.support:recyclerview-v7:$support_ver" - implementation "com.android.support:preference-v7:$support_ver" - implementation "com.android.support:cardview-v7:$support_ver" + //new libraries + implementation "androidx.fragment:fragment:$fragment_version" + implementation "androidx.activity:activity:$activity_version" + implementation "androidx.annotation:annotation:1.1.0" + implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0" + implementation "androidx.appcompat:appcompat:$appcompat_version" + implementation "androidx.appcompat:appcompat-resources:$appcompat_version" + implementation "androidx.preference:preference:$preference_version" + implementation "androidx.work:work-runtime:$work_version" + + + implementation 'com.google.android.material:material:1.2.1' implementation 'org.jsoup:jsoup:1.13.1' implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1' implementation 'com.android.volley:volley:1.1.1' implementation 'org.osmdroid:osmdroid-android:6.1.8' + // ACRA + implementation "ch.acra:acra-mail:$acra_version" + implementation "ch.acra:acra-dialog:$acra_version" + } } diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..2d8d1e4 --- /dev/null +++ b/gradle.properties @@ -0,0 +1 @@ +android.useAndroidX=true \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 558870d..c6088f1 100755 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ +#Thu Oct 01 23:03:06 CEST 2020 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip diff --git a/res/layout-v11/activity_main.xml b/res/layout-v11/activity_main.xml index 4ae832d..8651187 100644 --- a/res/layout-v11/activity_main.xml +++ b/res/layout-v11/activity_main.xml @@ -1,164 +1,163 @@