Skip to content

Commit

Permalink
Rise build number
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrVakhtinTari committed Oct 18, 2023
1 parent 4db09b1 commit 89b49dd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class SharedPrefsRepository @Inject constructor(
var actionMenuSide: Boolean by SharedPrefBooleanDelegate(sharedPrefs, this, formatKey(Key.actionMenuSide))

val onboardingAuthWasInterrupted: Boolean
get() = onboardingAuthSetupStarted && !onboardingAuthSetupCompleted
get() = onboardingAuthSetupStarted && (!onboardingAuthSetupCompleted || securityPrefRepository.pinCode != null)

val onboardingWasInterrupted: Boolean
get() = onboardingStarted && !onboardingCompleted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.tari.android.wallet.data.WalletConfig
import com.tari.android.wallet.data.sharedPrefs.SharedPrefsRepository
import com.tari.android.wallet.data.sharedPrefs.security.SecurityPrefRepository
import com.tari.android.wallet.di.DiContainer.appComponent
import com.tari.android.wallet.service.service.WalletServiceLauncher
import com.tari.android.wallet.ui.fragment.auth.AuthActivity
Expand All @@ -58,6 +59,9 @@ class SplashActivity : AppCompatActivity() {
@Inject
lateinit var sharedPrefsRepository: SharedPrefsRepository

@Inject
lateinit var securityPrefRepository: SecurityPrefRepository

@Inject
lateinit var walletServiceLauncher: WalletServiceLauncher

Expand All @@ -75,6 +79,10 @@ class SplashActivity : AppCompatActivity() {
WalletUtil.clearWalletFiles(walletConfig.getWalletFilesDirPath())
sharedPrefsRepository.clear()
}
if (securityPrefRepository.pinCode == null) {
launch(OnboardingFlowActivity::class.java)
return
}
launch(if (exists) AuthActivity::class.java else OnboardingFlowActivity::class.java)
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
ext.lifecycle_version = '2.6.2'

// build & version
ext.buildNumber = 259
ext.buildNumber = 260
ext.versionNumber = "0.24.0"

// JNI libs
Expand Down

0 comments on commit 89b49dd

Please sign in to comment.