mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 19:07:41 +00:00
* feat(mobile): send the GitHub Android app to the new Orca app Orca for Android moves to a new app, dev.orca.app, on Google Play and as a separate APK. This final release of the GitHub app (com.stably.orca.mobile) opens to a full-screen guide that Back can't dismiss: phones with the Play Store get "Orca is now on Google Play", others get "Get the new Orca app", which downloads the newest android-v APK or opens the releases page. "Keep using this version" lets people in and brings the guide back after a week. Opening from a notification skips it until the next normal open. Until then a banner on Home reopens the guide and the update card stays hidden. Play Store presence is a small native check for an installed, enabled com.android.vending, since market:// links also open other stores. * feat(mobile): label the old GitHub Android app Orca (old)
20 lines
753 B
JavaScript
20 lines
753 B
JavaScript
const { AndroidConfig, withStringsXml } = require('expo/config-plugins')
|
|
|
|
// Why: the new app (dev.orca.app) installs next to this one, so the old GitHub app's launcher
|
|
// label says which icon the move screen's "Delete this app" step means. iOS keeps its name.
|
|
const RETIRED_ANDROID_PACKAGE = 'com.stably.orca.mobile'
|
|
const RETIRED_APP_LABEL = 'Orca (old)'
|
|
|
|
module.exports = function withAndroidRetiredAppName(config) {
|
|
if (config.android?.package !== RETIRED_ANDROID_PACKAGE) {
|
|
return config
|
|
}
|
|
return withStringsXml(config, (mod) => {
|
|
mod.modResults = AndroidConfig.Strings.setStringItem(
|
|
[AndroidConfig.Resources.buildResourceItem({ name: 'app_name', value: RETIRED_APP_LABEL })],
|
|
mod.modResults
|
|
)
|
|
return mod
|
|
})
|
|
}
|