From: Soren Stoutner Date: Tue, 14 Jan 2020 22:05:11 +0000 (-0700) Subject: Convert AboutViewSourceDialog to Kotlin. https://redmine.stoutner.com/issues/518 X-Git-Tag: v3.4~12 X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=commitdiff_plain;h=26947f6f7ad8b544a8d20f3397f157d079c7362e Convert AboutViewSourceDialog to Kotlin. https://redmine.stoutner.com/issues/518 --- diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 39e8a677..0d3cc348 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -3,9 +3,6 @@ diff --git a/app/build.gradle b/app/build.gradle index ff5a8a82..5ca89f82 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,5 +1,5 @@ /* - * Copyright © 2016-2019 Soren Stoutner . + * Copyright © 2016-2020 Soren Stoutner . * * This file is part of Privacy Browser . * @@ -18,6 +18,8 @@ */ apply plugin: 'com.android.application' +apply plugin: 'kotlin-android-extensions' +apply plugin: 'kotlin-android' android { compileSdkVersion 29 @@ -64,6 +66,10 @@ android { } } +repositories { + mavenCentral() +} + dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') @@ -73,12 +79,16 @@ dependencies { implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.cardview:cardview:1.0.0' implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0' + implementation "androidx.core:core-ktx:1.1.0" implementation 'androidx.drawerlayout:drawerlayout:1.0.0' implementation 'androidx.preference:preference:1.1.0' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' implementation 'androidx.viewpager:viewpager:1.0.0' implementation 'androidx.webkit:webkit:1.1.0' + // Include the Kotlin standard libraries + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61" + // Include the Google material library. implementation 'com.google.android.material:material:1.0.0' diff --git a/app/src/free/res/values-fr/strings.xml b/app/src/free/res/values-fr/strings.xml index 80d4ae22..ac061319 100644 --- a/app/src/free/res/values-fr/strings.xml +++ b/app/src/free/res/values-fr/strings.xml @@ -1,7 +1,7 @@ + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 694ed6b6..6bbaedf5 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,7 +1,7 @@ - + @@ -31,11 +32,11 @@ @style/PrivacyBrowserAppBarLight @color/blue_700 @style/PrivacyBrowserTabLayoutDialogLight + @color/blue_800 @color/gray_500 @color/blue_700 @color/white @color/blue_800 - @color/blue_800 @color/blue_700 @color/red_a700 @color/blue_700 @@ -48,15 +49,17 @@ diff --git a/build.gradle b/build.gradle index 3286a50c..46d1616d 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ /* - * Copyright © 2016-2019 Soren Stoutner . + * Copyright © 2016-2020 Soren Stoutner . * * This file is part of Privacy Browser . * @@ -20,12 +20,14 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { + ext.kotlin_version = '1.3.61' repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.5.3' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files