Loading app-thunderbird/src/beta/AndroidManifest.xmldeleted 100644 → 0 +0 −39 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}.mobile" /> </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 +2 −3 Original line number Diff line number Diff line Loading @@ -42,7 +42,6 @@ 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 @@ -50,11 +49,11 @@ class TbOAuthConfigurationFactory : OAuthConfigurationFactory { "smtp.gmail.com", "smtp.googlemail.com", ) to OAuthConfiguration( clientId = "560629489500-rvmv3suifbrl1888pl6ppulog8krnlcp.apps.googleusercontent.com", clientId = "560629489500-u95g9r3m604k2f1uqb5c7mo27coj8g9i.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}.mobile:/oauth2redirect", redirectUri = "${BuildConfig.APPLICATION_ID}:/oauth2redirect", ) } Loading Loading
app-thunderbird/src/beta/AndroidManifest.xmldeleted 100644 → 0 +0 −39 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}.mobile" /> </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 +2 −3 Original line number Diff line number Diff line Loading @@ -42,7 +42,6 @@ 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 @@ -50,11 +49,11 @@ class TbOAuthConfigurationFactory : OAuthConfigurationFactory { "smtp.gmail.com", "smtp.googlemail.com", ) to OAuthConfiguration( clientId = "560629489500-rvmv3suifbrl1888pl6ppulog8krnlcp.apps.googleusercontent.com", clientId = "560629489500-u95g9r3m604k2f1uqb5c7mo27coj8g9i.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}.mobile:/oauth2redirect", redirectUri = "${BuildConfig.APPLICATION_ID}:/oauth2redirect", ) } Loading