Rebrand Curare to Bennu under com.machankura.bennu
Move the packages to com.machankura.bennu.{compose,android,desktop}, the
Android applicationId to com.machankura.bennu.android and the iOS bundle
id to com.machankura.bennu.ios. The root project, launcher label, iOS
product, desktop window, user-facing strings, client tags and the
Curare* classes all say Bennu now.
Left alone on purpose: the mantra/ derivation tags, the `curated` desktop
data directory, the mantra.press relay and the curare.to references.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dddfa68b38
commit
b75d4b427f
975 files changed
+7642
-7641
No files matched your search
@@ -7,7 +7,7 @@
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
|
||||
<application
|
||||
android:name=".CurareApplication"
|
||||
android:name=".BennuApplication"
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
@@ -16,7 +16,7 @@
|
||||
android:theme="@android:style/Theme.Material.Light.NoActionBar">
|
||||
<activity
|
||||
android:exported="true"
|
||||
android:name="to.curare.android.MainActivity">
|
||||
android:name="com.machankura.bennu.android.MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package to.curare.android
|
||||
package com.machankura.bennu.android
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
@@ -14,7 +14,7 @@ import fr.acinq.phoenix.utils.preferences.GlobalPrefs
|
||||
/** This datastore persists preferences across node ids. */
|
||||
val Context.globalPrefs: DataStore<Preferences> by preferencesDataStore(name = "globalprefs")
|
||||
|
||||
class CurareApplication: Application(), LightningApplication {
|
||||
class BennuApplication: Application(), LightningApplication {
|
||||
private lateinit var globalPrefs: GlobalPrefs
|
||||
private lateinit var phoenixGlobal: PhoenixGlobal
|
||||
|
||||
+6
-6
@@ -1,4 +1,4 @@
|
||||
package to.curare.android
|
||||
package com.machankura.bennu.android
|
||||
|
||||
import android.content.Intent
|
||||
import android.nfc.NfcAdapter
|
||||
@@ -8,9 +8,9 @@ import androidx.activity.compose.setContent
|
||||
import androidx.activity.enableEdgeToEdge
|
||||
import androidx.navigation.compose.rememberNavController
|
||||
import fr.acinq.phoenix.NFCActivity
|
||||
import to.curare.compose.PlatformContext
|
||||
import to.curare.compose.CurareApp
|
||||
import to.curare.compose.CurareGlobal
|
||||
import com.machankura.bennu.compose.PlatformContext
|
||||
import com.machankura.bennu.compose.BennuApp
|
||||
import com.machankura.bennu.compose.BennuGlobal
|
||||
import fr.acinq.phoenix.PhoenixGlobal
|
||||
import fr.acinq.phoenix.android.services.HceService
|
||||
|
||||
@@ -25,9 +25,9 @@ class MainActivity : ComponentActivity(), NFCActivity {
|
||||
setContent {
|
||||
val navController = rememberNavController()
|
||||
|
||||
CurareApp(
|
||||
BennuApp(
|
||||
navController = navController,
|
||||
curareGlobal = CurareGlobal(
|
||||
bennuGlobal = BennuGlobal(
|
||||
platformContext = PlatformContext(
|
||||
applicationContext = applicationContext
|
||||
)
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
package to.curare.compose
|
||||
package com.machankura.bennu.compose
|
||||
|
||||
import to.curare.android.BuildConfig
|
||||
import com.machankura.bennu.android.BuildConfig
|
||||
|
||||
actual object AppVersion {
|
||||
actual val versionName: String
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package to.curare.compose
|
||||
package com.machankura.bennu.compose
|
||||
|
||||
import android.os.Build
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package to.curare.compose
|
||||
package com.machankura.bennu.compose
|
||||
|
||||
import android.content.Context
|
||||
|
||||
+6
-6
@@ -1,22 +1,22 @@
|
||||
package to.curare.compose.database.builder
|
||||
package com.machankura.bennu.compose.database.builder
|
||||
|
||||
import androidx.room3.Room
|
||||
import androidx.room3.RoomDatabase
|
||||
import to.curare.compose.PlatformContext
|
||||
import to.curare.compose.database.CurareDatabase
|
||||
import com.machankura.bennu.compose.PlatformContext
|
||||
import com.machankura.bennu.compose.database.BennuDatabase
|
||||
|
||||
actual object PlatformDatabaseBuilder {
|
||||
actual fun getDatabaseBuilder(platformContext: PlatformContext): RoomDatabase.Builder<CurareDatabase> {
|
||||
actual fun getDatabaseBuilder(platformContext: PlatformContext): RoomDatabase.Builder<BennuDatabase> {
|
||||
val appContext = platformContext.applicationContext
|
||||
|
||||
val dbFile = appContext.getDatabasePath("aux.db")
|
||||
return Room.databaseBuilder<CurareDatabase>(
|
||||
return Room.databaseBuilder<BennuDatabase>(
|
||||
context = appContext,
|
||||
name = dbFile.absolutePath
|
||||
)
|
||||
}
|
||||
|
||||
actual fun getInMemoryDatabaseBuilder(platform: PlatformContext): RoomDatabase.Builder<CurareDatabase> {
|
||||
actual fun getInMemoryDatabaseBuilder(platform: PlatformContext): RoomDatabase.Builder<BennuDatabase> {
|
||||
return Room.inMemoryDatabaseBuilder(
|
||||
context = platform.applicationContext
|
||||
)
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
package to.curare.compose.extensions
|
||||
package com.machankura.bennu.compose.extensions
|
||||
|
||||
import to.curare.android.CurareApplication
|
||||
import com.machankura.bennu.android.BennuApplication
|
||||
import fr.acinq.phoenix.PhoenixGlobal
|
||||
import fr.acinq.phoenix.android.BusinessManager
|
||||
import fr.acinq.phoenix.android.services.ChannelsWatcher
|
||||
@@ -23,11 +23,11 @@ actual fun schedulePlatformLogic(phoenixGlobal: PhoenixGlobal) {
|
||||
ContactsPhotoCleaner.schedule(phoenixGlobal.ctx.applicationContext)
|
||||
}
|
||||
actual fun getShowIntroFlow(phoenixGlobal: PhoenixGlobal): Flow<Boolean> {
|
||||
val machankuraApplication = phoenixGlobal.ctx.applicationContext as CurareApplication
|
||||
val machankuraApplication = phoenixGlobal.ctx.applicationContext as BennuApplication
|
||||
return machankuraApplication.getGlobalPrefs().getShowIntro
|
||||
}
|
||||
|
||||
actual fun getGlobalPrefs(phoenixGlobal: PhoenixGlobal): GlobalPrefs {
|
||||
val machankuraApplication = phoenixGlobal.ctx.applicationContext as CurareApplication
|
||||
val machankuraApplication = phoenixGlobal.ctx.applicationContext as BennuApplication
|
||||
return machankuraApplication.getGlobalPrefs()
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package to.curare.compose.network
|
||||
package com.machankura.bennu.compose.network
|
||||
|
||||
import io.ktor.client.engine.HttpClientEngineFactory
|
||||
import io.ktor.client.engine.cio.CIO
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package to.curare.compose.ui.theme
|
||||
package com.machankura.bennu.compose.ui.theme
|
||||
|
||||
import android.database.ContentObserver
|
||||
import android.provider.Settings
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package to.curare.compose.ui.theme
|
||||
package com.machankura.bennu.compose.ui.theme
|
||||
|
||||
import android.app.UiModeManager
|
||||
import android.content.Context
|
||||
+5
-5
@@ -1,6 +1,6 @@
|
||||
package to.curare.compose.ui.view.model
|
||||
package com.machankura.bennu.compose.ui.view.model
|
||||
|
||||
import to.curare.android.CurareApplication
|
||||
import com.machankura.bennu.android.BennuApplication
|
||||
import fr.acinq.phoenix.PhoenixGlobal
|
||||
import fr.acinq.phoenix.android.BusinessManager
|
||||
import fr.acinq.phoenix.data.DecryptSeedResult
|
||||
@@ -24,12 +24,12 @@ actual fun loadAndDecryptSeed(phoenixGlobal: PhoenixGlobal): DecryptSeedResult {
|
||||
}
|
||||
|
||||
actual fun getAvailableWalletsMeta(phoenixGlobal: PhoenixGlobal): Flow<Map<WalletId, UserWalletMetadata>> {
|
||||
val machankuraApplication = phoenixGlobal.ctx.applicationContext as CurareApplication
|
||||
val machankuraApplication = phoenixGlobal.ctx.applicationContext as BennuApplication
|
||||
return machankuraApplication.getGlobalPrefs().getAvailableWalletsMeta
|
||||
}
|
||||
|
||||
actual suspend fun saveAvailableWalletMeta(phoenixGlobal: PhoenixGlobal, metadata: UserWalletMetadata) {
|
||||
val machankuraApplication = phoenixGlobal.ctx.applicationContext as CurareApplication
|
||||
val machankuraApplication = phoenixGlobal.ctx.applicationContext as BennuApplication
|
||||
machankuraApplication.getGlobalPrefs().saveAvailableWalletMeta(metadata)
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ actual suspend fun saveAvailableWalletMeta(
|
||||
avatar: String,
|
||||
isHidden: Boolean
|
||||
) {
|
||||
val machankuraApplication = phoenixGlobal.ctx.applicationContext as CurareApplication
|
||||
val machankuraApplication = phoenixGlobal.ctx.applicationContext as BennuApplication
|
||||
machankuraApplication.getGlobalPrefs().saveAvailableWalletMeta(
|
||||
walletId = walletId,
|
||||
name = name,
|
||||
@@ -1,5 +1,5 @@
|
||||
<resources>a
|
||||
<string name="app_name">Curare</string>
|
||||
<string name="app_name">Bennu</string>
|
||||
|
||||
<string name="notification_channels_watcher_title">Channels watcher</string>
|
||||
<string name="notification_channels_watcher_desc">Shows up when you need to start Phoenix.</string>
|
||||
|
||||
Reference in new issue
Block a user