Skip to content

Commit

Permalink
wallpaper: Track our own wallpaper
Browse files Browse the repository at this point in the history
  • Loading branch information
YuKongA committed Jun 18, 2023
1 parent cd0bd3f commit 119a207
Show file tree
Hide file tree
Showing 31 changed files with 68 additions and 49 deletions.
8 changes: 1 addition & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ android {

defaultConfig {
applicationId Meta.appId
namespace = applicationId
namespace applicationId
minSdkVersion Versions.minSdk
targetSdkVersion Versions.targetSdk
versionCode Meta.version
Expand Down Expand Up @@ -65,16 +65,10 @@ android {
kotlinOptions {
jvmTarget = '17'
}

buildFeatures {
buildConfig true
}
}

dependencies {
implementation(Libs.blueprint) {
transitive = true
}
// TODO: Remove comment marks to enable
// implementation Libs.oneSignal
}
24 changes: 1 addition & 23 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<uses-permission android:name="com.android.vending.BILLING" />

<application
android:name=".MyApplication"
android:allowBackup="true"
android:enableOnBackInvokedCallback="true"
android:icon="@mipmap/ic_launcher"
Expand Down Expand Up @@ -250,28 +251,5 @@
android:name="settingsActivity"
android:value="dev.jahir.kuper.ui.activities.KuperMuzeiSettingsActivity" />
</provider>

<!-- TODO: Remove comment marks to enable Kustom Skins
* Remove intent-filter action lines according to your needs.
* If you're not going to provide one of the options, remove its respective line.
<provider
android:name="org.kustom.api.Provider"
android:authorities="${applicationId}.kustom.provider"
android:exported="true"
tools:ignore="ExportedContentProvider">
<intent-filter>
<action android:name="org.kustom.provider.WALLPAPERS"/>
<action android:name="org.kustom.provider.WIDGETS"/>
<action android:name="org.kustom.provider.KOMPONENTS"/>
<action android:name="org.kustom.provider.LOCKSCREENS"/>
</intent-filter>
</provider>
-->

<!-- OneSignal Notifications Service -->
<!-- TODO: Remove comment marks to enable
<meta-data android:name="com.onesignal.NotificationServiceExtension"
android:value="${applicationId}.NotificationServiceExtension" />
-->
</application>
</manifest>
12 changes: 6 additions & 6 deletions app/src/main/assets/app_func_theme.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
<!-- Editor of Folder deploy and protract mode -->
<!-- Folder contract button -->
<Folder bg_frame_image="folderopenback" bg_frame_image_bottom_heigth="34"
bg_frame_way_of_drawing="1" editbox="appfunc_rename" folder_open_bg_color="#66000000"
line_enabled="1" up_button="folderclose" up_button_selected="folder_close_light">
bg_frame_way_of_drawing="1"
editbox="appfunc_rename" folder_open_bg_color="#66000000" line_enabled="1"
up_button="folderclose" up_button_selected="folder_close_light">
<!-- <Bg_frame way_of_drawing=""></Bg_frame> <Editbox way_of_drawing=""></Editbox>
<Up></Up> -->
</Folder>
Expand Down Expand Up @@ -77,8 +78,8 @@
<!-- Background (vertical) -->
<!-- Background (horizontal) -->
<!-- Background Color -->
<Home bg_color="#FF00000F" bg_h_image="none" bg_v_image="homebg" bg_way_of_drawing="1"
selected="shortcut_light_iconbg" unselected="appfunchome">
<Home bg_color="#FF00000F" bg_h_image="none" bg_v_image="homebg"
bg_way_of_drawing="1" selected="shortcut_light_iconbg" unselected="appfunchome">
<!-- <Unselected></Unselected> <Selected></Selected> <Bg_v way_of_drawing=""></Bg_v>
<Bg_h way_of_drawing=""></Bg_h> <Bg_color></Bg_color> -->
</Home>
Expand Down Expand Up @@ -118,5 +119,4 @@
<!-- Theme configuration -->
<!-- Grid Size -->
<AppSetting grid_format="1"></AppSetting>
</Theme>

</Theme>
2 changes: 1 addition & 1 deletion app/src/main/assets/desk.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,4 @@
</NotifyStyle>
</DockStyles>
</Dock>
</Desk>
</Desk>
Binary file removed app/src/main/assets/iconsets/Minimal Weather.zip
Binary file not shown.
6 changes: 2 additions & 4 deletions app/src/main/kotlin/com/yuk/meta/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ class MainActivity : BottomNavigationBlueprintActivity() {
* Return null to disable license check
*/
override fun getLicenseChecker(): PiracyChecker? {
destroyChecker() // Important
return null // Just for CI purposes
// return if (BuildConfig.DEBUG) null
// else super.getLicenseChecker()
destroyChecker()
return null
}

override fun defaultTheme(): Int = R.style.MyApp_Default
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/kotlin/com/yuk/meta/MyApplication.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.yuk.meta

import dev.jahir.frames.ui.FramesApplication

class MyApplication : FramesApplication(null)
6 changes: 6 additions & 0 deletions app/src/main/res/menu/bottom_navigation_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
android:orderInCategory="200"
android:title="@string/icons"
app:showAsAction="ifRoom" />
<item
android:id="@+id/wallpapers"
android:icon="@drawable/ic_wallpapers"
android:orderInCategory="300"
android:title="@string/wallpapers"
app:showAsAction="ifRoom" />
<item
android:id="@+id/apply"
android:icon="@drawable/ic_apply"
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/menu/drawer_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
android:icon="@drawable/ic_icons"
android:orderInCategory="200"
android:title="@string/icons" />
<item
android:id="@+id/wallpapers"
android:icon="@drawable/ic_wallpapers"
android:orderInCategory="300"
android:title="@string/wallpapers" />
<item
android:id="@+id/apply"
android:icon="@drawable/ic_apply"
Expand Down
Binary file removed app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions app/src/main/res/values/about_setup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<item>潮留美海かり</item>
<item>YuKongA</item>
<item>TaiPresident</item>
<item>其他参与图标绘制的朋友</item>
<item>其他参与图标绘制的朋友们</item>
</string-array>

<string-array name="credits_descriptions">
Expand All @@ -24,7 +24,7 @@
<item>绘制大量图标</item>
<item>咸鱼、现接手更新 APP</item>
<item>协助 APP 开发</item>
<item>Eirperuier、 世界第一小莲儿、 Mastiff Li、 Shahzaib Ahmed、HeMing505、FEC_Sky 等</item>
<item>Eirperuier、世界第一小莲儿、Mastiff Li、Shahzaib Ahmed、HeMing505、FEC_Sky 等</item>
</string-array>

<string-array name="credits_buttons">
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/frames_setup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">

<!-- This is the link for the JSON file where you have listed your wallpapers -->
<string name="json_url">null</string>
<string name="json_url">https://cdn.jsdelivr.net/gh/YuKongA/Meta-Icon_Pack@main/wallpaper/frames.json</string>

<!--
Enable immediate download
Expand All @@ -21,7 +21,7 @@
<bool name="enable_filled_collection_preview">false</bool>

<!-- Choose whether you want to show wallpaper palette colors or not -->
<bool name="show_wallpaper_palette_details">false</bool>
<bool name="show_wallpaper_palette_details">true</bool>

<!--
Show a custom image as placeholder while loading wallpapers or collections
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ object Versions {
const val ksp = "$kotlin-1.0.11"

// App
const val minSdk = 21
const val minSdk = 26
const val targetSdk = 34
const val buildTools = "34.0.0"

Expand Down
17 changes: 14 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
Expand All @@ -19,5 +19,16 @@ android.useAndroidX=true
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
# suppressUnsupportedCompileSdk
android.suppressUnsupportedCompileSdk=34
# Enable buildConfig build feature
android.defaults.buildfeatures.buildconfig=true
# Use non-transitive R classes
android.nonTransitiveRClass=true
# Preserve constant R class values
android.nonFinalRClass=true
# Suppress Unsupported Compile Sdk
android.suppressUnsupportedCompileSdk=34
# Other
org.gradle.parallel=true
org.gradle.configureondemand=true
org.gradle.caching=true
android.enableR8.fullMode=true
Binary file added wallpaper/Wallpaper_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added wallpaper/Wallpaper_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added wallpaper/Wallpaper_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added wallpaper/Wallpaper_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions wallpaper/frames.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"name": "Wallpaper 1",
"url": "https://cdn.jsdelivr.net/gh/YuKongA/Meta-Icon_Pack@main/wallpaper/Wallpaper_1.jpg",
"collections": "实景,小米,风景"
},
{
"name": "Wallpaper 2",
"url": "https://cdn.jsdelivr.net/gh/YuKongA/Meta-Icon_Pack@main/wallpaper/Wallpaper_2.jpg",
"collections": "插画,铃芽之旅,风景"
},
{
"name": "Wallpaper 3",
"url": "https://cdn.jsdelivr.net/gh/YuKongA/Meta-Icon_Pack@main/wallpaper/Wallpaper_3.jpg",
"collections": "插画,风景"
},
{
"name": "Wallpaper 4",
"url": "https://cdn.jsdelivr.net/gh/YuKongA/Meta-Icon_Pack@main/wallpaper/Wallpaper_4.jpg",
"collections": "插画,风景"
}
]

0 comments on commit 119a207

Please sign in to comment.