Rename app

This commit is contained in:
William Brawner 2020-12-03 07:16:29 -07:00
parent b5524bcb35
commit 5ba0e818b2
10 changed files with 22 additions and 22 deletions

View file

@ -7,7 +7,7 @@ android {
compileSdkVersion 30
defaultConfig {
applicationId "com.wbrawner.materialive"
applicationId "com.wbrawner.flatscapes"
minSdkVersion 29
targetSdkVersion 30
versionCode 1
@ -37,7 +37,7 @@ dependencies {
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.2.1'
testImplementation 'junit:junit:4.+'
testImplementation 'junit:junit:4.13.1'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}

View file

@ -1,4 +1,4 @@
package com.wbrawner.materialive
package com.wbrawner.flatscapes
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.wbrawner.materialive", appContext.packageName)
assertEquals("com.wbrawner.flatscapes", appContext.packageName)
}
}

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.wbrawner.materialive">
xmlns:tools="http://schemas.android.com/tools"
package="com.wbrawner.flatscapes">
<uses-feature android:name="android.software.live_wallpaper" />
@ -10,18 +11,18 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Materialive">
android:theme="@style/Theme.FlatScapes"
tools:ignore="AllowBackup">
<service
android:name=".MaterialiveService"
android:permission="android.permission.BIND_WALLPAPER"
android:enabled="true">
android:name="com.wbrawner.flatscapes.DesertLandscapeService"
android:enabled="true"
android:permission="android.permission.BIND_WALLPAPER">
<intent-filter>
<action android:name=
"android.service.wallpaper.WallpaperService" />
<action android:name="android.service.wallpaper.WallpaperService" />
</intent-filter>
<meta-data
android:name="android.service.wallpaper"
android:resource="@xml/live_wallpaper_materialize" />
android:resource="@xml/live_wallpaper_desert" />
</service>
</application>

View file

@ -1,4 +1,4 @@
package com.wbrawner.materialive
package com.wbrawner.flatscapes
import android.content.res.Configuration
import android.content.res.Resources
@ -13,7 +13,7 @@ import androidx.core.content.ContextCompat
import kotlin.math.max
import kotlin.random.Random
class MaterialiveService : WallpaperService() {
class DesertLandscapeService : WallpaperService() {
override fun onCreateEngine() = Engine()
@ -33,7 +33,6 @@ class MaterialiveService : WallpaperService() {
}
override fun onSurfaceRedrawNeeded(holder: SurfaceHolder?) {
Log.d("Materialize", "onSurfaceRedrawNeeded")
super.onSurfaceRedrawNeeded(holder)
holder?.draw { canvas ->
val canvasRect = Rect(0, 0, canvas.width, canvas.height)

View file

@ -1,6 +1,6 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.Materialive" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<style name="Theme.FlatScapes" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<!-- <item name="colorPrimary">@color/purple_200</item>-->
<!-- <item name="colorPrimaryVariant">@color/purple_700</item>-->

View file

@ -1,5 +1,5 @@
<resources>
<string name="app_name">Materialive</string>
<string name="app_name">FlatScapes</string>
<string name="wallpaper_author">William Brawner</string>
<string name="description_materialive">A simple material wallpaper</string>
<string name="description_flatscapes">A simple material wallpaper</string>
</resources>

View file

@ -1,6 +1,6 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.Materialive" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<style name="Theme.FlatScapes" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<!-- <item name="colorPrimary">@color/purple_500</item>-->
<!-- <item name="colorPrimaryVariant">@color/purple_700</item>-->

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<wallpaper
xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/description_materialive"
android:description="@string/description_flatscapes"
android:author="@string/wallpaper_author"
android:showMetadataInPreview="true"
android:supportsAmbientMode="false" />

View file

@ -1,4 +1,4 @@
package com.wbrawner.materialive
package com.wbrawner.flatscapes
import org.junit.Test

View file

@ -1,2 +1,2 @@
rootProject.name = "Materialive"
rootProject.name = "FlatScapes"
include ':app'