Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96f2a1337e | ||
|
|
e0c0fee8f0 | ||
|
|
060e1b8a07 | ||
|
|
19fc3a34e3 | ||
|
|
18582c2291 | ||
|
|
ea9977c511 | ||
|
|
c84b1c47ea | ||
|
|
902be61924 | ||
|
|
e9f6861d60 | ||
|
|
8f0c5aa309 | ||
|
|
a32ca75126 |
No files matched your search
@@ -15,7 +15,7 @@
|
||||
</deviceKey>
|
||||
</Target>
|
||||
</runningDeviceTargetSelectedWithDropDown>
|
||||
<timeTargetWasSelectedWithDropDown value="2024-04-24T06:32:43.708081Z" />
|
||||
<timeTargetWasSelectedWithDropDown value="2024-04-30T06:47:19.015867100Z" />
|
||||
</State>
|
||||
</entry>
|
||||
</value>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div align="center">
|
||||
<img width="300" height="300" style="display: block; border-radius: 9999px;" src="https://github.com/Anthonyy232/Paperize/assets/60626873/e170d5da-9e82-4632-99c8-715b98408b3a">
|
||||
<h1>Paperize</h1>
|
||||
<p align="center">
|
||||
</p>
|
||||
</p>
|
||||
<p>Paperize is a dynamic wallpaper changer application designed to keep your device's aesthetic fresh and exciting</p>
|
||||
</div>
|
||||
@@ -33,7 +33,7 @@ Playstore and F-Droid will be added soon
|
||||
|
||||
## Technologies
|
||||
|
||||
- [Kotlin]([https://kotlinlang.org/) - A programming language that is used for Android app development
|
||||
- [Kotlin](https://kotlinlang.org/) - A programming language that is used for Android app development
|
||||
- [Jetpack Compose](https://developer.android.com/develop/ui/compose) - A declarative UI toolkit for building native Android UI
|
||||
- [Material 3](https://m3.material.io/) - A UI design system git for modern UI guidelines
|
||||
- [Dagger Hilt](https://dagger.dev/hilt/) - A dependency injection library
|
||||
@@ -52,8 +52,8 @@ This project is built using Kotlin, Java, and Gradle. Here are the steps to buil
|
||||
|
||||
### Prerequisites
|
||||
- Java 8 (1.8)
|
||||
- Android Studio Iguana | 2023.2.1 or later
|
||||
- Gradle 8.3.2 or later
|
||||
- Android Studio Jellyfish | 2023.3.1 or later
|
||||
- Gradle 8.4.0 or later
|
||||
- Minimum SDK 26
|
||||
|
||||
### Steps
|
||||
|
||||
@@ -16,8 +16,8 @@ android {
|
||||
applicationId = "com.anthonyla.paperize"
|
||||
minSdk = 26
|
||||
targetSdk = 34
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
versionCode = 2
|
||||
versionName = "0.3.0"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables {
|
||||
@@ -25,6 +25,7 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
@@ -61,19 +62,19 @@ dependencies {
|
||||
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
|
||||
implementation("androidx.activity:activity-compose:1.9.0")
|
||||
implementation(platform("androidx.compose:compose-bom:2024.04.01"))
|
||||
implementation("androidx.compose.ui:ui:1.6.6")
|
||||
implementation("androidx.compose.ui:ui-graphics:1.6.6")
|
||||
implementation("androidx.compose.ui:ui-tooling-preview:1.6.6")
|
||||
implementation("androidx.compose.material3:material3:1.2.1")
|
||||
implementation("androidx.compose.ui:ui:1.7.0-alpha07")
|
||||
implementation("androidx.compose.ui:ui-graphics:1.7.0-alpha07")
|
||||
implementation("androidx.compose.ui:ui-tooling-preview:1.7.0-alpha07")
|
||||
implementation("androidx.compose.material3:material3:1.3.0-alpha05")
|
||||
implementation("androidx.navigation:navigation-compose:2.8.0-alpha07")
|
||||
implementation("androidx.compose.material:material:1.6.6")
|
||||
implementation("androidx.compose.material:material:1.7.0-alpha07")
|
||||
implementation("androidx.datastore:datastore:1.1.0")
|
||||
implementation("androidx.datastore:datastore-preferences:1.1.0")
|
||||
implementation("androidx.compose.material:material-icons-extended:1.6.6")
|
||||
implementation("androidx.compose.material:material-icons-extended:1.7.0-alpha07")
|
||||
implementation("com.google.accompanist:accompanist-adaptive:0.34.0")
|
||||
implementation("androidx.hilt:hilt-navigation-compose:1.2.0")
|
||||
implementation("androidx.compose.animation:animation:1.7.0-alpha07")
|
||||
implementation("androidx.core:core-splashscreen:1.1.0-rc01")
|
||||
implementation("androidx.core:core-splashscreen:1.2.0-alpha01")
|
||||
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.7.0")
|
||||
implementation("com.google.code.gson:gson:2.10.1")
|
||||
implementation("androidx.documentfile:documentfile:1.1.0-alpha01")
|
||||
@@ -85,12 +86,13 @@ dependencies {
|
||||
implementation("com.google.accompanist:accompanist-permissions:0.35.0-alpha")
|
||||
implementation("com.mikepenz:aboutlibraries-core:11.1.3")
|
||||
implementation("com.mikepenz:aboutlibraries-compose-m3:11.1.3")
|
||||
implementation("androidx.compose.foundation:foundation:1.7.0-alpha07")
|
||||
testImplementation("junit:junit:4.13.2")
|
||||
androidTestImplementation("androidx.test.ext:junit:1.1.5")
|
||||
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.0-alpha03")
|
||||
androidTestImplementation("androidx.compose.ui:ui-test-junit4:1.6.6")
|
||||
debugImplementation("androidx.compose.ui:ui-tooling:1.6.6")
|
||||
debugImplementation("androidx.compose.ui:ui-test-manifest:1.6.6")
|
||||
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.0-alpha04")
|
||||
androidTestImplementation("androidx.compose.ui:ui-test-junit4:1.7.0-alpha07")
|
||||
debugImplementation("androidx.compose.ui:ui-tooling:1.7.0-alpha07")
|
||||
debugImplementation("androidx.compose.ui:ui-test-manifest:1.7.0-alpha07")
|
||||
implementation("com.google.dagger:hilt-android:2.51.1")
|
||||
ksp("com.google.dagger:hilt-android-compiler:2.51.1")
|
||||
implementation("androidx.room:room-runtime:2.6.1")
|
||||
|
||||
@@ -17,9 +17,8 @@
|
||||
android:persistent="true"
|
||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||
android:fullBackupContent="@xml/backup_rules"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:icon="@mipmap/app_icon"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.Paperize"
|
||||
android:enableOnBackInvokedCallback="true"
|
||||
|
||||
|
After Width: | Height: | Size: 30 KiB |
@@ -56,6 +56,7 @@ fun PaperizeApp(
|
||||
val navController = rememberNavController()
|
||||
val albumState = albumsViewModel.state.collectAsStateWithLifecycle()
|
||||
val selectedState = wallpaperScreenViewModel.state.collectAsStateWithLifecycle()
|
||||
val settingsState = settingsViewModel.state.collectAsStateWithLifecycle()
|
||||
val context = LocalContext.current
|
||||
|
||||
// React to albumState changes and change selectedAlbum's details to keep it from being stale
|
||||
@@ -93,9 +94,13 @@ fun PaperizeApp(
|
||||
),
|
||||
wallpapers = wallpapers
|
||||
)
|
||||
wallpaperScreenViewModel.onEvent(
|
||||
WallpaperEvent.UpdateSelectedAlbum(newSelectedAlbum)
|
||||
)
|
||||
wallpaperScreenViewModel.onEvent(WallpaperEvent.UpdateSelectedAlbum(newSelectedAlbum))
|
||||
settingsViewModel.onEvent(SettingsEvent.SetWallpaperInterval(settingsState.value.interval))
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.START.toString()
|
||||
putExtra("timeInMinutes", settingsState.value.interval)
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
}
|
||||
?: run {
|
||||
wallpaperScreenViewModel.onEvent(WallpaperEvent.Reset)
|
||||
@@ -275,9 +280,8 @@ fun PaperizeApp(
|
||||
}
|
||||
// Navigate to folder view screen to view wallpapers in a particular folder
|
||||
composable(
|
||||
route = NavScreens.FolderView.route.plus("/{folderUri}/{folderName}/{wallpapers}"),
|
||||
route = NavScreens.FolderView.route.plus("/{folderName}/{wallpapers}"),
|
||||
arguments = listOf(
|
||||
navArgument("folderUri") { type = NavType.StringType },
|
||||
navArgument("folderName") { type = NavType.StringType },
|
||||
navArgument("wallpapers") { type = NavType.StringType }
|
||||
),
|
||||
@@ -294,24 +298,20 @@ fun PaperizeApp(
|
||||
sharedXTransitionOut(target = { (it * INITIAL_OFFSET).toInt() })
|
||||
},
|
||||
) { backStackEntry ->
|
||||
val folderUri = backStackEntry.arguments?.getString("folderUri")
|
||||
val folderName = backStackEntry.arguments?.getString("folderName")
|
||||
val wallpapers = Gson().fromJson(
|
||||
backStackEntry.arguments?.getString("wallpapers"),
|
||||
Array<String>::class.java
|
||||
).toList()
|
||||
if (folderUri != null) {
|
||||
FolderViewScreen(
|
||||
folder = folderUri,
|
||||
folderName = folderName,
|
||||
wallpapers = wallpapers,
|
||||
onBackClick = { navController.navigateUp() },
|
||||
onShowWallpaperView = { wallpaper ->
|
||||
val encodedWallpaper = runBlocking { encodeUri(uri = wallpaper) }
|
||||
navController.navigate("${NavScreens.WallpaperView.route}/$encodedWallpaper")
|
||||
}
|
||||
)
|
||||
}
|
||||
FolderViewScreen(
|
||||
folderName = folderName,
|
||||
wallpapers = wallpapers,
|
||||
onBackClick = { navController.navigateUp() },
|
||||
onShowWallpaperView = { wallpaper ->
|
||||
val encodedWallpaper = runBlocking { encodeUri(uri = wallpaper) }
|
||||
navController.navigate("${NavScreens.WallpaperView.route}/$encodedWallpaper")
|
||||
}
|
||||
)
|
||||
}
|
||||
// Navigate to the album view screen to view folders and wallpapers in an album
|
||||
composable(
|
||||
@@ -342,10 +342,9 @@ fun PaperizeApp(
|
||||
val encodedWallpaper = runBlocking { encodeUri(uri = wallpaper) }
|
||||
navController.navigate("${NavScreens.WallpaperView.route}/$encodedWallpaper")
|
||||
},
|
||||
onShowFolderView = { folder, folderName, wallpapers ->
|
||||
val encodedFolder = runBlocking { encodeUri(uri = folder) }
|
||||
onShowFolderView = { folderName, wallpapers ->
|
||||
val encodedWallpapers = runBlocking { encodeUri(uri = Gson().toJson(wallpapers)) }
|
||||
navController.navigate("${NavScreens.FolderView.route}/$encodedFolder/$folderName/$encodedWallpapers")
|
||||
navController.navigate("${NavScreens.FolderView.route}/$folderName/$encodedWallpapers")
|
||||
},
|
||||
onDeleteAlbum = {
|
||||
albumsViewModel.onEvent(AlbumsEvent.DeleteAlbumWithWallpapers(albumWithWallpaper))
|
||||
|
||||
@@ -12,8 +12,8 @@ sealed class AddAlbumEvent {
|
||||
data class ReflectAlbumName(
|
||||
val newAlbumName: String
|
||||
): AddAlbumEvent()
|
||||
data class AddWallpaper(
|
||||
val wallpaperUri: String
|
||||
data class AddWallpapers(
|
||||
val wallpaperUris: List<String>
|
||||
): AddAlbumEvent()
|
||||
data class AddFolder(
|
||||
val directoryUri: String
|
||||
|
||||
@@ -2,7 +2,6 @@ package com.anthonyla.paperize.feature.wallpaper.presentation.add_album_screen
|
||||
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import android.util.Log
|
||||
import androidx.activity.compose.BackHandler
|
||||
import androidx.activity.compose.rememberLauncherForActivityResult
|
||||
import androidx.activity.result.contract.ActivityResultContracts
|
||||
@@ -70,15 +69,14 @@ fun AddAlbumScreen(
|
||||
val imagePickerLauncher = rememberLauncherForActivityResult(
|
||||
contract = ActivityResultContracts.OpenMultipleDocuments(),
|
||||
onResult = { uris: List<Uri> ->
|
||||
for (uri in uris) {
|
||||
val takeFlags: Int = Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION
|
||||
val takeFlags: Int = Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION
|
||||
val uriList = uris.mapNotNull { uri ->
|
||||
context.contentResolver.takePersistableUriPermission(uri, takeFlags)
|
||||
val persistedUriPermissions = context.contentResolver.persistedUriPermissions
|
||||
if (persistedUriPermissions.any { it.uri == uri }) {
|
||||
addAlbumViewModel.onEvent(AddAlbumEvent.AddWallpaper(wallpaperUri = uri.toString()))
|
||||
} else {
|
||||
Log.e("AddAlbumScreen", "Failed to persist permission for $uri")
|
||||
}
|
||||
if (persistedUriPermissions.any { it.uri == uri }) uri.toString() else null
|
||||
}
|
||||
if (uriList.isNotEmpty()) {
|
||||
addAlbumViewModel.onEvent(AddAlbumEvent.AddWallpapers(uriList))
|
||||
}
|
||||
}
|
||||
)
|
||||
@@ -92,9 +90,7 @@ fun AddAlbumScreen(
|
||||
context.contentResolver.takePersistableUriPermission(uri, takeFlags)
|
||||
val persistedUriPermissions = context.contentResolver.persistedUriPermissions
|
||||
if (persistedUriPermissions.any { it.uri == uri }) {
|
||||
addAlbumViewModel.onEvent(AddAlbumEvent.AddFolder(directoryUri = uri.toString()))
|
||||
} else {
|
||||
Log.e("AddAlbumScreen", "Failed to persist permission for $uri")
|
||||
addAlbumViewModel.onEvent(AddAlbumEvent.AddFolder(uri.toString()))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -137,8 +133,14 @@ fun AddAlbumScreen(
|
||||
) {
|
||||
AddAlbumAnimatedFab(
|
||||
menuOptions = AddAlbumFabMenuOptions(),
|
||||
onImageClick = { imagePickerLauncher.launch(arrayOf("image/*")) },
|
||||
onFolderClick = { folderPickerLauncher.launch(null) },
|
||||
onImageClick = {
|
||||
selectionMode = false
|
||||
imagePickerLauncher.launch(arrayOf("image/*"))
|
||||
},
|
||||
onFolderClick = {
|
||||
selectionMode = false
|
||||
folderPickerLauncher.launch(null)
|
||||
},
|
||||
animate = true
|
||||
)
|
||||
}
|
||||
@@ -146,8 +148,14 @@ fun AddAlbumScreen(
|
||||
else {
|
||||
AddAlbumAnimatedFab(
|
||||
menuOptions = AddAlbumFabMenuOptions(),
|
||||
onImageClick = { imagePickerLauncher.launch(arrayOf("image/*")) },
|
||||
onFolderClick = { folderPickerLauncher.launch(null) },
|
||||
onImageClick = {
|
||||
selectionMode = false
|
||||
imagePickerLauncher.launch(arrayOf("image/*"))
|
||||
},
|
||||
onFolderClick = {
|
||||
selectionMode = false
|
||||
folderPickerLauncher.launch(null)
|
||||
},
|
||||
animate = false
|
||||
)
|
||||
}
|
||||
@@ -181,7 +189,13 @@ fun AddAlbumScreen(
|
||||
onFolderViewClick = {
|
||||
onShowFolderView(folder.folderUri, folder.folderName, folder.wallpapers)
|
||||
},
|
||||
modifier = Modifier.padding(4.dp)
|
||||
modifier = Modifier.padding(4.dp).animateItem(
|
||||
placementSpec = tween(
|
||||
durationMillis = 800,
|
||||
delayMillis = 0,
|
||||
easing = FastOutSlowInEasing
|
||||
),
|
||||
)
|
||||
)
|
||||
}
|
||||
items (items = addAlbumState.value.wallpapers, key = { wallpaper -> wallpaper.wallpaperUri.hashCode()}
|
||||
@@ -203,7 +217,13 @@ fun AddAlbumScreen(
|
||||
onWallpaperViewClick = {
|
||||
onShowWallpaperView(wallpaper.wallpaperUri)
|
||||
},
|
||||
modifier = Modifier.padding(4.dp)
|
||||
modifier = Modifier.padding(4.dp).animateItem(
|
||||
placementSpec = tween(
|
||||
durationMillis = 800,
|
||||
delayMillis = 0,
|
||||
easing = FastOutSlowInEasing
|
||||
),
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,40 +113,52 @@ class AddAlbumViewModel @Inject constructor(
|
||||
}
|
||||
}
|
||||
}
|
||||
is AddAlbumEvent.AddWallpaper -> {
|
||||
is AddAlbumEvent.AddWallpapers -> {
|
||||
viewModelScope.launch {
|
||||
if (!_state.value.wallpapers.any { it.wallpaperUri == event.wallpaperUri }) {
|
||||
_state.update { it.copy(
|
||||
wallpapers = it.wallpapers.plus(
|
||||
Wallpaper(
|
||||
initialAlbumName = it.initialAlbumName,
|
||||
wallpaperUri = event.wallpaperUri,
|
||||
key = event.wallpaperUri.hashCode() + it.initialAlbumName.hashCode(),
|
||||
)
|
||||
),
|
||||
) }
|
||||
updateIsEmpty()
|
||||
val newWallpaperUris = event.wallpaperUris.filterNot { it in _state.value.wallpapers.map { wallpaper -> wallpaper.wallpaperUri } }
|
||||
val newWallpapers = newWallpaperUris.map { uri ->
|
||||
Wallpaper(
|
||||
initialAlbumName = _state.value.initialAlbumName,
|
||||
wallpaperUri = uri,
|
||||
key = uri.hashCode() + _state.value.initialAlbumName.hashCode(),
|
||||
)
|
||||
}
|
||||
_state.update {
|
||||
it.copy(
|
||||
selectedFolders = emptyList(),
|
||||
selectedWallpapers = emptyList(),
|
||||
allSelected = false,
|
||||
selectedCount = 0,
|
||||
wallpapers = it.wallpapers.plus(newWallpapers),
|
||||
isEmpty = false
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
is AddAlbumEvent.AddFolder -> {
|
||||
viewModelScope.launch {
|
||||
if (!_state.value.folders.any { it.folderUri == event.directoryUri }) {
|
||||
if (event.directoryUri !in _state.value.folders.map { it.folderUri }) {
|
||||
val wallpapers: List<String> = getWallpaperFromFolder(event.directoryUri, context)
|
||||
val folderName = getFolderNameFromUri(event.directoryUri, context)
|
||||
_state.update { state ->
|
||||
state.copy( folders = state.folders.plus(
|
||||
Folder(
|
||||
initialAlbumName = state.initialAlbumName,
|
||||
folderName = folderName,
|
||||
folderUri = event.directoryUri,
|
||||
coverUri = wallpapers.randomOrNull(),
|
||||
wallpapers = wallpapers,
|
||||
key = event.directoryUri.hashCode() + state.initialAlbumName.hashCode()
|
||||
_state.update {
|
||||
it.copy(
|
||||
selectedFolders = emptyList(),
|
||||
selectedWallpapers = emptyList(),
|
||||
allSelected = false,
|
||||
selectedCount = 0,
|
||||
isEmpty = false,
|
||||
folders = it.folders.plus(
|
||||
Folder(
|
||||
initialAlbumName = it.initialAlbumName,
|
||||
folderName = folderName,
|
||||
folderUri = event.directoryUri,
|
||||
coverUri = wallpapers.randomOrNull(),
|
||||
wallpapers = wallpapers,
|
||||
key = event.directoryUri.hashCode() + it.initialAlbumName.hashCode()
|
||||
)
|
||||
)
|
||||
),
|
||||
) }
|
||||
updateIsEmpty()
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,17 @@ sealed class AlbumViewEvent {
|
||||
data class DeleteSelected(
|
||||
val albumsWithWallpaper: AlbumWithWallpaperAndFolder
|
||||
): AlbumViewEvent()
|
||||
|
||||
data class AddWallpapers(
|
||||
val album: AlbumWithWallpaperAndFolder,
|
||||
val wallpaperUris: List<String>
|
||||
): AlbumViewEvent()
|
||||
|
||||
data class AddFolder(
|
||||
val album: AlbumWithWallpaperAndFolder,
|
||||
val directoryUri: String
|
||||
): AlbumViewEvent()
|
||||
|
||||
data class SelectWallpaper(
|
||||
val wallpaperUri: String
|
||||
): AlbumViewEvent()
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.presentation.album_view_screen
|
||||
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import androidx.activity.compose.BackHandler
|
||||
import androidx.activity.compose.rememberLauncherForActivityResult
|
||||
import androidx.activity.result.contract.ActivityResultContracts
|
||||
import androidx.compose.animation.AnimatedVisibility
|
||||
import androidx.compose.animation.core.FastOutSlowInEasing
|
||||
import androidx.compose.animation.core.tween
|
||||
import androidx.compose.animation.scaleIn
|
||||
import androidx.compose.animation.scaleOut
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
@@ -16,37 +25,75 @@ import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.saveable.rememberSaveable
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.hilt.navigation.compose.hiltViewModel
|
||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.AlbumWithWallpaperAndFolder
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.add_album_screen.components.AddAlbumAnimatedFab
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.add_album_screen.components.AddAlbumFabMenuOptions
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.album.components.FolderItem
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.album.components.WallpaperItem
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.album_view_screen.components.AlbumViewTopBar
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.settings_screen.SettingsViewModel
|
||||
|
||||
@Composable
|
||||
fun AlbumViewScreen(
|
||||
albumViewModel: AlbumViewScreenViewModel = hiltViewModel(),
|
||||
albumViewScreenViewModel: AlbumViewScreenViewModel = hiltViewModel(),
|
||||
settingsViewModel: SettingsViewModel = hiltViewModel(),
|
||||
album: AlbumWithWallpaperAndFolder,
|
||||
onBackClick: () -> Unit,
|
||||
onShowWallpaperView: (String) -> Unit,
|
||||
onShowFolderView: (String, String?, List<String>) -> Unit,
|
||||
onShowFolderView: (String?, List<String>) -> Unit,
|
||||
onDeleteAlbum: () -> Unit,
|
||||
onTitleChange: (String, AlbumWithWallpaperAndFolder) -> Unit,
|
||||
onSelectionDeleted: () -> Unit
|
||||
) {
|
||||
albumViewModel.onEvent(AlbumViewEvent.SetSize(album.wallpapers.size + album.folders.size))
|
||||
albumViewScreenViewModel.onEvent(AlbumViewEvent.SetSize(album.wallpapers.size + album.folders.size)) // For selectedAll state
|
||||
val lazyListState = rememberLazyStaggeredGridState()
|
||||
val albumState = albumViewModel.state.collectAsStateWithLifecycle()
|
||||
val albumState = albumViewScreenViewModel.state.collectAsStateWithLifecycle()
|
||||
val settingsState = settingsViewModel.state.collectAsStateWithLifecycle()
|
||||
var selectionMode by rememberSaveable { mutableStateOf(false) }
|
||||
val context = LocalContext.current
|
||||
|
||||
/** Image picker **/
|
||||
val imagePickerLauncher = rememberLauncherForActivityResult(
|
||||
contract = ActivityResultContracts.OpenMultipleDocuments(),
|
||||
onResult = { uris: List<Uri> ->
|
||||
val takeFlags: Int = Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION
|
||||
val uriList = uris.mapNotNull { uri ->
|
||||
context.contentResolver.takePersistableUriPermission(uri, takeFlags)
|
||||
val persistedUriPermissions = context.contentResolver.persistedUriPermissions
|
||||
if (persistedUriPermissions.any { it.uri == uri }) uri.toString() else null
|
||||
}
|
||||
if (uriList.isNotEmpty()) {
|
||||
albumViewScreenViewModel.onEvent(AlbumViewEvent.AddWallpapers(album, uriList))
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
/** Folder picker **/
|
||||
val folderPickerLauncher = rememberLauncherForActivityResult(
|
||||
contract = ActivityResultContracts.OpenDocumentTree(),
|
||||
onResult = { uri: Uri? ->
|
||||
val takeFlags: Int = Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION
|
||||
if (uri != null) {
|
||||
context.contentResolver.takePersistableUriPermission(uri, takeFlags)
|
||||
val persistedUriPermissions = context.contentResolver.persistedUriPermissions
|
||||
if (persistedUriPermissions.any { it.uri == uri }) {
|
||||
albumViewScreenViewModel.onEvent(AlbumViewEvent.AddFolder(album, uri.toString()))
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
BackHandler {
|
||||
if (selectionMode) {
|
||||
selectionMode = false
|
||||
albumViewModel.onEvent(AlbumViewEvent.DeselectAll)
|
||||
albumViewScreenViewModel.onEvent(AlbumViewEvent.DeselectAll)
|
||||
} else {
|
||||
onBackClick()
|
||||
albumViewModel.onEvent(AlbumViewEvent.ClearState)
|
||||
albumViewScreenViewModel.onEvent(AlbumViewEvent.ClearState)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,25 +102,61 @@ fun AlbumViewScreen(
|
||||
AlbumViewTopBar(
|
||||
title = album.album.displayedAlbumName,
|
||||
selectionMode = selectionMode,
|
||||
albumState = albumViewModel.state,
|
||||
albumState = albumViewScreenViewModel.state,
|
||||
onBackClick = {
|
||||
albumViewModel.onEvent(AlbumViewEvent.ClearState)
|
||||
albumViewScreenViewModel.onEvent(AlbumViewEvent.ClearState)
|
||||
onBackClick()
|
||||
},
|
||||
onDeleteAlbum = onDeleteAlbum,
|
||||
onTitleChange = { onTitleChange(it, album) },
|
||||
onSelectAllClick = {
|
||||
if (!albumState.value.allSelected) albumViewModel.onEvent(AlbumViewEvent.SelectAll(album))
|
||||
else albumViewModel.onEvent(AlbumViewEvent.DeselectAll)
|
||||
if (!albumState.value.allSelected) albumViewScreenViewModel.onEvent(AlbumViewEvent.SelectAll(album))
|
||||
else albumViewScreenViewModel.onEvent(AlbumViewEvent.DeselectAll)
|
||||
},
|
||||
onDeleteSelected = {
|
||||
selectionMode = false
|
||||
albumViewModel.onEvent(AlbumViewEvent.DeleteSelected(album))
|
||||
albumViewModel.onEvent(AlbumViewEvent.DeselectAll)
|
||||
albumViewScreenViewModel.onEvent(AlbumViewEvent.DeleteSelected(album))
|
||||
albumViewScreenViewModel.onEvent(AlbumViewEvent.DeselectAll)
|
||||
onSelectionDeleted()
|
||||
}
|
||||
)
|
||||
},
|
||||
floatingActionButton = {
|
||||
if (settingsState.value.animate) {
|
||||
AnimatedVisibility(
|
||||
visible = !lazyListState.isScrollInProgress || lazyListState.firstVisibleItemScrollOffset < 0,
|
||||
enter = scaleIn(tween(400, 50, FastOutSlowInEasing)),
|
||||
exit = scaleOut(tween(400, 50, FastOutSlowInEasing)),
|
||||
) {
|
||||
AddAlbumAnimatedFab(
|
||||
menuOptions = AddAlbumFabMenuOptions(),
|
||||
onImageClick = {
|
||||
selectionMode = false
|
||||
imagePickerLauncher.launch(arrayOf("image/*"))
|
||||
},
|
||||
onFolderClick = {
|
||||
selectionMode = false
|
||||
folderPickerLauncher.launch(null)
|
||||
},
|
||||
animate = true
|
||||
)
|
||||
}
|
||||
}
|
||||
else {
|
||||
AddAlbumAnimatedFab(
|
||||
menuOptions = AddAlbumFabMenuOptions(),
|
||||
onImageClick = {
|
||||
selectionMode = false
|
||||
imagePickerLauncher.launch(arrayOf("image/*"))
|
||||
},
|
||||
onFolderClick = {
|
||||
selectionMode = false
|
||||
folderPickerLauncher.launch(null)
|
||||
},
|
||||
animate = true
|
||||
)
|
||||
}
|
||||
},
|
||||
content = { it ->
|
||||
LazyVerticalStaggeredGrid(
|
||||
state = lazyListState,
|
||||
@@ -92,7 +175,7 @@ fun AlbumViewScreen(
|
||||
selectionMode = selectionMode,
|
||||
onActivateSelectionMode = { selectionMode = it },
|
||||
onItemSelection = {
|
||||
albumViewModel.onEvent(
|
||||
albumViewScreenViewModel.onEvent(
|
||||
if (!albumState.value.selectedFolders.contains(folder.folderUri))
|
||||
AlbumViewEvent.SelectFolder(folder.folderUri)
|
||||
else {
|
||||
@@ -101,9 +184,15 @@ fun AlbumViewScreen(
|
||||
)
|
||||
},
|
||||
onFolderViewClick = {
|
||||
onShowFolderView(folder.folderUri, folder.folderName, folder.wallpapers)
|
||||
onShowFolderView(folder.folderName, folder.wallpapers)
|
||||
},
|
||||
modifier = Modifier.padding(4.dp)
|
||||
modifier = Modifier.padding(4.dp).animateItem(
|
||||
placementSpec = tween(
|
||||
durationMillis = 800,
|
||||
delayMillis = 0,
|
||||
easing = FastOutSlowInEasing
|
||||
),
|
||||
)
|
||||
)
|
||||
}
|
||||
items (items = album.wallpapers, key = { wallpaper -> wallpaper.wallpaperUri.hashCode()}
|
||||
@@ -114,7 +203,7 @@ fun AlbumViewScreen(
|
||||
selectionMode = selectionMode,
|
||||
onActivateSelectionMode = { selectionMode = it },
|
||||
onItemSelection = {
|
||||
albumViewModel.onEvent(
|
||||
albumViewScreenViewModel.onEvent(
|
||||
if (!albumState.value.selectedWallpapers.contains(wallpaper.wallpaperUri))
|
||||
AlbumViewEvent.SelectWallpaper(wallpaper.wallpaperUri)
|
||||
else {
|
||||
@@ -125,7 +214,15 @@ fun AlbumViewScreen(
|
||||
onWallpaperViewClick = {
|
||||
onShowWallpaperView(wallpaper.wallpaperUri)
|
||||
},
|
||||
modifier = Modifier.padding(4.dp)
|
||||
modifier = Modifier
|
||||
.padding(4.dp)
|
||||
.animateItem(
|
||||
placementSpec = tween(
|
||||
durationMillis = 800,
|
||||
delayMillis = 0,
|
||||
easing = FastOutSlowInEasing
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,9 +3,14 @@ package com.anthonyla.paperize.feature.wallpaper.presentation.album_view_screen
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import android.webkit.MimeTypeMap
|
||||
import androidx.core.net.toUri
|
||||
import androidx.lifecycle.AndroidViewModel
|
||||
import androidx.lifecycle.viewModelScope
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.Folder
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.Wallpaper
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.repository.AlbumRepository
|
||||
import com.lazygeniouz.dfc.file.DocumentFileCompat
|
||||
import dagger.hilt.android.lifecycle.HiltViewModel
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.SharingStarted
|
||||
@@ -153,6 +158,57 @@ class AlbumViewScreenViewModel @Inject constructor(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
is AlbumViewEvent.AddWallpapers -> {
|
||||
viewModelScope.launch {
|
||||
val newWallpaperUris = event.wallpaperUris.filterNot { it in event.album.wallpapers.map { wallpaper -> wallpaper.wallpaperUri } }
|
||||
val newWallpapers = newWallpaperUris.map { uri ->
|
||||
Wallpaper(
|
||||
initialAlbumName = event.album.album.initialAlbumName,
|
||||
wallpaperUri = uri,
|
||||
key = uri.hashCode() + event.album.album.initialAlbumName.hashCode(),
|
||||
)
|
||||
}
|
||||
repository.upsertWallpaperList(newWallpapers)
|
||||
_state.update {
|
||||
it.copy(
|
||||
selectedFolders = emptyList(),
|
||||
selectedWallpapers = emptyList(),
|
||||
allSelected = false,
|
||||
selectedCount = 0,
|
||||
maxSize = _state.value.maxSize + newWallpapers.size
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
is AlbumViewEvent.AddFolder -> {
|
||||
viewModelScope.launch {
|
||||
if (event.directoryUri !in event.album.folders.map { it.folderUri }) {
|
||||
val wallpapers: List<String> = getWallpaperFromFolder(event.directoryUri, context)
|
||||
val folderName = getFolderNameFromUri(event.directoryUri, context)
|
||||
repository.upsertFolder(
|
||||
Folder(
|
||||
folderUri = event.directoryUri,
|
||||
folderName = folderName,
|
||||
initialAlbumName = event.album.album.initialAlbumName,
|
||||
key = event.directoryUri.hashCode() + event.album.album.initialAlbumName.hashCode(),
|
||||
coverUri = wallpapers.randomOrNull(),
|
||||
wallpapers = wallpapers
|
||||
)
|
||||
)
|
||||
_state.update {
|
||||
it.copy(
|
||||
selectedFolders = emptyList(),
|
||||
selectedWallpapers = emptyList(),
|
||||
allSelected = false,
|
||||
selectedCount = 0,
|
||||
maxSize = _state.value.maxSize + 1
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,4 +221,29 @@ class AlbumViewScreenViewModel @Inject constructor(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun getWallpaperFromFolder(folderUri: String, context: Context): List<String> {
|
||||
val folderDocumentFile = DocumentFileCompat.fromTreeUri(context, folderUri.toUri())
|
||||
return listFilesRecursive(folderDocumentFile, context)
|
||||
}
|
||||
|
||||
private fun listFilesRecursive(parent: DocumentFileCompat?, context: Context): List<String> {
|
||||
val files = mutableListOf<String>()
|
||||
parent?.listFiles()?.forEach { file ->
|
||||
if (file.isDirectory()) {
|
||||
files.addAll(listFilesRecursive(file, context))
|
||||
} else {
|
||||
val extension = MimeTypeMap.getFileExtensionFromUrl(file.uri.toString())
|
||||
val allowedExtensions = listOf("jpg", "png", "heif", "webp")
|
||||
if (extension in allowedExtensions) {
|
||||
files.add(file.uri.toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
return files
|
||||
}
|
||||
|
||||
private fun getFolderNameFromUri(folderUri: String, context: Context): String? {
|
||||
return DocumentFileCompat.fromTreeUri(context, folderUri.toUri())?.name
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.presentation.folder_view_screen
|
||||
|
||||
import androidx.activity.compose.BackHandler
|
||||
import androidx.compose.animation.core.FastOutSlowInEasing
|
||||
import androidx.compose.animation.core.tween
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
@@ -18,7 +20,6 @@ import com.anthonyla.paperize.feature.wallpaper.presentation.folder_view_screen.
|
||||
|
||||
@Composable
|
||||
fun FolderViewScreen(
|
||||
folder: String,
|
||||
folderName: String?,
|
||||
wallpapers: List<String>,
|
||||
onBackClick: () -> Unit,
|
||||
@@ -56,7 +57,13 @@ fun FolderViewScreen(
|
||||
onWallpaperViewClick = {
|
||||
onShowWallpaperView(wallpaper)
|
||||
},
|
||||
modifier = Modifier.padding(4.dp)
|
||||
modifier = Modifier.padding(4.dp).animateItem(
|
||||
placementSpec = tween(
|
||||
durationMillis = 800,
|
||||
delayMillis = 0,
|
||||
easing = FastOutSlowInEasing
|
||||
),
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.presentation.library_screen
|
||||
|
||||
import androidx.compose.animation.core.FastOutSlowInEasing
|
||||
import androidx.compose.animation.core.tween
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
@@ -60,7 +62,13 @@ fun LibraryScreen(
|
||||
AlbumItem(
|
||||
album = album.album,
|
||||
onAlbumViewClick = { onViewAlbum(album.album.initialAlbumName) },
|
||||
modifier = Modifier.padding(4.dp)
|
||||
modifier = Modifier.padding(4.dp).animateItem(
|
||||
placementSpec = tween(
|
||||
durationMillis = 800,
|
||||
delayMillis = 0,
|
||||
easing = FastOutSlowInEasing
|
||||
),
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ import androidx.compose.ui.unit.Dp
|
||||
import androidx.compose.ui.unit.dp
|
||||
|
||||
/**
|
||||
* Scrollable privacy screen to display privacy policy
|
||||
* Scrollable privacy screen to display privacy note
|
||||
*/
|
||||
@Composable
|
||||
fun PrivacyScrollableSettings(
|
||||
@@ -34,20 +34,20 @@ fun PrivacyScrollableSettings(
|
||||
) {
|
||||
Spacer(Modifier.height(largeTopAppBarHeightPx))
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
PrivacyPolicyText()
|
||||
PrivacyNoticeText()
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun PrivacyPolicyText() {
|
||||
SectionText("Introduction", "Welcome to Paperize! This privacy policy outlines how we collect, use, and protect your personal information when you use our mobile application. By using Paperize, you agree to the terms described in this policy.")
|
||||
fun PrivacyNoticeText() {
|
||||
SectionText("Introduction", "Welcome to Paperize! This privacy notice outlines how we collect, use, and protect your personal information when you use our mobile application. By using Paperize, you agree to the terms described in this notice.")
|
||||
SectionText("Data Collection", "Notification Access: Paperize requests notification access to provide you with personalized wallpaper recommendations based on your notifications. We do not store any notification content or personally identifiable information (PII) outside of your device.\n\nLocal Files: Paperize accesses files stored on your device to allow you to set them as wallpapers. We do not upload or transfer these files to any external servers.")
|
||||
SectionText("Information Usage", "Personal Data: We do not collect or store any personal data such as names, email addresses, or phone numbers.\n\nUsage Analytics: Paperize does not track your usage behavior or collect analytics data.")
|
||||
SectionText("Data Security", "On-Device Storage: All data used by Paperize remains on your device. We do not transmit or store any data externally.\n\nEncryption: We use encryption protocols to secure communication between the app and your device.")
|
||||
SectionText("Data Security", "On-Device Storage: All data used by Paperize remains on your device. We do not transmit or store any data externally.")
|
||||
SectionText("Third-Party Services", "Advertisements: Paperize does not display third-party ads.\n\nExternal Links: Our app may contain links to external websites. Please note that we are not responsible for the privacy practices of these sites.")
|
||||
SectionText("Children’s Privacy", "Paperize is not intended for children under the age of 13. We do not knowingly collect any information from children.")
|
||||
SectionText("Changes to this Policy", "We may update this privacy policy from time to time. Any changes will be reflected in the app and on our website.")
|
||||
SectionText("Contact Us", "If you have any questions or concerns about this privacy policy, please contact me at anthonyyla.dev@gmail.com.")
|
||||
SectionText("Changes to this notice", "We may update this privacy notice from time to time. Any changes will be reflected in the app and on our website.")
|
||||
SectionText("Contact Us", "If you have any questions or concerns about this privacy notice, please contact me at anthonyyla.dev@gmail.com.")
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
||||
@@ -0,0 +1,127 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.presentation.settings_screen.components
|
||||
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.shape.CircleShape
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material3.Card
|
||||
import androidx.compose.material3.CardDefaults
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.IconButton
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.graphics.vector.ImageVector
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.res.vectorResource
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.anthonyla.paperize.R
|
||||
|
||||
/**
|
||||
* List item for app version and link to GitHub and PlayStore
|
||||
*/
|
||||
@Composable
|
||||
fun PaperizeListItem(onGitHubClick: () -> Unit, onPlaystoreClick: () -> Unit, onFdroidClick: () -> Unit) {
|
||||
Card(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.clip(RoundedCornerShape(16.dp)),
|
||||
elevation = CardDefaults.cardElevation(10.dp),
|
||||
colors = CardDefaults.cardColors(MaterialTheme.colorScheme.primaryContainer)
|
||||
) {
|
||||
Row (
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
modifier = Modifier.padding(16.dp)
|
||||
) {
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.weight(2f)
|
||||
.padding(16.dp),
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
verticalArrangement = Arrangement.Center
|
||||
) {
|
||||
Icon(
|
||||
imageVector = ImageVector.vectorResource(id = R.drawable.app_icon_foreground),
|
||||
contentDescription = stringResource(id = R.string.appname),
|
||||
modifier = Modifier.size(160.dp),
|
||||
tint = MaterialTheme.colorScheme.primary,
|
||||
)
|
||||
Text(
|
||||
text = stringResource(id = R.string.appname),
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
fontSize = MaterialTheme.typography.titleLarge.fontSize
|
||||
)
|
||||
Text(
|
||||
text = "Version: 0.3.0",
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
fontSize = MaterialTheme.typography.bodyMedium.fontSize
|
||||
)
|
||||
Text(
|
||||
text = "Anthony La",
|
||||
style = MaterialTheme.typography.labelSmall,
|
||||
)
|
||||
}
|
||||
Column(
|
||||
modifier = Modifier.weight(1f),
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
verticalArrangement = Arrangement.Center
|
||||
) {
|
||||
IconButton(
|
||||
onClick = onGitHubClick,
|
||||
modifier = Modifier
|
||||
.size(64.dp)
|
||||
.background(MaterialTheme.colorScheme.primary, CircleShape)
|
||||
) {
|
||||
Icon(
|
||||
imageVector = ImageVector.vectorResource(id = R.drawable.github),
|
||||
contentDescription = "GitHub",
|
||||
modifier = Modifier.size(20.dp),
|
||||
tint = MaterialTheme.colorScheme.onPrimary
|
||||
)
|
||||
}
|
||||
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
|
||||
IconButton(
|
||||
onClick = onPlaystoreClick,
|
||||
modifier = Modifier
|
||||
.size(64.dp)
|
||||
.background(MaterialTheme.colorScheme.primary, CircleShape)
|
||||
) {
|
||||
Icon(
|
||||
imageVector = ImageVector.vectorResource(id = R.drawable.google_play),
|
||||
contentDescription = "Playstore",
|
||||
modifier = Modifier.size(12.dp),
|
||||
tint = MaterialTheme.colorScheme.onPrimary
|
||||
)
|
||||
}
|
||||
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
|
||||
IconButton(
|
||||
onClick = onFdroidClick,
|
||||
modifier = Modifier
|
||||
.size(64.dp)
|
||||
.background(MaterialTheme.colorScheme.primary, CircleShape)
|
||||
) {
|
||||
Icon(
|
||||
imageVector = ImageVector.vectorResource(id = R.drawable.fdroid),
|
||||
contentDescription = "F-Droid",
|
||||
modifier = Modifier.size(20.dp),
|
||||
tint = MaterialTheme.colorScheme.onPrimary
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,26 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.presentation.settings_screen.components
|
||||
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import androidx.compose.foundation.ScrollState
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.material3.Scaffold
|
||||
import androidx.compose.material3.Snackbar
|
||||
import androidx.compose.material3.SnackbarDuration
|
||||
import androidx.compose.material3.SnackbarHost
|
||||
import androidx.compose.material3.SnackbarHostState
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.rememberCoroutineScope
|
||||
import androidx.compose.runtime.saveable.rememberSaveable
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
@@ -21,8 +31,8 @@ import androidx.compose.ui.unit.dp
|
||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||
import com.anthonyla.paperize.data.Contact
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.settings_screen.SettingsState
|
||||
import com.mikepenz.aboutlibraries.ui.compose.m3.LibrariesContainer
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
/**
|
||||
* Scrollable settings screen to wrap all settings components
|
||||
@@ -40,6 +50,8 @@ fun SettingsScrollableSettings(
|
||||
) {
|
||||
val state = settingsState.collectAsStateWithLifecycle()
|
||||
val context = LocalContext.current
|
||||
val snackbarHostState = remember { SnackbarHostState() }
|
||||
val coroutineScope = rememberCoroutineScope()
|
||||
|
||||
var toContact by rememberSaveable { mutableStateOf(false) }
|
||||
if (toContact) {
|
||||
@@ -47,45 +59,90 @@ fun SettingsScrollableSettings(
|
||||
toContact = false
|
||||
}
|
||||
|
||||
Column(
|
||||
horizontalAlignment = Alignment.Start,
|
||||
verticalArrangement = Arrangement.Top,
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.verticalScroll(scroll)
|
||||
.padding(horizontal = 24.dp),
|
||||
) {
|
||||
Spacer(Modifier.height(largeTopAppBarHeightPx))
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
val githubLink = "https://github.com/Anthonyy232/Paperize"
|
||||
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
Scaffold(
|
||||
snackbarHost = {
|
||||
SnackbarHost(
|
||||
hostState = snackbarHostState,
|
||||
snackbar = { data ->
|
||||
Snackbar(
|
||||
snackbarData = data,
|
||||
modifier = Modifier.padding(PaddingValues(horizontal = 16.dp, vertical = 24.dp))
|
||||
)
|
||||
}
|
||||
) },
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
content = { it
|
||||
Column(
|
||||
horizontalAlignment = Alignment.Start,
|
||||
verticalArrangement = Arrangement.Top,
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.verticalScroll(scroll)
|
||||
.padding(horizontal = 24.dp),
|
||||
) {
|
||||
Spacer(Modifier.height(largeTopAppBarHeightPx))
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
|
||||
ListSectionTitle("Appearance")
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
DarkModeListItem(
|
||||
darkMode = state.value.darkMode,
|
||||
onDarkModeClick = { onDarkModeClick(it) }
|
||||
)
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
DynamicThemingListItem(
|
||||
dynamicTheming = state.value.dynamicTheming,
|
||||
onDynamicThemingClick = { onDynamicThemingClick(it) }
|
||||
)
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
AnimationListItem(
|
||||
animate = state.value.animate,
|
||||
onAnimateClick = { onAnimateClick(it) }
|
||||
)
|
||||
ListSectionTitle("Appearance")
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
DarkModeListItem(
|
||||
darkMode = state.value.darkMode,
|
||||
onDarkModeClick = { onDarkModeClick(it) }
|
||||
)
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
DynamicThemingListItem(
|
||||
dynamicTheming = state.value.dynamicTheming,
|
||||
onDynamicThemingClick = { onDynamicThemingClick(it) }
|
||||
)
|
||||
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
ListSectionTitle("About")
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
PrivacyPolicyListItem (onPrivacyPolicyClick = onPrivacyClick)
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
LicenseListItem(onLicenseClick = onLicenseClick)
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
ContactListItem(onContactClick = { toContact = true })
|
||||
//GPL and License and link to github etc, contact, terms of service, privacy policy
|
||||
}
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
AnimationListItem(
|
||||
animate = state.value.animate,
|
||||
onAnimateClick = { onAnimateClick(it) }
|
||||
)
|
||||
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
ListSectionTitle("About")
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
PrivacyPolicyListItem (onPrivacyPolicyClick = onPrivacyClick)
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
LicenseListItem(onLicenseClick = onLicenseClick)
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
ContactListItem(onContactClick = { toContact = true })
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
PaperizeListItem(
|
||||
onGitHubClick = {
|
||||
val openURL = Intent(Intent.ACTION_VIEW)
|
||||
openURL.data = Uri.parse(githubLink)
|
||||
context.startActivity(openURL)
|
||||
},
|
||||
onPlaystoreClick = {
|
||||
coroutineScope.launch {
|
||||
snackbarHostState.currentSnackbarData?.dismiss()
|
||||
snackbarHostState.showSnackbar(
|
||||
message = "Coming soon",
|
||||
actionLabel = "Dismiss",
|
||||
duration = SnackbarDuration.Short
|
||||
)
|
||||
}
|
||||
},
|
||||
onFdroidClick = {
|
||||
coroutineScope.launch {
|
||||
snackbarHostState.currentSnackbarData?.dismiss()
|
||||
snackbarHostState.showSnackbar(
|
||||
message = "Coming soon",
|
||||
actionLabel = "Dismiss",
|
||||
duration = SnackbarDuration.Short
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
@@ -32,7 +32,6 @@ import androidx.compose.runtime.rememberCoroutineScope
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.unit.dp
|
||||
@@ -44,11 +43,11 @@ import com.airbnb.lottie.compose.rememberLottieComposition
|
||||
import com.anthonyla.paperize.R
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
// Inspired by https://github.com/Ashinch/ReadYou
|
||||
@Composable
|
||||
fun StartupScreen(
|
||||
onAgree: () -> Unit
|
||||
) {
|
||||
val context = LocalContext.current
|
||||
val composition by rememberLottieComposition(LottieCompositionSpec.RawRes(R.raw.onboarding_animation))
|
||||
val progress by animateLottieCompositionAsState(
|
||||
composition = composition,
|
||||
@@ -86,7 +85,7 @@ fun StartupScreen(
|
||||
modifier = Modifier.padding(PaddingValues(vertical = 16.dp))
|
||||
)
|
||||
Text(
|
||||
text = "Please read and agree to the following privacy policy to use the app.",
|
||||
text = "Please read and agree to the following privacy notice to use the app.",
|
||||
style = MaterialTheme.typography.bodySmall
|
||||
)
|
||||
Box(
|
||||
@@ -101,7 +100,7 @@ fun StartupScreen(
|
||||
} },
|
||||
modifier = Modifier.padding(PaddingValues(vertical = 16.dp)),
|
||||
) {
|
||||
Text(text = "Privacy Policy", textAlign = TextAlign.Start)
|
||||
Text(text = "Privacy Notice", textAlign = TextAlign.Start)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -115,7 +114,7 @@ fun StartupScreen(
|
||||
} else {
|
||||
scope.launch {
|
||||
val result = snackbarHostState.showSnackbar(
|
||||
message = "Please read and agree to the privacy policy.",
|
||||
message = "Please read and agree to the privacy notice.",
|
||||
actionLabel = "View",
|
||||
duration = SnackbarDuration.Short,
|
||||
)
|
||||
@@ -147,13 +146,13 @@ fun StartupScreen(
|
||||
title = {
|
||||
Box(modifier = Modifier.fillMaxWidth()) {
|
||||
Text(
|
||||
text = "Privacy Policy",
|
||||
text = "Privacy Notice",
|
||||
textAlign = TextAlign.Center,
|
||||
modifier = Modifier.align(Alignment.Center)
|
||||
)
|
||||
}
|
||||
},
|
||||
text = { PrivacyPolicyText() },
|
||||
text = { PrivacyNoticeText() },
|
||||
confirmButton = {
|
||||
Button(
|
||||
onClick = { showToS = false },
|
||||
@@ -166,31 +165,31 @@ fun StartupScreen(
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun PrivacyPolicyText() {
|
||||
fun PrivacyNoticeText() {
|
||||
LazyColumn {
|
||||
item {
|
||||
SectionText("Introduction", "Welcome to Paperize! This privacy policy outlines how we collect, use, and protect your personal information when you use our mobile application. By using Paperize, you agree to the terms described in this policy.")
|
||||
SectionText("Hello!", "Welcome to Paperize! We respect your privacy and protect your personal info. By using our app, you're okay with our privacy policy.")
|
||||
}
|
||||
item {
|
||||
SectionText("Data Collection", "Notification Access: Paperize requests notification access to provide you with personalized wallpaper recommendations based on your notifications. We do not store any notification content or personally identifiable information (PII) outside of your device.\n\nLocal Files: Paperize accesses files stored on your device to allow you to set them as wallpapers. We do not upload or transfer these files to any external servers.")
|
||||
SectionText("What We Collect", "We ask for notification access to personalize your wallpapers. We don't store or share your notifications. We also access your local files for wallpapers, but don't upload or transfer them.")
|
||||
}
|
||||
item {
|
||||
SectionText("Information Usage", "Personal Data: We do not collect or store any personal data such as names, email addresses, or phone numbers.\n\nUsage Analytics: Paperize does not track your usage behavior or collect analytics data.")
|
||||
SectionText("How We Use Info", "We don't collect personal data or track your usage. All your data stays on your device.")
|
||||
}
|
||||
item {
|
||||
SectionText("Data Security", "On-Device Storage: All data used by Paperize remains on your device. We do not transmit or store any data externally.\n\nEncryption: We use encryption protocols to secure communication between the app and your device.")
|
||||
SectionText("Security", "Your data is safe with us. It stays on your device at all times.")
|
||||
}
|
||||
item {
|
||||
SectionText("Third-Party Services", "Advertisements: Paperize does not display third-party ads.\n\nExternal Links: Our app may contain links to external websites. Please note that we are not responsible for the privacy practices of these sites.")
|
||||
SectionText("Third-Party Services", "No third-party ads here! We might have external links, but we're not responsible for their privacy practices.")
|
||||
}
|
||||
item {
|
||||
SectionText("Children’s Privacy", "Paperize is not intended for children under the age of 13. We do not knowingly collect any information from children.")
|
||||
SectionText("For Kids", "Paperize isn't for kids under 13. We don't knowingly collect their info.")
|
||||
}
|
||||
item {
|
||||
SectionText("Changes to this Policy", "We may update this privacy policy from time to time. Any changes will be reflected in the app and on our website.")
|
||||
SectionText("Policy Updates", "We might update this policy sometimes. You'll see any changes in the app and on GitHub.")
|
||||
}
|
||||
item {
|
||||
SectionText("Contact Us", "If you have any questions or concerns about this privacy policy, please contact me at anthonyyla.dev@gmail.com.")
|
||||
SectionText("Contact Us", "Got questions or concerns about our privacy policy? Email us at anthonyyla.dev@gmail.com.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.example.compose
|
||||
package com.anthonyla.paperize.feature.wallpaper.presentation.themes
|
||||
import androidx.compose.ui.graphics.Color
|
||||
|
||||
val md_theme_light_primary = Color(0xFF984061)
|
||||
|
||||
@@ -17,64 +17,6 @@ import androidx.compose.ui.platform.LocalView
|
||||
import androidx.core.view.WindowCompat
|
||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.settings_screen.SettingsState
|
||||
import com.example.compose.md_theme_dark_background
|
||||
import com.example.compose.md_theme_dark_error
|
||||
import com.example.compose.md_theme_dark_errorContainer
|
||||
import com.example.compose.md_theme_dark_inverseOnSurface
|
||||
import com.example.compose.md_theme_dark_inversePrimary
|
||||
import com.example.compose.md_theme_dark_inverseSurface
|
||||
import com.example.compose.md_theme_dark_onBackground
|
||||
import com.example.compose.md_theme_dark_onError
|
||||
import com.example.compose.md_theme_dark_onErrorContainer
|
||||
import com.example.compose.md_theme_dark_onPrimary
|
||||
import com.example.compose.md_theme_dark_onPrimaryContainer
|
||||
import com.example.compose.md_theme_dark_onSecondary
|
||||
import com.example.compose.md_theme_dark_onSecondaryContainer
|
||||
import com.example.compose.md_theme_dark_onSurface
|
||||
import com.example.compose.md_theme_dark_onSurfaceVariant
|
||||
import com.example.compose.md_theme_dark_onTertiary
|
||||
import com.example.compose.md_theme_dark_onTertiaryContainer
|
||||
import com.example.compose.md_theme_dark_outline
|
||||
import com.example.compose.md_theme_dark_outlineVariant
|
||||
import com.example.compose.md_theme_dark_primary
|
||||
import com.example.compose.md_theme_dark_primaryContainer
|
||||
import com.example.compose.md_theme_dark_scrim
|
||||
import com.example.compose.md_theme_dark_secondary
|
||||
import com.example.compose.md_theme_dark_secondaryContainer
|
||||
import com.example.compose.md_theme_dark_surface
|
||||
import com.example.compose.md_theme_dark_surfaceTint
|
||||
import com.example.compose.md_theme_dark_surfaceVariant
|
||||
import com.example.compose.md_theme_dark_tertiary
|
||||
import com.example.compose.md_theme_dark_tertiaryContainer
|
||||
import com.example.compose.md_theme_light_background
|
||||
import com.example.compose.md_theme_light_error
|
||||
import com.example.compose.md_theme_light_errorContainer
|
||||
import com.example.compose.md_theme_light_inverseOnSurface
|
||||
import com.example.compose.md_theme_light_inversePrimary
|
||||
import com.example.compose.md_theme_light_inverseSurface
|
||||
import com.example.compose.md_theme_light_onBackground
|
||||
import com.example.compose.md_theme_light_onError
|
||||
import com.example.compose.md_theme_light_onErrorContainer
|
||||
import com.example.compose.md_theme_light_onPrimary
|
||||
import com.example.compose.md_theme_light_onPrimaryContainer
|
||||
import com.example.compose.md_theme_light_onSecondary
|
||||
import com.example.compose.md_theme_light_onSecondaryContainer
|
||||
import com.example.compose.md_theme_light_onSurface
|
||||
import com.example.compose.md_theme_light_onSurfaceVariant
|
||||
import com.example.compose.md_theme_light_onTertiary
|
||||
import com.example.compose.md_theme_light_onTertiaryContainer
|
||||
import com.example.compose.md_theme_light_outline
|
||||
import com.example.compose.md_theme_light_outlineVariant
|
||||
import com.example.compose.md_theme_light_primary
|
||||
import com.example.compose.md_theme_light_primaryContainer
|
||||
import com.example.compose.md_theme_light_scrim
|
||||
import com.example.compose.md_theme_light_secondary
|
||||
import com.example.compose.md_theme_light_secondaryContainer
|
||||
import com.example.compose.md_theme_light_surface
|
||||
import com.example.compose.md_theme_light_surfaceTint
|
||||
import com.example.compose.md_theme_light_surfaceVariant
|
||||
import com.example.compose.md_theme_light_tertiary
|
||||
import com.example.compose.md_theme_light_tertiaryContainer
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ import android.app.Service
|
||||
import android.app.WallpaperManager
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.graphics.Bitmap
|
||||
import android.graphics.BitmapFactory
|
||||
import android.graphics.ImageDecoder
|
||||
import android.net.Uri
|
||||
@@ -31,6 +30,7 @@ import java.time.LocalDateTime
|
||||
import java.time.format.DateTimeFormatter
|
||||
import javax.inject.Inject
|
||||
|
||||
|
||||
@AndroidEntryPoint
|
||||
class WallpaperService: Service() {
|
||||
@Inject lateinit var repository: SelectedAlbumRepository
|
||||
@@ -126,7 +126,7 @@ class WallpaperService: Service() {
|
||||
return NotificationCompat.Builder(this, "wallpaper_service_channel")
|
||||
.setContentTitle("Paperize")
|
||||
.setContentText("Rotation: $current/$total wallpapers\nInterval: ${formatTime(timeInMinutes)}")
|
||||
.setSmallIcon(R.drawable.ic_launcher_foreground)
|
||||
.setSmallIcon(R.drawable.notification_icon)
|
||||
.build()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="1024"
|
||||
android:viewportHeight="1024"
|
||||
android:tint="#FFFFFF">
|
||||
<group android:scaleX="1.127451"
|
||||
android:scaleY="1.127451"
|
||||
android:translateX="-65.254906"
|
||||
android:translateY="-65.254906">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M351,344c0.2,2.9 -0.8,4.8 -4,5.1 -2.3,0.2 -3.7,1.6 -3.5,4 0.1,2.5 2.1,3.2 4.1,3.5 5.9,0.9 11.7,-0 17.3,-1.8 10.5,-3.3 21.5,-4.7 32,-7.6 3,-0.8 6.9,-0.9 7.6,-4.6 0.7,-3.4 -1.8,-5.8 -4.7,-7.6 -0.5,-0.3 -0.7,-1 -1.4,-2.1 6.8,-2.8 13.7,-3.3 20.5,-4.1 28.2,-3.3 56.6,-5.4 84.6,-10 3.7,-0.6 7.3,-2.2 11.4,-1.3 -10.2,6.7 -20.5,13.2 -32,18.3 3.8,-0.5 7.6,-0.9 11.3,-1.4 3.8,-0.6 7.5,-1.5 11.3,-2.1 48.3,-8 92,-28.4 135,-50.5 12.5,-6.4 25.3,-11.9 38.8,-15.9 7.5,-2.3 14.5,-1.8 21.6,1.9 16,8.2 26.6,21.3 34.6,36.9 0.5,0.9 0.7,1.9 0.2,3.2 -2.6,0.5 -5.6,1.9 -5.3,-3.2 0.1,-1.2 -0.4,-2.5 -1.4,-3 -8,-4.1 -15,-11.3 -25.6,-6.6 -7.4,3.3 -15.6,4.5 -23,8.5 1.6,3.2 4,3.8 7.1,3.1 1.3,-0.3 2.6,-0.3 4,-0.4 2.9,-0 4.7,1.5 5.1,4.4 0.5,3.2 -1.8,4 -4.1,4.6 -8.6,2.1 -17.1,4.2 -25.7,6.3 -20.4,5.1 -40,12.5 -60.3,17.8 -29.1,7.6 -58.3,15 -88.7,16.3 -4.4,0.2 -8.8,0.8 -13.3,1.7 6.6,1.5 12.8,4.6 20.1,3.1 6,-1.2 12.2,-1.1 18.4,-1.5 19.5,-1.1 38.6,-4.4 57.3,-10.2 2.4,-0.7 4.7,-1.6 7.1,-2.3 0.1,-0 0.3,0.1 1.2,0.5 -4.6,5.5 -11.1,8 -18,11.8 4.9,1.5 8.3,0.2 11.5,-0.4 25.4,-4.8 50,-12.7 75,-18.7 21.4,-5.2 43,-8.7 65.2,-7.8 5.7,0.2 11.3,1.1 16.8,2.4 3.1,0.7 5.7,2.4 7.9,4.9 11.4,13 16.8,28.5 19.2,45.3 0.5,3.8 1,7.5 1.8,12.8l-22.7,-9.9c1.6,-1.8 3.1,-1.1 4.5,-1.3 2,-0.3 5,0.6 5.3,-2.3 0.3,-2.5 -1,-5.1 -3.6,-6.1 -4,-1.6 -8.1,-3.1 -12.3,-4.1 -24.1,-5.8 -48.2,-4.4 -72.3,0.3 -15.3,3 -30.6,6.5 -45.5,11.4 -0.9,0.3 -1.9,0.6 -2.8,1 -2,1 -4,2.3 -3.3,4.9 0.7,2.8 3.2,2 5,1.7 8.8,-1.6 17.6,-3.5 26.2,-6.4 1.3,-0.5 2.7,-1.4 4.8,-0.5 -6.4,6.6 -15.2,9.5 -22.5,16.7 11.1,-1.9 20.9,-3.5 30.6,-5.2 25.7,-4.4 51.5,-5.3 76.7,1.7 31.8,8.9 46,27.6 47.1,58.9 0.5,15 -2,29.5 -7.4,43.5 -0.5,1.3 -0.4,3.1 -2.2,3.6 -1.1,-0.4 -1,-1.4 -0.8,-2.1 4,-21 -10.6,-43.7 -30.1,-53.4 -16.8,-8.3 -34.7,-9.9 -53.1,-9 -3.7,0.2 -7.2,1.6 -9.9,4.4 -1.1,1.1 -2.9,2.1 -2.2,4.1 0.8,2.2 2.7,2.7 4.9,2.7 7,0 14,0.3 21,0.9 7.5,0.6 14.8,2 22.2,3.1 3.8,0.6 5.5,2.6 6.3,6.3 4.3,20 5.2,40.2 3.4,60.5 -2.8,30.8 -11.3,59.8 -26.1,86.8 -19.9,36.5 -47,66.4 -81.9,89.3 -34.2,22.5 -71.8,34.9 -112.3,38.2 -24.4,2 -48.9,0.8 -72.9,-5.5 -4,-1 -5.8,-2.5 -5.7,-7 0.1,-46.7 0.1,-93.3 -0,-140 -0,-4.8 1.9,-5.9 6.3,-5.9 24,0.1 48,0.2 72,0 24.7,-0.2 48.8,-4.2 71.1,-15.3 23.7,-11.9 39.9,-30.5 45.8,-56.7 6.1,-27.1 -0.7,-51.1 -19.7,-71.5 -19,-20.4 -43.2,-31.8 -69.4,-39.8 -22,-6.7 -44.7,-10.1 -67.5,-13 -33.7,-4.3 -67.5,-3.1 -101.3,-3.1 -4.7,0 -6,1.8 -6,6.2 0.1,51.2 0,102.3 -0,153.5 -0,74.8 -0.1,149.7 -0.1,224.5 -0,5.4 0,10.9 0,16.1 -2.1,0.5 -2.8,-0.3 -3.4,-1 -7.2,-8.1 -14.4,-16.2 -21.6,-24.2 -2.2,-2.5 -3.2,-5.3 -3.1,-8.6 0.1,-25.5 -0,-50.9 -0,-76.4 0,-91.3 0,-182.6 0.1,-273.9 0,-5.3 -2.7,-7.7 -10.5,-9.4 -1.6,1.8 -0.9,4.1 -0.9,6.2 -0.1,103.7 -0.1,207.3 -0.1,311 0,2.2 0,4.4 -0.3,6.5 -0.3,1.8 0,4.5 -2.8,4.6 -2.6,0.1 -5,-1 -6.1,-3.5 -1.3,-2.8 -1.2,-5.8 -1.2,-8.8 -0,-70.5 -0,-141 -0,-211.5 -0,-33.2 -0.2,-66.3 0.2,-99.5 0.1,-6.7 -1.7,-11.1 -7.8,-13.7 -1.3,-0.6 -2.3,-2 -4.1,-2.1 -2.7,1.6 -1.8,4.3 -1.8,6.6 -0,59.8 -0,119.7 -0,179.5 0,33.3 0.1,66.7 0.1,100 0,1.3 -0.2,2.6 -0.2,4 -0.7,0 -1.3,0.2 -1.6,-0 -7.8,-7.3 -14.8,-15.4 -21.5,-23.6 -2.2,-2.7 -2.1,-6.4 -1.9,-9.6 1.2,-15.2 -2.5,-28.8 -9,-42.7 -10,-21.2 -14,-44.2 -15.6,-67.7 -2.1,-29.9 0.8,-59.1 10.1,-87.7 2,-6 4.7,-11.7 7.3,-17.5 1,-2.3 1.9,-4.9 5.4,-5.2 2.5,-0.2 1.6,-2.9 1.6,-4.6 0.1,-13.7 1,-27.4 -0.1,-41 -1.3,-17.4 5.2,-29.9 18.9,-40.3 17.2,-12.9 35.7,-23.2 55.1,-32.2 33.5,-15.6 69.2,-24.7 104.7,-34.4 33,-9.1 65.3,-20 94.2,-38.9 1.1,-0.7 2.4,-1.3 3.3,-2.3 5.7,-6 12.3,-5.5 19.3,-3.2 5.6,1.8 11.4,3.3 16.9,6.4 -0.7,0.9 -1,1.6 -1.5,1.9 -25.5,14.4 -50.4,30 -77.8,40.7 -24,9.3 -48.7,15.7 -73.8,21.1 -33.6,7.2 -66.8,15.7 -96.9,33.1 -8.8,5.1 -17.6,10.3 -24.1,18.4 -3.1,3.8 -5.3,8 -2.8,13.3 5.6,-1.6 10.4,-4.6 16.3,-5.2 0.4,-0 0.4,-0.1 0.4,-0.1z"/>
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M509.5,440.1c10.1,1.1 19.5,2.9 28.4,6.8 22.1,9.6 31.3,34.1 19.8,53.7 -6.8,11.7 -18.4,16.1 -31,17.6 -21.7,2.5 -43.6,0.6 -65.3,1.2 -4.5,0.1 -4.7,-2.7 -4.7,-5.9 -0,-12.8 0,-25.6 0,-38.4 -0,-10.2 0.1,-20.3 -0.1,-30.5 -0.1,-4.2 1.5,-5.6 5.5,-5.6 15.6,-0 31.3,0.1 47.3,1.1zM585,279.1c-22.2,10.8 -44,21.6 -67.6,27.8 -17.7,4.7 -35.7,7.7 -54,9.6 -35.4,3.6 -70.8,7.1 -105,17.8 -5,1.6 -9.9,3.6 -15.4,5.6 0.7,-2.6 2.6,-3 3.9,-3.9 23.4,-16.4 50,-25.3 77.1,-33.3 25.2,-7.4 51.1,-12.1 76.5,-19 29.3,-7.9 56.9,-19.5 83.4,-34.1 14,-7.7 27.9,-15.7 43.6,-19.5 4,-1 7.8,-1 11.8,0.2 11.3,3.4 21.7,8.4 30.5,16.4 3,2.7 2.9,4.5 -0.9,6.1 -3.1,1.3 -6.1,2.7 -9.1,4.2 -3.3,1.7 -6.1,3.6 -9.1,-1 -1.6,-2.3 -5,-1.8 -7.9,-1 -20.1,5.8 -39.2,13.9 -57.9,24z"/>
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M615.3,281.3c-17.6,9.8 -35.2,18.9 -54.7,23.9 16.7,-11.1 33.3,-22.2 49.5,-34.4 2.4,4.2 -2.7,5.2 -1.9,8.4 14.4,-4.2 25.3,-16 40.7,-17.7 -10.3,7.9 -22.4,12.7 -33.6,19.7zM715,306.4c4.1,-0.1 7.8,-1.1 12.6,-0.1 -4.4,2.7 -8.1,4.1 -12.3,3.7 -3.4,-0.3 -3.3,-1.7 -0.4,-3.6zM706.1,378c3.5,0.1 6.3,-3.1 9.7,-0.6 -6,0.8 -10.9,5.6 -18.4,4.3 2.8,-2.7 5.7,-2.8 8.6,-3.7zM351,344c4.1,-2.3 7.6,-3.3 11.8,-3 -3.1,4.5 -7.4,2.4 -11.4,3 -0.4,0 -0.4,0 -0.4,0z"/>
|
||||
</group>
|
||||
</vector>
|
||||
|
After Width: | Height: | Size: 572 B |
|
After Width: | Height: | Size: 361 B |
|
After Width: | Height: | Size: 799 B |
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,20 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="1024"
|
||||
android:viewportHeight="1024">
|
||||
<group android:scaleX="0.9"
|
||||
android:scaleY="0.9"
|
||||
android:translateX="51.2"
|
||||
android:translateY="51.2">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M351,344c0.2,2.9 -0.8,4.8 -4,5.1 -2.3,0.2 -3.7,1.6 -3.5,4 0.1,2.5 2.1,3.2 4.1,3.5 5.9,0.9 11.7,-0 17.3,-1.8 10.5,-3.3 21.5,-4.7 32,-7.6 3,-0.8 6.9,-0.9 7.6,-4.6 0.7,-3.4 -1.8,-5.8 -4.7,-7.6 -0.5,-0.3 -0.7,-1 -1.4,-2.1 6.8,-2.8 13.7,-3.3 20.5,-4.1 28.2,-3.3 56.6,-5.4 84.6,-10 3.7,-0.6 7.3,-2.2 11.4,-1.3 -10.2,6.7 -20.5,13.2 -32,18.3 3.8,-0.5 7.6,-0.9 11.3,-1.4 3.8,-0.6 7.5,-1.5 11.3,-2.1 48.3,-8 92,-28.4 135,-50.5 12.5,-6.4 25.3,-11.9 38.8,-15.9 7.5,-2.3 14.5,-1.8 21.6,1.9 16,8.2 26.6,21.3 34.6,36.9 0.5,0.9 0.7,1.9 0.2,3.2 -2.6,0.5 -5.6,1.9 -5.3,-3.2 0.1,-1.2 -0.4,-2.5 -1.4,-3 -8,-4.1 -15,-11.3 -25.6,-6.6 -7.4,3.3 -15.6,4.5 -23,8.5 1.6,3.2 4,3.8 7.1,3.1 1.3,-0.3 2.6,-0.3 4,-0.4 2.9,-0 4.7,1.5 5.1,4.4 0.5,3.2 -1.8,4 -4.1,4.6 -8.6,2.1 -17.1,4.2 -25.7,6.3 -20.4,5.1 -40,12.5 -60.3,17.8 -29.1,7.6 -58.3,15 -88.7,16.3 -4.4,0.2 -8.8,0.8 -13.3,1.7 6.6,1.5 12.8,4.6 20.1,3.1 6,-1.2 12.2,-1.1 18.4,-1.5 19.5,-1.1 38.6,-4.4 57.3,-10.2 2.4,-0.7 4.7,-1.6 7.1,-2.3 0.1,-0 0.3,0.1 1.2,0.5 -4.6,5.5 -11.1,8 -18,11.8 4.9,1.5 8.3,0.2 11.5,-0.4 25.4,-4.8 50,-12.7 75,-18.7 21.4,-5.2 43,-8.7 65.2,-7.8 5.7,0.2 11.3,1.1 16.8,2.4 3.1,0.7 5.7,2.4 7.9,4.9 11.4,13 16.8,28.5 19.2,45.3 0.5,3.8 1,7.5 1.8,12.8l-22.7,-9.9c1.6,-1.8 3.1,-1.1 4.5,-1.3 2,-0.3 5,0.6 5.3,-2.3 0.3,-2.5 -1,-5.1 -3.6,-6.1 -4,-1.6 -8.1,-3.1 -12.3,-4.1 -24.1,-5.8 -48.2,-4.4 -72.3,0.3 -15.3,3 -30.6,6.5 -45.5,11.4 -0.9,0.3 -1.9,0.6 -2.8,1 -2,1 -4,2.3 -3.3,4.9 0.7,2.8 3.2,2 5,1.7 8.8,-1.6 17.6,-3.5 26.2,-6.4 1.3,-0.5 2.7,-1.4 4.8,-0.5 -6.4,6.6 -15.2,9.5 -22.5,16.7 11.1,-1.9 20.9,-3.5 30.6,-5.2 25.7,-4.4 51.5,-5.3 76.7,1.7 31.8,8.9 46,27.6 47.1,58.9 0.5,15 -2,29.5 -7.4,43.5 -0.5,1.3 -0.4,3.1 -2.2,3.6 -1.1,-0.4 -1,-1.4 -0.8,-2.1 4,-21 -10.6,-43.7 -30.1,-53.4 -16.8,-8.3 -34.7,-9.9 -53.1,-9 -3.7,0.2 -7.2,1.6 -9.9,4.4 -1.1,1.1 -2.9,2.1 -2.2,4.1 0.8,2.2 2.7,2.7 4.9,2.7 7,0 14,0.3 21,0.9 7.5,0.6 14.8,2 22.2,3.1 3.8,0.6 5.5,2.6 6.3,6.3 4.3,20 5.2,40.2 3.4,60.5 -2.8,30.8 -11.3,59.8 -26.1,86.8 -19.9,36.5 -47,66.4 -81.9,89.3 -34.2,22.5 -71.8,34.9 -112.3,38.2 -24.4,2 -48.9,0.8 -72.9,-5.5 -4,-1 -5.8,-2.5 -5.7,-7 0.1,-46.7 0.1,-93.3 -0,-140 -0,-4.8 1.9,-5.9 6.3,-5.9 24,0.1 48,0.2 72,0 24.7,-0.2 48.8,-4.2 71.1,-15.3 23.7,-11.9 39.9,-30.5 45.8,-56.7 6.1,-27.1 -0.7,-51.1 -19.7,-71.5 -19,-20.4 -43.2,-31.8 -69.4,-39.8 -22,-6.7 -44.7,-10.1 -67.5,-13 -33.7,-4.3 -67.5,-3.1 -101.3,-3.1 -4.7,0 -6,1.8 -6,6.2 0.1,51.2 0,102.3 -0,153.5 -0,74.8 -0.1,149.7 -0.1,224.5 -0,5.4 0,10.9 0,16.1 -2.1,0.5 -2.8,-0.3 -3.4,-1 -7.2,-8.1 -14.4,-16.2 -21.6,-24.2 -2.2,-2.5 -3.2,-5.3 -3.1,-8.6 0.1,-25.5 -0,-50.9 -0,-76.4 0,-91.3 0,-182.6 0.1,-273.9 0,-5.3 -2.7,-7.7 -10.5,-9.4 -1.6,1.8 -0.9,4.1 -0.9,6.2 -0.1,103.7 -0.1,207.3 -0.1,311 0,2.2 0,4.4 -0.3,6.5 -0.3,1.8 0,4.5 -2.8,4.6 -2.6,0.1 -5,-1 -6.1,-3.5 -1.3,-2.8 -1.2,-5.8 -1.2,-8.8 -0,-70.5 -0,-141 -0,-211.5 -0,-33.2 -0.2,-66.3 0.2,-99.5 0.1,-6.7 -1.7,-11.1 -7.8,-13.7 -1.3,-0.6 -2.3,-2 -4.1,-2.1 -2.7,1.6 -1.8,4.3 -1.8,6.6 -0,59.8 -0,119.7 -0,179.5 0,33.3 0.1,66.7 0.1,100 0,1.3 -0.2,2.6 -0.2,4 -0.7,0 -1.3,0.2 -1.6,-0 -7.8,-7.3 -14.8,-15.4 -21.5,-23.6 -2.2,-2.7 -2.1,-6.4 -1.9,-9.6 1.2,-15.2 -2.5,-28.8 -9,-42.7 -10,-21.2 -14,-44.2 -15.6,-67.7 -2.1,-29.9 0.8,-59.1 10.1,-87.7 2,-6 4.7,-11.7 7.3,-17.5 1,-2.3 1.9,-4.9 5.4,-5.2 2.5,-0.2 1.6,-2.9 1.6,-4.6 0.1,-13.7 1,-27.4 -0.1,-41 -1.3,-17.4 5.2,-29.9 18.9,-40.3 17.2,-12.9 35.7,-23.2 55.1,-32.2 33.5,-15.6 69.2,-24.7 104.7,-34.4 33,-9.1 65.3,-20 94.2,-38.9 1.1,-0.7 2.4,-1.3 3.3,-2.3 5.7,-6 12.3,-5.5 19.3,-3.2 5.6,1.8 11.4,3.3 16.9,6.4 -0.7,0.9 -1,1.6 -1.5,1.9 -25.5,14.4 -50.4,30 -77.8,40.7 -24,9.3 -48.7,15.7 -73.8,21.1 -33.6,7.2 -66.8,15.7 -96.9,33.1 -8.8,5.1 -17.6,10.3 -24.1,18.4 -3.1,3.8 -5.3,8 -2.8,13.3 5.6,-1.6 10.4,-4.6 16.3,-5.2 0.4,-0 0.4,-0.1 0.4,-0.1z"/>
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M509.5,440.1c10.1,1.1 19.5,2.9 28.4,6.8 22.1,9.6 31.3,34.1 19.8,53.7 -6.8,11.7 -18.4,16.1 -31,17.6 -21.7,2.5 -43.6,0.6 -65.3,1.2 -4.5,0.1 -4.7,-2.7 -4.7,-5.9 -0,-12.8 0,-25.6 0,-38.4 -0,-10.2 0.1,-20.3 -0.1,-30.5 -0.1,-4.2 1.5,-5.6 5.5,-5.6 15.6,-0 31.3,0.1 47.3,1.1zM585,279.1c-22.2,10.8 -44,21.6 -67.6,27.8 -17.7,4.7 -35.7,7.7 -54,9.6 -35.4,3.6 -70.8,7.1 -105,17.8 -5,1.6 -9.9,3.6 -15.4,5.6 0.7,-2.6 2.6,-3 3.9,-3.9 23.4,-16.4 50,-25.3 77.1,-33.3 25.2,-7.4 51.1,-12.1 76.5,-19 29.3,-7.9 56.9,-19.5 83.4,-34.1 14,-7.7 27.9,-15.7 43.6,-19.5 4,-1 7.8,-1 11.8,0.2 11.3,3.4 21.7,8.4 30.5,16.4 3,2.7 2.9,4.5 -0.9,6.1 -3.1,1.3 -6.1,2.7 -9.1,4.2 -3.3,1.7 -6.1,3.6 -9.1,-1 -1.6,-2.3 -5,-1.8 -7.9,-1 -20.1,5.8 -39.2,13.9 -57.9,24z"/>
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M615.3,281.3c-17.6,9.8 -35.2,18.9 -54.7,23.9 16.7,-11.1 33.3,-22.2 49.5,-34.4 2.4,4.2 -2.7,5.2 -1.9,8.4 14.4,-4.2 25.3,-16 40.7,-17.7 -10.3,7.9 -22.4,12.7 -33.6,19.7zM715,306.4c4.1,-0.1 7.8,-1.1 12.6,-0.1 -4.4,2.7 -8.1,4.1 -12.3,3.7 -3.4,-0.3 -3.3,-1.7 -0.4,-3.6zM706.1,378c3.5,0.1 6.3,-3.1 9.7,-0.6 -6,0.8 -10.9,5.6 -18.4,4.3 2.8,-2.7 5.7,-2.8 8.6,-3.7zM351,344c4.1,-2.3 7.6,-3.3 11.8,-3 -3.1,4.5 -7.4,2.4 -11.4,3 -0.4,0 -0.4,0 -0.4,0z"/>
|
||||
</group>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="800dp"
|
||||
android:height="800dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M20.472,10.081L3.528,10.081a1.59,1.59 0,0 0,-1.589 1.589v10.59a1.59,1.59 0,0 0,1.589 1.589h16.944a1.59,1.59 0,0 0,1.589 -1.589L22.061,11.67a1.59,1.59 0,0 0,-1.589 -1.589zM12,22.525c-3.066,0 -5.56,-2.494 -5.56,-5.56s2.494,-5.56 5.56,-5.56c3.066,0 5.56,2.494 5.56,5.56s-2.494,5.56 -5.56,5.56zM12,12.411c-2.511,0 -4.554,2.043 -4.554,4.554S9.489,21.519 12,21.519s4.554,-2.043 4.554,-4.554 -2.043,-4.554 -4.554,-4.554zM12,20.274a3.322,3.322 0,0 1,-3.221 -2.568h1.67c0.275,0.581 0.859,0.979 1.551,0.979 0.96,0 1.721,-0.761 1.721,-1.721 0,-0.96 -0.761,-1.721 -1.721,-1.721a1.7,1.7 0,0 0,-1.493 0.874L8.805,16.117A3.322,3.322 0,0 1,12 13.655a3.321,3.321 0,0 1,3.309 3.309A3.321,3.321 0,0 1,12 20.274zM23.849,0.396l-0.002,0.003 -0.006,-0.005 0.004,-0.004a0.668,0.668 0,0 0,-0.519 -0.238,0.654 0.654,0 0,0 -0.512,0.259l-1.818,2.353a1.564,1.564 0,0 0,-0.523 -0.095L3.528,2.669c-0.184,0 -0.358,0.038 -0.523,0.095L1.187,0.41A0.657,0.657 0,0 0,0.156 0.389L0.16,0.393 0.153,0.399 0.151,0.396a0.662,0.662 0,0 0,-0.012 0.824l1.909,2.471a1.587,1.587 0,0 0,-0.108 0.566v3.707a1.59,1.59 0,0 0,1.589 1.589h16.944a1.59,1.59 0,0 0,1.589 -1.589L22.062,4.257c0,-0.2 -0.041,-0.39 -0.109,-0.566l1.909,-2.471a0.663,0.663 0,0 0,-0.013 -0.824zM6.904,8.228a1.787,1.787 0,1 1,0 -3.574,1.787 1.787,0 0,1 0,3.574zM17.229,8.228a1.787,1.787 0,1 1,0 -3.574,1.787 1.787,0 0,1 0,3.574z"
|
||||
android:fillColor="#000000"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="98dp"
|
||||
android:height="96dp"
|
||||
android:viewportWidth="98"
|
||||
android:viewportHeight="96">
|
||||
<path
|
||||
android:pathData="M48.854,0C21.839,0 0,22 0,49.217c0,21.756 13.993,40.172 33.405,46.69 2.427,0.49 3.316,-1.059 3.316,-2.362 0,-1.141 -0.08,-5.052 -0.08,-9.127 -13.59,2.934 -16.42,-5.867 -16.42,-5.867 -2.184,-5.704 -5.42,-7.17 -5.42,-7.17 -4.448,-3.015 0.324,-3.015 0.324,-3.015 4.934,0.326 7.523,5.052 7.523,5.052 4.367,7.496 11.404,5.378 14.235,4.074 0.404,-3.178 1.699,-5.378 3.074,-6.6 -10.839,-1.141 -22.243,-5.378 -22.243,-24.283 0,-5.378 1.94,-9.778 5.014,-13.2 -0.485,-1.222 -2.184,-6.275 0.486,-13.038 0,0 4.125,-1.304 13.426,5.052a46.97,46.97 0,0 1,12.214 -1.63c4.125,0 8.33,0.571 12.213,1.63 9.302,-6.356 13.427,-5.052 13.427,-5.052 2.67,6.763 0.97,11.816 0.485,13.038 3.155,3.422 5.015,7.822 5.015,13.2 0,18.905 -11.404,23.06 -22.324,24.283 1.78,1.548 3.316,4.481 3.316,9.126 0,6.6 -0.08,11.897 -0.08,13.526 0,1.304 0.89,2.853 3.316,2.364 19.412,-6.52 33.405,-24.935 33.405,-46.691C97.707,22 75.788,0 48.854,0z"
|
||||
android:fillColor="#24292f"
|
||||
android:fillType="evenOdd"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,30 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="800dp"
|
||||
android:height="800dp"
|
||||
android:viewportWidth="512"
|
||||
android:viewportHeight="512">
|
||||
<path
|
||||
android:pathData="M382.37,175.62C322.89,142.36 227.43,88.94 79.36,6.03C69.37,-0.56 57.89,-1.43 47.96,1.93l254.05,254.05L382.37,175.62z"
|
||||
android:fillColor="#32BBFF"/>
|
||||
<path
|
||||
android:pathData="M47.96,1.93c-1.86,0.63 -3.67,1.39 -5.4,2.31C31.6,10.17 23.55,21.57 23.55,36v439.96c0,14.43 8.05,25.83 19.01,31.76c1.73,0.92 3.54,1.68 5.39,2.31L302.01,255.98L47.96,1.93z"
|
||||
android:fillColor="#32BBFF"/>
|
||||
<path
|
||||
android:pathData="M302.01,255.98L47.96,510.04c9.93,3.38 21.41,2.59 31.4,-4.1c143.6,-80.41 237.99,-133.2 298.15,-166.75c1.67,-0.94 3.32,-1.86 4.94,-2.77L302.01,255.98z"
|
||||
android:fillColor="#32BBFF"/>
|
||||
<path
|
||||
android:pathData="M23.55,255.98v219.98c0,14.43 8.05,25.83 19.01,31.76c1.73,0.92 3.54,1.68 5.39,2.31L302.01,255.98H23.55z"
|
||||
android:fillColor="#2C9FD9"/>
|
||||
<path
|
||||
android:pathData="M79.36,6.03C67.5,-1.8 53.52,-1.58 42.56,4.24l255.6,255.6l84.21,-84.21C322.89,142.36 227.43,88.94 79.36,6.03z"
|
||||
android:fillColor="#29CC5E"/>
|
||||
<path
|
||||
android:pathData="M298.16,252.13L42.56,507.72c10.96,5.82 24.94,6.15 36.79,-1.79c143.6,-80.41 237.99,-133.2 298.15,-166.75c1.67,-0.94 3.32,-1.86 4.94,-2.77L298.16,252.13z"
|
||||
android:fillColor="#D93F21"/>
|
||||
<path
|
||||
android:pathData="M488.45,255.98c0,-12.19 -6.15,-24.49 -18.34,-31.31c0,0 -22.8,-12.72 -92.68,-51.81l-83.12,83.12l83.2,83.21c69.12,-38.81 92.6,-51.89 92.6,-51.89C482.3,280.47 488.45,268.17 488.45,255.98z"
|
||||
android:fillColor="#FFD500"/>
|
||||
<path
|
||||
android:pathData="M470.11,287.29c12.19,-6.82 18.34,-19.12 18.34,-31.31H294.3l83.2,83.21C446.62,300.38 470.11,287.29 470.11,287.29z"
|
||||
android:fillColor="#FFAA00"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/app_icon_background"/>
|
||||
<foreground android:drawable="@drawable/app_icon_foreground"/>
|
||||
</adaptive-icon>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/app_icon_background"/>
|
||||
<foreground android:drawable="@drawable/app_icon_foreground"/>
|
||||
</adaptive-icon>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 10 KiB |
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="app_icon_background">#FFD9E2</color>
|
||||
</resources>
|
||||
@@ -45,7 +45,7 @@
|
||||
<string name="continue_button">I\'m In</string>
|
||||
<string name="notification_permission_is_required_for_this_app_to_work_properly">Notification permission is required for this app to work properly</string>
|
||||
<string name="allow">Allow</string>
|
||||
<string name="notification_info_message">Notifications are required for this app to work properly. If not given, the system may terminate the app as a service. You can mute notifications in the settings later through notifications channel categories.</string>
|
||||
<string name="notification_info_message">Notifications are recommended for this app to work properly. If not given, the system may terminate the app. You can mute notifications in the settings later.</string>
|
||||
<string name="set_as_lock_screen">Set as lock screen</string>
|
||||
<string name="lock_screen">Lock screen</string>
|
||||
<string name="home">Home screen</string>
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
buildscript {
|
||||
val agp_version by extra("8.3.1")
|
||||
repositories {
|
||||
google()
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("com.android.application") version "8.3.2" apply false
|
||||
id("com.android.library") version "8.3.2" apply false
|
||||
id("com.android.application") version "8.4.0" apply false
|
||||
id("com.android.library") version "8.4.0" apply false
|
||||
id("org.jetbrains.kotlin.android") version "1.9.0" apply false
|
||||
id("com.google.dagger.hilt.android") version "2.50" apply false
|
||||
id("com.google.devtools.ksp") version "1.9.0-1.0.13" apply false
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#Thu Oct 26 16:15:31 PDT 2023
|
||||
#Tue Apr 30 13:31:42 PDT 2024
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||