Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ android {
applicationId = "ltd.grunt.brainwallet"
minSdk = 29
targetSdk = 34
versionCode = 202502262
versionName = "v4.3.0"
versionCode = 202503031
versionName = "v4.3.1"

multiDexEnabled = true
base.archivesName.set("${defaultConfig.versionName}(${defaultConfig.versionCode})")
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@

<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/bw_white_logotype" />
android:resource="@drawable/brainwallet_logotype_white" />
</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object NotificationHandler {
val notification = NotificationCompat.Builder(context, channelId)
.setContentTitle(title)
.setContentText(body)
.setSmallIcon(R.drawable.bw_white_logotype)
.setSmallIcon(R.drawable.brainwallet_logotype_white)
.setContentIntent(pendingIntent)
.setAutoCancel(true)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public void run() {
app = BreadActivity.getApp();
}

///DEV kcw-grunt 26-10-24
///DEV: kcw-grunt 26-10-24
/// DUMB sleep was slowing sync dramatically
/// Why is this here?
/// Reduced it from 500msec to 100msec until refactor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ private BRConstants() {
public static final String _20201121_FRIA = "failed_resolve_IPFS_address";
public static final String _20230113_BAC = "backup_apiserver_called";
public static final String _20230407_DCS = "did_complete_sync";

public static final String _20250303_DSTU = "did_skip_top_up";

///Dev: These events not yet used
public static final String _20200207_DTHB = "did_tap_header_balance";
public static final String _20210427_HCIEEH = "heartbeat_check_if_event_even_happens";
Expand Down Expand Up @@ -181,7 +184,8 @@ private BRConstants() {
_20241006_DRR,
_20241006_UCR,
_HOME_OPEN,
_20250222_PAC
_20250222_PAC,
_20250303_DSTU
})
public @interface Event {
}
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/com/brainwallet/ui/BrainwalletActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class BrainwalletActivity : BRActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

///DEV: Test / Dev Composable Shortcut swap to launch
/// Ergo; Route.TopUp
val startDestination =
intent.getSerializableExtra(EXTRA_START_DESTINATION) ?: Route.Welcome

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import androidx.lifecycle.viewmodel.compose.viewModel
import com.brainwallet.R
import com.brainwallet.navigation.OnNavigate
import com.brainwallet.navigation.UiEffect
import com.brainwallet.tools.manager.AnalyticsManager
import com.brainwallet.tools.util.BRConstants
import com.brainwallet.ui.composable.BorderedLargeButton
import com.brainwallet.ui.composable.BrainwalletScaffold
Expand Down Expand Up @@ -180,6 +181,7 @@ fun TopUpScreen(
MediumTextButton(
onClick = {
viewModel.onEvent(YourSeedProveItEvent.OnGameAndSync)
AnalyticsManager.logCustomEvent(BRConstants._20250303_DSTU)
},
modifier = Modifier
.width(skipButtonWidth.dp)
Expand Down Expand Up @@ -213,6 +215,7 @@ fun TopUpScreen(
BorderedLargeButton(
onClick = {
viewModel.onEvent(YourSeedProveItEvent.OnGameAndSync)
AnalyticsManager.logCustomEvent(BRConstants._20250303_DSTU)
},
modifier = Modifier.fillMaxWidth()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fun UnLockScreen(
modifier = Modifier
.fillMaxWidth(0.80f)
.padding(horizontalVerticalSpacing.dp),
painter = painterResource(R.drawable.bw_white_logotype),
painter = painterResource(R.drawable.brainwallet_logotype_white),
contentDescription = stringResource(R.string.logo),
colorFilter = ColorFilter.tint(
BrainwalletTheme.colors.content,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ fun WelcomeScreen(
Spacer(modifier = Modifier.weight(0.4f))

Image(
painterResource(R.drawable.bw_white_logotype),
contentDescription = "bw_white_logotype",
painterResource(R.drawable.brainwallet_logotype_white),
contentDescription = "brainwallet_logotype_white",
contentScale = ContentScale.Fit,
colorFilter = ColorFilter.tint(
BrainwalletTheme.colors.content,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable/bw_black_logotype.png
Binary file not shown.
Binary file added app/src/main/res/drawable/bw_logo_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable/bw_logotype.png
Binary file not shown.
Binary file removed app/src/main/res/drawable/bw_white_logotype.png
Binary file not shown.
4 changes: 2 additions & 2 deletions app/src/main/res/drawable/signal_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
android:topRightRadius="10dp"/>
<gradient
android:angle="45"
android:endColor="@color/near_black"
android:startColor="@color/near_black"
android:endColor="@color/midnight"
android:startColor="@color/midnight"
android:type="linear"/>
<padding
android:left="10dp"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_intro.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
android:layout_marginStart="8dp"
android:layout_marginTop="100dp"
android:layout_marginEnd="8dp"
android:src="@drawable/bw_white_logotype"
android:src="@drawable/brainwallet_logotype_white"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.498"
app:layout_constraintStart_toStartOf="parent"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_pin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:adjustViewBounds="true"
android:src="@drawable/bw_white_logotype"
android:src="@drawable/brainwallet_logotype_white"
app:layout_constraintBottom_toTopOf="@+id/brkeyboard"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintStart_toStartOf="parent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class LocaleHelperTest {
}

@Test
fun `check all language codes`() {
fun `check all language codes given the subjective business logic which prioritizes localization popularity`() {
Language.entries
.also { languages ->
assertEquals(16, languages.size)
Expand All @@ -69,14 +69,14 @@ class LocaleHelperTest {
"uk",
"ru",
"pt",
"hi",
"de",
"ko",
"fr",
"zh-TW",
"tr",
"ja",
"de",
"zh-CN",
"hi",
"it",
),
langCodes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class ProdAPIManagerTests {
assertEquals("GBP", jsonGBP.optString("code"))
assertEquals("British Pound Sterling", jsonGBP.optString("name"))

///DEV Very flaky test not enough time for the response
///DEV: Very flaky test not enough time for the response
verifyAll {
ActivityUTILS.isMainThread()
APIClient.getInstance(activity).getCurrentLocale(activity)
Expand Down