diff --git a/.idea/compiler.xml b/.idea/compiler.xml index e17b2a66e..0a99795a6 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,7 +1,7 @@ - + diff --git a/.idea/copyright/GPLv3.xml b/.idea/copyright/GPLv3.xml deleted file mode 100644 index 66bb9ca87..000000000 --- a/.idea/copyright/GPLv3.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index a1bc6c6ec..8c3efbe98 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -52,7 +52,7 @@ - + diff --git a/app-compose/build.gradle b/app-compose/build.gradle index ce3e75ede..ee52e8ff8 100644 --- a/app-compose/build.gradle +++ b/app-compose/build.gradle @@ -31,6 +31,7 @@ android { buildFeatures { compose = true + buildConfig = true } composeOptions { diff --git a/app-compose/src/main/AndroidManifest.xml b/app-compose/src/main/AndroidManifest.xml new file mode 100644 index 000000000..889d93519 --- /dev/null +++ b/app-compose/src/main/AndroidManifest.xml @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app-compose/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt b/app-compose/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt new file mode 100644 index 000000000..20fdc49f4 --- /dev/null +++ b/app-compose/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt @@ -0,0 +1,60 @@ +/* + * Copyright 2018 Allan Wang + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package com.pitchedapps.frost + +import android.app.Activity +import android.app.Application +import android.os.Bundle +import android.util.Log +import com.google.common.flogger.FluentLogger +import dagger.hilt.android.HiltAndroidApp +import java.util.Random +import javax.inject.Inject + +@HiltAndroidApp +class FrostApp : Application() { + + override fun onCreate() { + super.onCreate() + + if (BuildConfig.DEBUG) { + registerActivityLifecycleCallbacks( + object : ActivityLifecycleCallbacks { + override fun onActivityPaused(activity: Activity) {} + override fun onActivityResumed(activity: Activity) {} + override fun onActivityStarted(activity: Activity) {} + + override fun onActivityDestroyed(activity: Activity) { + logger.atFine().log("Activity %s destroyed", activity.localClassName) + } + + override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle) {} + + override fun onActivityStopped(activity: Activity) {} + + override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?) { + logger.atFine().log("Activity %s created", activity.localClassName) + } + } + ) + } + } + + companion object { + private val logger = FluentLogger.forEnclosingClass() + } +} diff --git a/app-compose/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt b/app-compose/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt new file mode 100644 index 000000000..a483aeab8 --- /dev/null +++ b/app-compose/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt @@ -0,0 +1,8 @@ +package com.pitchedapps.frost + +import androidx.appcompat.app.AppCompatActivity +import dagger.hilt.android.AndroidEntryPoint + +@AndroidEntryPoint +class StartActivity : AppCompatActivity() { +} diff --git a/app-compose/src/main/res/drawable-nodpi/splash_logo.9.png b/app-compose/src/main/res/drawable-nodpi/splash_logo.9.png new file mode 100644 index 000000000..a7c1590f7 Binary files /dev/null and b/app-compose/src/main/res/drawable-nodpi/splash_logo.9.png differ diff --git a/app-compose/src/main/res/drawable/badge_background.xml b/app-compose/src/main/res/drawable/badge_background.xml new file mode 100644 index 000000000..9dfc3cf03 --- /dev/null +++ b/app-compose/src/main/res/drawable/badge_background.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/app-compose/src/main/res/drawable/frost_f_200.xml b/app-compose/src/main/res/drawable/frost_f_200.xml new file mode 100644 index 000000000..3f07c6410 --- /dev/null +++ b/app-compose/src/main/res/drawable/frost_f_200.xml @@ -0,0 +1,14 @@ + + + + + \ No newline at end of file diff --git a/app-compose/src/main/res/drawable/frost_f_24.xml b/app-compose/src/main/res/drawable/frost_f_24.xml new file mode 100644 index 000000000..18271849d --- /dev/null +++ b/app-compose/src/main/res/drawable/frost_f_24.xml @@ -0,0 +1,14 @@ + + + + + \ No newline at end of file diff --git a/app-compose/src/main/res/drawable/splash_screen.xml b/app-compose/src/main/res/drawable/splash_screen.xml new file mode 100644 index 000000000..4e1c0048f --- /dev/null +++ b/app-compose/src/main/res/drawable/splash_screen.xml @@ -0,0 +1,10 @@ + + + + + + + + \ No newline at end of file diff --git a/app-compose/src/main/res/mipmap-hdpi/ic_launcher.png b/app-compose/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..770434900 Binary files /dev/null and b/app-compose/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/app-compose/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app-compose/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 000000000..a59dcdcfd Binary files /dev/null and b/app-compose/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/app-compose/src/main/res/mipmap-xhdpi/ic_launcher.png b/app-compose/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..930139b70 Binary files /dev/null and b/app-compose/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/app-compose/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app-compose/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 000000000..0252bdda3 Binary files /dev/null and b/app-compose/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/app-compose/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app-compose/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..59fba123d Binary files /dev/null and b/app-compose/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/app-compose/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app-compose/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..eec216a94 Binary files /dev/null and b/app-compose/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/app-compose/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app-compose/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..b47247cb4 Binary files /dev/null and b/app-compose/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/app-compose/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app-compose/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..4035896b3 Binary files /dev/null and b/app-compose/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/app-compose/src/main/res/values/colors.xml b/app-compose/src/main/res/values/colors.xml new file mode 100644 index 000000000..1f1f08722 --- /dev/null +++ b/app-compose/src/main/res/values/colors.xml @@ -0,0 +1,8 @@ + + + @color/facebook_blue + #3b5998 + #6183C8 + #2e4b86 + @color/facebook_blue + diff --git a/app-compose/src/main/res/values/dimens.xml b/app-compose/src/main/res/values/dimens.xml new file mode 100644 index 000000000..e2a8b870a --- /dev/null +++ b/app-compose/src/main/res/values/dimens.xml @@ -0,0 +1,3 @@ + + 16dp + diff --git a/app-compose/src/main/res/values/themes.xml b/app-compose/src/main/res/values/themes.xml new file mode 100644 index 000000000..09f3b0055 --- /dev/null +++ b/app-compose/src/main/res/values/themes.xml @@ -0,0 +1,24 @@ + + + + + + + + + diff --git a/app-compose/src/main/res/xml/file_paths.xml b/app-compose/src/main/res/xml/file_paths.xml new file mode 100644 index 000000000..568043d62 --- /dev/null +++ b/app-compose/src/main/res/xml/file_paths.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/app-compose/src/main/res/xml/frost_backup_rules.xml b/app-compose/src/main/res/xml/frost_backup_rules.xml new file mode 100644 index 000000000..9a1509b88 --- /dev/null +++ b/app-compose/src/main/res/xml/frost_backup_rules.xml @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file