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
5 changes: 4 additions & 1 deletion app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@ include_directories(src/main/secp/secp256k1/src/)
include_directories(src/main/secp/secp256k1/)
include_directories(src/main/secp/)

# support compiling 16 KB-aligned: https://developer.android.com/guide/practices/page-sizes#cmake
target_link_options(core-lib PRIVATE "-Wl,-z,max-page-size=16384")

# add lib dependencies
target_link_libraries(
core-lib
android
log)
log)
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ val localProperties = gradleLocalProperties(rootDir, providers)

android {
namespace = "com.brainwallet"
compileSdk = 34
compileSdk = 36

defaultConfig {
applicationId = "ltd.grunt.brainwallet"
minSdk = 29
targetSdk = 34
targetSdk = 36
versionCode = 202506271
versionName = "v4.6.2"

Expand Down
5 changes: 3 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,16 @@
tools:ignore="GoogleAppIndexingWarning,UnusedAttribute"
tools:replace="android:fullBackupContent,android:allowBackup">

<property android:name="android.window.PROPERTY_COMPAT_ALLOW_RESTRICTED_RESIZABILITY" android:value="true" />

<!-- Main Compose Activity -->
<activity
android:name=".ui.BrainwalletActivity"
android:exported="true"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize">
<intent-filter android:autoVerify="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

Expand Down
5 changes: 0 additions & 5 deletions app/src/main/java/com/brainwallet/BrainwalletApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ import com.brainwallet.tools.listeners.SyncReceiver
import com.brainwallet.tools.manager.AnalyticsManager
import com.brainwallet.tools.util.BRConstants
import com.brainwallet.tools.util.Utils
import com.google.firebase.analytics.FirebaseAnalytics
import com.google.firebase.analytics.ktx.analytics
import com.google.firebase.analytics.setConsent
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.google.firebase.ktx.Firebase
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.GlobalContext.startKoin
Expand Down
5 changes: 2 additions & 3 deletions app/src/main/java/com/brainwallet/di/Module.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import com.brainwallet.ui.screens.yourseedwords.YourSeedWordsViewModel
import com.brainwallet.util.cryptography.KeyStoreKeyGenerator
import com.brainwallet.util.cryptography.KeyStoreManager
import com.brainwallet.worker.CurrencyUpdateWorker
import com.google.firebase.ktx.Firebase
import com.google.firebase.remoteconfig.ktx.remoteConfig
import com.google.firebase.Firebase
import com.google.firebase.remoteconfig.remoteConfig
import kotlinx.serialization.json.Json
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.OkHttpClient
Expand All @@ -35,7 +35,6 @@ import org.koin.core.component.inject
import org.koin.core.module.dsl.viewModel
import org.koin.core.module.dsl.viewModelOf
import org.koin.dsl.module
import retrofit2.HttpException
import retrofit2.Retrofit
import retrofit2.converter.kotlinx.serialization.asConverterFactory

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.asPaddingValues
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.offset
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.systemBars
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.RoundedCornerShape
Expand Down Expand Up @@ -93,39 +95,44 @@ fun WelcomeScreen(
modifier = Modifier
.fillMaxSize()
.background(BrainwalletTheme.colors.surface)
.verticalScroll(rememberScrollState()),
.verticalScroll(rememberScrollState())
.padding(WindowInsets.systemBars.asPaddingValues()),
) {
Image(
painterResource(R.drawable.brainwallet_logotype_white),
contentDescription = "brainwallet_logotype_white",
contentScale = ContentScale.Fit,
colorFilter = ColorFilter.tint(
BrainwalletTheme.colors.content,
),
Column(
modifier = Modifier
.align(Alignment.TopCenter)
.fillMaxWidth()
.padding(horizontal = 55.dp)
.padding(vertical = 30.dp)
)
.padding(vertical = 20.dp)
) {
Image(
painterResource(R.drawable.brainwallet_logotype_white),
contentDescription = "brainwallet_logotype_white",
contentScale = ContentScale.Fit,
colorFilter = ColorFilter.tint(
BrainwalletTheme.colors.content,
),
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 55.dp)
)

// Animation Placeholder
LottieAnimation(
modifier = Modifier
.fillMaxWidth()
.padding(leadTrailPadding.dp)
.background(
BrainwalletTheme.colors.surface,
BrainwalletTheme.shapes.large
)
.height(thirdOfScreenHeight.dp)
.clip(BrainwalletTheme.shapes.large),
composition = composition,
contentScale = ContentScale.FillWidth,
alignment = Alignment.Center,
progress = { progress }
)
}

// Animation Placeholder
LottieAnimation(
modifier = Modifier
.offset(y = 120.dp)
.fillMaxWidth()
.padding(leadTrailPadding.dp)
.background(
BrainwalletTheme.colors.surface,
BrainwalletTheme.shapes.large
)
.height(thirdOfScreenHeight.dp)
.clip(BrainwalletTheme.shapes.large),
composition = composition,
contentScale = ContentScale.FillWidth,
alignment = Alignment.Center,
progress = { progress }
)

Column(
modifier = Modifier.align(Alignment.BottomCenter),
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.
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 not shown.
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "2.0.0"
agp = "8.5.0"
agp = "8.5.1"
androidx-core-ktx = "1.12.0"
androidx-appcompat = "1.6.1"
androidx-legacy-support = "1.0.0"
Expand All @@ -25,7 +25,7 @@ google-play-feature-delivery = "2.1.0"
google-play-review = "2.0.1"
squareup-okhttp-bom = "4.12.0"
squareup-retrofit = "2.11.0"
firebase-bom = "32.7.1"
firebase-bom = "34.0.0"
jakewarthon-timber = "4.7.1"
eclipse-jetty = "9.2.19.v20160908"
junit = "4.13.2"
Expand Down Expand Up @@ -87,7 +87,7 @@ firebase-analytics = { module = "com.google.firebase:firebase-analytics" }
firebase-crashlytics = { module = "com.google.firebase:firebase-crashlytics" }
firebase-crashlytics-ndk = { module = "com.google.firebase:firebase-crashlytics-ndk" }
#firebase-iid = { module = "com.google.firebase:firebase-iid" }
firebase-config = { module = "com.google.firebase:firebase-config-ktx" }
firebase-config = { module = "com.google.firebase:firebase-config" }
firebase-messaging = { module = "com.google.firebase:firebase-messaging" }
firebase-inappmessaging = { module = "com.google.firebase:firebase-inappmessaging-display" }
jakewarthon-timber = { module = "com.jakewharton.timber:timber", version.ref = "jakewarthon-timber" }
Expand Down