Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mwr-638 backup not enough space error handling #210

Merged
merged 5 commits into from
Oct 3, 2023
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
12 changes: 4 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,6 @@ android {
}
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

buildFeatures {
viewBinding true
buildConfig true
Expand Down Expand Up @@ -128,6 +120,10 @@ android {
}
}

kotlin {
jvmToolchain(11)
}

applicationVariants.all { variant ->
variant.outputs.all { output ->
outputFileName = new File("Sora_" + variant.versionName + "_" + variant.flavorName + "_" + buildType.name + ".apk")
Expand Down
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ buildscript {
jna : '5.8.0',
accompanist : '0.30.1',
xserializationjson : '1.5.0',
ktor : '2.3.1'
ktor : '2.3.1',
xbackup : '0.0.2-20231002.173502-3'
]

ext {
Expand Down Expand Up @@ -117,7 +118,6 @@ buildscript {
webSocketLibDep = "com.neovisionaries:nv-websocket-client:$versions.webSocketLib"
uiCoreDep = "jp.co.soramitsu:ui-core:$versions.uiCore"
sharedUtilsDep = "jp.co.soramitsu.shared_features:core:$versions.sharedUtils"
sharedFeaturesBackupDep = "jp.co.soramitsu.shared_features:backup:$versions.sharedUtils"
sharedFeaturesModelsDep = "jp.co.soramitsu.shared_features:models:$versions.sharedUtils"

soraCardDep = "jp.co.soramitsu:android-sora-card:$versions.soraCard"
Expand Down Expand Up @@ -146,6 +146,8 @@ buildscript {

web3jDep = "org.web3j:core:$versions.web3j"

xbackupDep = "jp.co.soramitsu:xbackup:$versions.xbackup"

permissionsAccompanistDep = "com.google.accompanist:accompanist-permissions:$versions.accompanist"
permissionsRuntimeDep = "com.guolindev.permissionx:permissionx:1.7.1"

Expand Down
11 changes: 2 additions & 9 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ android {
}
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

composeOptions {
kotlinCompilerExtensionVersion versions.composeCompiler
}
Expand Down Expand Up @@ -113,6 +105,7 @@ android {
buildConfigField "String", "GOOGLE_API_TOKEN", readSecretInQuotes("SORA_GOOGLE_TOKEN_PROD")
}
}

namespace 'jp.co.soramitsu.common'
}

Expand Down Expand Up @@ -157,7 +150,7 @@ dependencies {
implementation navigationFragmentDep
implementation navigationUiDep

implementation sharedFeaturesBackupDep
implementation xbackupDep
implementation sharedUtilsDep

implementation gsonDep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ import java.util.Locale
import java.util.TimeZone
import javax.inject.Singleton
import jp.co.soramitsu.androidfoundation.phone.BasicClipboardManager
import jp.co.soramitsu.backup.BackupService
import jp.co.soramitsu.common.BuildConfig
import jp.co.soramitsu.common.account.AccountAvatarGenerator
import jp.co.soramitsu.common.data.AppStateProviderImpl
Expand Down Expand Up @@ -83,6 +82,7 @@ import jp.co.soramitsu.common.util.json_decoder.JsonAccountsEncoder
import jp.co.soramitsu.common.vibration.DeviceVibrator
import jp.co.soramitsu.crypto.ed25519.Ed25519Sha3
import jp.co.soramitsu.shared_utils.encrypt.json.JsonSeedEncoder
import jp.co.soramitsu.xbackup.BackupService
import jp.co.soramitsu.xnetworking.networkclient.SoramitsuHttpClientProvider
import jp.co.soramitsu.xnetworking.networkclient.SoramitsuHttpClientProviderImpl
import jp.co.soramitsu.xnetworking.networkclient.SoramitsuNetworkClient
Expand Down
1 change: 1 addition & 0 deletions common/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<string name="backup_password_requirments">Minimum six characters. Optionally, for better security, include uppercase letters, numbers and non-alphabetic characters.</string>
<string name="backup_password_title">Setting a password will encrypt your Google backup. You’ll need to enter this when restoring your wallet.\nMinimum password length is 6 characters.</string>
<string name="backup_password_title_2">Setting a password will encrypt your Google backup. You’ll need to enter this when restoring your wallet.</string>
<string name="backup_not_enough_space_error">Backup failed. Not enough space on your Google Drive. Free some space and try again.</string>
<string name="biometric_dialog_title">Authenticate</string>
<string name="block_id">Block hash</string>
<string name="buy_crypto_buy_xor_banner_title">Buy XOR token</string>
Expand Down
8 changes: 0 additions & 8 deletions common_wallet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ android {
}
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

composeOptions {
kotlinCompilerExtensionVersion versions.composeCompiler
}
Expand Down
16 changes: 0 additions & 16 deletions core_db/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ android {
minSdkVersion minVersion
targetSdkVersion targetVersion

// javaCompileOptions {
// annotationProcessorOptions {
// arguments += [
// "room.schemaLocation":"$projectDir/schemas".toString(),
// "room.incremental":"true"]
// }
// }

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

Expand All @@ -36,14 +28,6 @@ android {
}
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

flavorDimensions "default"

productFlavors {
Expand Down
8 changes: 0 additions & 8 deletions core_di/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

flavorDimensions "default"

productFlavors {
Expand Down
8 changes: 1 addition & 7 deletions demeter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = '1.8'
// }

composeOptions {
kotlinCompilerExtensionVersion versions.composeCompiler
}
Expand Down
8 changes: 0 additions & 8 deletions feature_account_api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

buildTypes {
release {
minifyEnabled soraMinifyRelease
Expand Down
8 changes: 0 additions & 8 deletions feature_account_impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ android {
}
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

flavorDimensions "default"

productFlavors {
Expand Down
8 changes: 0 additions & 8 deletions feature_assets_api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

buildTypes {
release {
minifyEnabled soraMinifyRelease
Expand Down
8 changes: 0 additions & 8 deletions feature_assets_impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

buildTypes {
release {
minifyEnabled soraMinifyRelease
Expand Down
8 changes: 0 additions & 8 deletions feature_blockexplorer_api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ android {
consumerProguardFiles "consumer-rules.pro"
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

buildFeatures {
viewBinding true
compose true
Expand Down
8 changes: 0 additions & 8 deletions feature_blockexplorer_impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ android {
consumerProguardFiles "consumer-rules.pro"
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

buildFeatures {
viewBinding true
compose true
Expand Down
8 changes: 0 additions & 8 deletions feature_ecosystem_api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

buildTypes {
release {
minifyEnabled soraMinifyRelease
Expand Down
8 changes: 0 additions & 8 deletions feature_ecosystem_impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ android {
}
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

buildFeatures {
viewBinding true
compose true
Expand Down
8 changes: 0 additions & 8 deletions feature_ethereum_api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ android {
}
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

flavorDimensions "default"

productFlavors {
Expand Down
8 changes: 0 additions & 8 deletions feature_ethereum_impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ android {
}
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

flavorDimensions "default"

productFlavors {
Expand Down
8 changes: 0 additions & 8 deletions feature_main_api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

buildTypes {
release {
minifyEnabled soraMinifyRelease
Expand Down
12 changes: 2 additions & 10 deletions feature_main_impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ android {
}
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

flavorDimensions "default"

productFlavors {
Expand Down Expand Up @@ -99,9 +91,9 @@ dependencies {

implementation googlePlayServiceAuth
implementation googleApiServicesDrive
implementation sharedFeaturesBackupDep
implementation xbackupDep
implementation sharedFeaturesModelsDep

implementation composeUiDep
implementation composeThemeAdapterDep
implementation composeFoundationDep
Expand Down
Loading