Skip to content

Commit

Permalink
Add nightly build icons and update manifest placeholders for app icons
Browse files Browse the repository at this point in the history
  • Loading branch information
berkaytumal committed Feb 12, 2025
1 parent bcff843 commit 2608dab
Show file tree
Hide file tree
Showing 25 changed files with 24 additions and 3 deletions.
6 changes: 6 additions & 0 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,17 @@ android {
dimension = "default"
// Regular build uses the default application ID
applicationId = "web.bmdominatezz.gravy"
manifestPlaceholders["appIcon"] = "@mipmap/icon_default"
manifestPlaceholders["appRoundIcon"] = "@mipmap/icon_default_round"
}
create("debugFlavor"){
dimension = "default"
// Debug build uses the default application ID
applicationId = "web.bmdominatezz.gravy.debug"
// Override app name for debug builds
resValue("string", "app_name", "Groove Debug")
manifestPlaceholders["appIcon"] = "@mipmap/icon_nightly"
manifestPlaceholders["appRoundIcon"] = "@mipmap/icon_nightly_round"
// Use the defaultConfig’s versionName + commit hash + -debug
versionName = "$commitHash-debug"
}
Expand All @@ -77,6 +81,8 @@ android {
applicationId = "web.bmdominatezz.gravy.nightly"
// Override app name for nightly builds
resValue("string", "app_name", "Groove Nightly")
manifestPlaceholders["appIcon"] = "@mipmap/icon_nightly"
manifestPlaceholders["appRoundIcon"] = "@mipmap/icon_nightly_round"
// Use the defaultConfig’s versionName + commit hash + -nightly
versionName = "$commitHash-nightly"
}
Expand Down
11 changes: 8 additions & 3 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@
tools:ignore="ProtectedPermissions" />

<uses-permission android:name="android.permission.READ_CONTACTS" />

<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/icon_default"
android:icon="${appIcon}"
android:label="@string/app_name"
android:roundIcon="@mipmap/icon_default_round"
android:roundIcon="${appRoundIcon}"
android:supportsRtl="false"
android:theme="@style/Theme.GrooveLauncher">
<receiver
Expand All @@ -47,12 +48,13 @@
<action android:name="web.bmdominatezz.gravy.client" />
</intent-filter>
</receiver>

<service
android:name=".NotificationListener"
android:exported="true"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService"/>
<action android:name="android.service.notification.NotificationListenerService" />
</intent-filter>
</service>
<service
Expand All @@ -66,6 +68,7 @@
android:name="android.accessibilityservice"
android:resource="@xml/accessibility_service_config" />
</service>

<provider
android:name="rikka.shizuku.ShizukuProvider"
android:authorities="${applicationId}.shizuku"
Expand Down Expand Up @@ -96,8 +99,10 @@
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data android:scheme="groove" />
</intent-filter>
</activity>
Expand Down
Binary file added android/app/src/main/icon_nightly-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions android/app/src/main/res/mipmap-anydpi-v26/icon_nightly.xml
Original file line number Diff line number Diff line change
@@ -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="@mipmap/icon_nightly_background"/>
<foreground android:drawable="@mipmap/icon_nightly_foreground"/>
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -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="@mipmap/icon_nightly_background"/>
<foreground android:drawable="@mipmap/icon_nightly_foreground"/>
</adaptive-icon>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 2608dab

Please sign in to comment.