From f8a2ceab6314bb309c771b18602f1b6ce3c44df0 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Thu, 12 Aug 2021 22:05:26 -0700 Subject: [PATCH] Create the Day/Night theme. --- app/build.gradle | 12 +- app/src/main/AndroidManifest.xml | 2 +- .../res/drawable/ic_launcher_background.xml | 170 ------------------ .../res/drawable/privacy_cell_foreground.xml | 2 +- app/src/main/res/values-night/themes.xml | 37 ++-- app/src/main/res/values/themes.xml | 19 +- build.gradle | 1 + 7 files changed, 36 insertions(+), 207 deletions(-) delete mode 100644 app/src/main/res/drawable/ic_launcher_background.xml diff --git a/app/build.gradle b/app/build.gradle index 5fb6c7e..14a34a2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -45,15 +45,6 @@ android { proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - - kotlinOptions { - jvmTarget = '1.8' - } } dependencies { @@ -61,6 +52,9 @@ dependencies { implementation 'androidx.core:core-ktx:1.6.0' implementation 'androidx.appcompat:appcompat:1.3.1' + // Include the Kotlin standard libraries. This should be the same version number listed in project build.gradle. + implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.21' + // Include the Google material library. implementation 'com.google.android.material:material:1.4.0' } \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index c273ea3..d63e1a4 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -37,7 +37,7 @@ android:allowBackup="false" android:fullBackupContent="false" android:supportsRtl="true" - android:theme="@style/Theme.5GStatus" > + android:theme="@style/Theme.PrivacyCell" > + - - \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 9099cb1..e4e0d1b 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -17,18 +17,11 @@ along with Privacy Browser. If not, see . --> - - \ No newline at end of file diff --git a/build.gradle b/build.gradle index 9f804b5..527bd22 100644 --- a/build.gradle +++ b/build.gradle @@ -23,6 +23,7 @@ buildscript { google() mavenCentral() } + dependencies { classpath "com.android.tools.build:gradle:7.0.0" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21" -- 2.45.2