feat: Added Unauthenticated Session support.
chore: Upgraded Core to 9.9.0. chore: Upgraded Core Gradle Plugins to 1.1.2 (Detekt update).
This commit is contained in:
parent
b62e4db0c8
commit
7e4dee353e
File diff suppressed because it is too large
Load Diff
|
@ -125,6 +125,11 @@
|
|||
android:value="androidx.startup"
|
||||
tools:node="remove"/>
|
||||
|
||||
<meta-data
|
||||
android:name="me.proton.core.network.presentation.init.UnAuthSessionFetcherInitializer"
|
||||
android:value="androidx.startup"
|
||||
tools:node="remove" />
|
||||
|
||||
<meta-data
|
||||
android:name="ch.protonmail.android.security.presentation.SecurityManagerInitializer"
|
||||
android:value="androidx.startup"
|
||||
|
|
|
@ -110,6 +110,7 @@ import me.proton.core.crypto.validator.presentation.init.CryptoValidatorInitiali
|
|||
import me.proton.core.domain.entity.UserId;
|
||||
import me.proton.core.humanverification.presentation.HumanVerificationInitializer;
|
||||
import me.proton.core.plan.presentation.UnredeemedPurchaseInitializer;
|
||||
import me.proton.core.network.presentation.init.UnAuthSessionFetcherInitializer;
|
||||
import me.proton.core.util.kotlin.CoreLogger;
|
||||
import studio.forface.viewstatestore.ViewStateStoreConfig;
|
||||
import timber.log.Timber;
|
||||
|
@ -232,6 +233,7 @@ public class ProtonMailApplication extends Application implements androidx.work.
|
|||
appInitializer.initializeComponent(HumanVerificationInitializer.class);
|
||||
appInitializer.initializeComponent(MissingScopeInitializer.class);
|
||||
appInitializer.initializeComponent(UnredeemedPurchaseInitializer.class);
|
||||
appInitializer.initializeComponent(UnAuthSessionFetcherInitializer.class);
|
||||
|
||||
checkForUpdateAndClearCache();
|
||||
}
|
||||
|
|
|
@ -144,7 +144,7 @@ internal abstract class AppDatabase :
|
|||
|
||||
companion object {
|
||||
|
||||
const val version = 9
|
||||
const val version = 10
|
||||
private const val name = "proton-mail.db"
|
||||
|
||||
private fun getDbCreationCallback(context: Context): Callback = object : Callback() {
|
||||
|
@ -171,7 +171,8 @@ internal abstract class AppDatabase :
|
|||
AppDatabaseMigrations.MIGRATION_5_6,
|
||||
AppDatabaseMigrations.MIGRATION_6_7,
|
||||
AppDatabaseMigrations.MIGRATION_7_8,
|
||||
AppDatabaseMigrations.MIGRATION_8_9
|
||||
AppDatabaseMigrations.MIGRATION_8_9,
|
||||
AppDatabaseMigrations.MIGRATION_9_10,
|
||||
)
|
||||
Timber.v("Db migrations list size ${migrations.size}")
|
||||
return migrations
|
||||
|
|
|
@ -165,4 +165,11 @@ object AppDatabaseMigrations {
|
|||
PaymentDatabase.MIGRATION_0.migrate(database)
|
||||
}
|
||||
}
|
||||
|
||||
val MIGRATION_9_10 = object : Migration(9, 10) {
|
||||
override fun migrate(database: SupportSQLiteDatabase) {
|
||||
AccountDatabase.MIGRATION_5.migrate(database)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -25,7 +25,6 @@ import dagger.Module
|
|||
import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
||||
import dagger.hilt.components.SingletonComponent
|
||||
import me.proton.core.auth.domain.ClientSecret
|
||||
import me.proton.core.network.data.client.ExtraHeaderProviderImpl
|
||||
import me.proton.core.network.data.di.BaseProtonApiUrl
|
||||
import me.proton.core.network.data.di.Constants
|
||||
|
@ -41,10 +40,6 @@ import javax.inject.Singleton
|
|||
@InstallIn(SingletonComponent::class)
|
||||
object NetworkModule {
|
||||
|
||||
@Provides
|
||||
@ClientSecret
|
||||
fun provideClientSecret(): String = ""
|
||||
|
||||
@Provides
|
||||
@BaseProtonApiUrl
|
||||
fun provideProtonApiUrl(@BaseUrl baseUrl: String): HttpUrl = baseUrl.toHttpUrl()
|
||||
|
|
|
@ -36,7 +36,7 @@ allprojects {
|
|||
plugins {
|
||||
id("me.proton.kotlin") version "0.1" // Released: Oct 09, 2020
|
||||
id("me.proton.tests") version "0.1" // Released: Oct 09, 2020
|
||||
id("me.proton.core.gradle-plugins.detekt") version "1.0.0-alpha03"
|
||||
id("me.proton.core.gradle-plugins.detekt") version "1.1.2"
|
||||
`sonarQube`
|
||||
}
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ fun initVersions() {
|
|||
}
|
||||
|
||||
// Proton Core
|
||||
const val `Proton-core version` = "9.8.0"
|
||||
const val `Proton-core version` = "9.9.0"
|
||||
|
||||
// Test
|
||||
const val `aerogear version` = "1.0.0" // Released: Mar 23, 2013
|
||||
|
|
|
@ -29,7 +29,7 @@ pluginManagement {
|
|||
}
|
||||
|
||||
plugins {
|
||||
id("me.proton.core.gradle-plugins.include-core-build") version "1.1.1"
|
||||
id("me.proton.core.gradle-plugins.include-core-build") version "1.1.2"
|
||||
}
|
||||
|
||||
includeCoreBuild {
|
||||
|
|
Loading…
Reference in New Issue