Loading app-thunderbird/build.gradle.kts +4 −0 Original line number Diff line number Diff line Loading @@ -241,6 +241,10 @@ dependencies { implementation(projects.feature.onboarding.migration.thunderbird) implementation(projects.feature.migration.launcher.thunderbird) // TODO remove once OAuth ids have been moved from TBD to TBA "betaImplementation"(libs.appauth) releaseImplementation(libs.appauth) testImplementation(libs.robolectric) // Required for DependencyInjectionTest to be able to resolve OpenPgpApiManager Loading app-thunderbird/src/beta/AndroidManifest.xml 0 → 100644 +39 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?><!-- TODO remove once OAuth ids have been moved from TBD to TBA --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" > <application> <activity android:name="net.openid.appauth.RedirectUriReceiverActivity" android:exported="true" > <!-- The library's default intent filter with `appAuthRedirectScheme` replaced by `applicationId` --> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="${applicationId}" /> <data android:scheme="${applicationId}.desktop" /> </intent-filter> <!-- Microsoft uses a special redirect URI format for Android apps --> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:host="${applicationId}" android:scheme="msauth" /> </intent-filter> </activity> </application> </manifest> app-thunderbird/src/beta/kotlin/net/thunderbird/android/auth/TbOAuthConfigurationFactory.kt +3 −2 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ class TbOAuthConfigurationFactory : OAuthConfigurationFactory { ) } // TODO: Update clientId and redirectUri once new client ID is available private fun createGmailConfiguration(): Pair<List<String>, OAuthConfiguration> { return listOf( "imap.gmail.com", Loading @@ -49,11 +50,11 @@ class TbOAuthConfigurationFactory : OAuthConfigurationFactory { "smtp.gmail.com", "smtp.googlemail.com", ) to OAuthConfiguration( clientId = "406964657835-c88sdh5fpqjhavlje1bs9ac9tf8qv5c2.apps.googleusercontent.com", clientId = "406964657835-808044gjdn5vac6dsn99jtka3v8igtle.apps.googleusercontent.com", scopes = listOf("https://mail.google.com/"), authorizationEndpoint = "https://accounts.google.com/o/oauth2/v2/auth", tokenEndpoint = "https://oauth2.googleapis.com/token", redirectUri = "${BuildConfig.APPLICATION_ID}:/oauth2redirect", redirectUri = "${BuildConfig.APPLICATION_ID}.desktop:/oauth2redirect", ) } Loading app-thunderbird/src/daily/kotlin/net/thunderbird/android/auth/TbOAuthConfigurationFactory.kt +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ class TbOAuthConfigurationFactory : OAuthConfigurationFactory { "smtp.gmail.com", "smtp.googlemail.com", ) to OAuthConfiguration( clientId = "406964657835-2bpeeeb9mqlpg0mca8digjdv40m5ja8e.apps.googleusercontent.com", clientId = "560629489500-hbru1fssmec60eoa22b8k8l5tbmj0sc1.apps.googleusercontent.com", scopes = listOf("https://mail.google.com/"), authorizationEndpoint = "https://accounts.google.com/o/oauth2/v2/auth", tokenEndpoint = "https://oauth2.googleapis.com/token", Loading app-thunderbird/src/release/AndroidManifest.xml 0 → 100644 +39 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?><!-- TODO remove once OAuth ids have been moved from TBD to TBA --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" > <application> <activity android:name="net.openid.appauth.RedirectUriReceiverActivity" android:exported="true" > <!-- The library's default intent filter with `appAuthRedirectScheme` replaced by `applicationId` --> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="${applicationId}" /> <data android:scheme="${applicationId}.desktop" /> </intent-filter> <!-- Microsoft uses a special redirect URI format for Android apps --> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:host="${applicationId}" android:scheme="msauth" /> </intent-filter> </activity> </application> </manifest> Loading
app-thunderbird/build.gradle.kts +4 −0 Original line number Diff line number Diff line Loading @@ -241,6 +241,10 @@ dependencies { implementation(projects.feature.onboarding.migration.thunderbird) implementation(projects.feature.migration.launcher.thunderbird) // TODO remove once OAuth ids have been moved from TBD to TBA "betaImplementation"(libs.appauth) releaseImplementation(libs.appauth) testImplementation(libs.robolectric) // Required for DependencyInjectionTest to be able to resolve OpenPgpApiManager Loading
app-thunderbird/src/beta/AndroidManifest.xml 0 → 100644 +39 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?><!-- TODO remove once OAuth ids have been moved from TBD to TBA --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" > <application> <activity android:name="net.openid.appauth.RedirectUriReceiverActivity" android:exported="true" > <!-- The library's default intent filter with `appAuthRedirectScheme` replaced by `applicationId` --> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="${applicationId}" /> <data android:scheme="${applicationId}.desktop" /> </intent-filter> <!-- Microsoft uses a special redirect URI format for Android apps --> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:host="${applicationId}" android:scheme="msauth" /> </intent-filter> </activity> </application> </manifest>
app-thunderbird/src/beta/kotlin/net/thunderbird/android/auth/TbOAuthConfigurationFactory.kt +3 −2 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ class TbOAuthConfigurationFactory : OAuthConfigurationFactory { ) } // TODO: Update clientId and redirectUri once new client ID is available private fun createGmailConfiguration(): Pair<List<String>, OAuthConfiguration> { return listOf( "imap.gmail.com", Loading @@ -49,11 +50,11 @@ class TbOAuthConfigurationFactory : OAuthConfigurationFactory { "smtp.gmail.com", "smtp.googlemail.com", ) to OAuthConfiguration( clientId = "406964657835-c88sdh5fpqjhavlje1bs9ac9tf8qv5c2.apps.googleusercontent.com", clientId = "406964657835-808044gjdn5vac6dsn99jtka3v8igtle.apps.googleusercontent.com", scopes = listOf("https://mail.google.com/"), authorizationEndpoint = "https://accounts.google.com/o/oauth2/v2/auth", tokenEndpoint = "https://oauth2.googleapis.com/token", redirectUri = "${BuildConfig.APPLICATION_ID}:/oauth2redirect", redirectUri = "${BuildConfig.APPLICATION_ID}.desktop:/oauth2redirect", ) } Loading
app-thunderbird/src/daily/kotlin/net/thunderbird/android/auth/TbOAuthConfigurationFactory.kt +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ class TbOAuthConfigurationFactory : OAuthConfigurationFactory { "smtp.gmail.com", "smtp.googlemail.com", ) to OAuthConfiguration( clientId = "406964657835-2bpeeeb9mqlpg0mca8digjdv40m5ja8e.apps.googleusercontent.com", clientId = "560629489500-hbru1fssmec60eoa22b8k8l5tbmj0sc1.apps.googleusercontent.com", scopes = listOf("https://mail.google.com/"), authorizationEndpoint = "https://accounts.google.com/o/oauth2/v2/auth", tokenEndpoint = "https://oauth2.googleapis.com/token", Loading
app-thunderbird/src/release/AndroidManifest.xml 0 → 100644 +39 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?><!-- TODO remove once OAuth ids have been moved from TBD to TBA --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" > <application> <activity android:name="net.openid.appauth.RedirectUriReceiverActivity" android:exported="true" > <!-- The library's default intent filter with `appAuthRedirectScheme` replaced by `applicationId` --> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="${applicationId}" /> <data android:scheme="${applicationId}.desktop" /> </intent-filter> <!-- Microsoft uses a special redirect URI format for Android apps --> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:host="${applicationId}" android:scheme="msauth" /> </intent-filter> </activity> </application> </manifest>