mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-02-18 09:15:26 +00:00
When a user restores to a new phone, their TPM will no longer be able to decrypt the encrypted credentials. We have code already in place to delete "invalid" sites, which cleans these up by removing them. However, when trying to save a new site, Android continues to try to use the old keys which are no longer decryptable. So, when saving new encrypted files, simply reset the crypto keys if we are unable to encrypt.
35 lines
644 B
Groovy
35 lines
644 B
Groovy
buildscript {
|
|
ext {
|
|
workVersion = "2.7.1"
|
|
kotlinVersion = '1.7.20'
|
|
}
|
|
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.3.1'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
rootProject.buildDir = '../build'
|
|
subprojects {
|
|
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
|
}
|
|
subprojects {
|
|
project.evaluationDependsOn(':app')
|
|
}
|
|
|
|
tasks.register("clean", Delete) {
|
|
delete rootProject.buildDir
|
|
}
|