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

upgrade to AGP7 #1979

Merged
merged 13 commits into from
Jul 28, 2021
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
4 changes: 2 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
- name: set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 11
- name: Build with Gradle
run: ./scripts/build.sh
- name: Print Logs
Expand Down
12 changes: 7 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ plugins {
}

android {
compileSdkVersion(Config.SdkVersions.compile)
compileSdk = Config.SdkVersions.compile

defaultConfig {
minSdkVersion(Config.SdkVersions.min)
targetSdkVersion(Config.SdkVersions.target)
minSdk = Config.SdkVersions.min
targetSdk = Config.SdkVersions.target

versionName = Config.version
versionCode = 1
Expand Down Expand Up @@ -37,13 +37,15 @@ android {
}
}

lintOptions {
lint {
// Common lint options across all modules
disable(
"IconExpectedSize",
"InvalidPackage", // Firestore uses GRPC which makes lint mad
"NewerVersionAvailable", "GradleDependency", // For reproducible builds
"SelectableText", "SyntheticAccessor" // We almost never care about this
"SelectableText", "SyntheticAccessor", // We almost never care about this
"UnusedIds", "MediaCapabilities" // TODO(rosariopfernandes): remove this once we confirm
// it builds successfully
)

// Module-specific
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
tools:ignore="GoogleAppIndexingWarning,UnusedAttribute"
android:usesCleartextTraffic="true">

<activity android:name=".ChooserActivity">
<activity android:name=".ChooserActivity"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<resources>
<color name="colorPrimary">#039BE5</color>
<color name="colorPrimaryDark">#0288D1</color>
<color name="colorPrimaryVariant">#0288D1</color>
<color name="colorSecondary">#FFA000</color>

Expand All @@ -14,7 +13,6 @@
<color name="material_gray_300">#E0E0E0</color>
<color name="material_gray_500">#9e9e9e</color>

<color name="material_lime_a700">#AEEA00</color>
<color name="material_red_a200">#FF5252</color>

</resources>
15 changes: 7 additions & 8 deletions auth/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ plugins {
}

android {
compileSdkVersion(Config.SdkVersions.compile)
compileSdk = Config.SdkVersions.compile

defaultConfig {
minSdkVersion(Config.SdkVersions.min)
targetSdkVersion(Config.SdkVersions.target)
minSdk = Config.SdkVersions.min
targetSdk =Config.SdkVersions.target

versionName = Config.version
versionCode = 1
buildConfigField("String", "VERSION_NAME", "\"${Config.version}\"")

resourcePrefix("fui_")
vectorDrawables.useSupportLibrary = true
Expand All @@ -31,7 +30,7 @@ android {
targetCompatibility = JavaVersion.VERSION_1_8
}

lintOptions {
lint {
// Common lint options across all modules
disable(
"IconExpectedSize",
Expand Down Expand Up @@ -59,9 +58,9 @@ android {
}

testOptions {
unitTests(closureOf<TestOptions.UnitTestOptions> {
unitTests {
isIncludeAndroidResources = true
})
}
}
}

Expand Down
5 changes: 4 additions & 1 deletion auth/src/main/java/com/firebase/ui/auth/IdpResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

package com.firebase.ui.auth;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Parcel;
import android.os.Parcelable;
Expand Down Expand Up @@ -123,7 +124,9 @@ public static IdpResponse from(@NonNull Exception e) {
} else if (e instanceof FirebaseUiUserCollisionException) {
FirebaseUiUserCollisionException collisionException
= (FirebaseUiUserCollisionException) e;
User user = new User.Builder(
// Lint complains about providerId not being
// in the pre-defined set of constants
@SuppressLint("WrongConstant") User user = new User.Builder(
collisionException.getProviderId(),
collisionException.getEmail())
.build();
Expand Down
1 change: 0 additions & 1 deletion auth/src/main/res/layout/fui_check_email_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

<LinearLayout
style="@style/FirebaseUI.WrapperStyle"
android:id="@+id/email_top_layout"
android:layout_height="wrap_content"
android:orientation="vertical">

Expand Down
1 change: 0 additions & 1 deletion auth/src/main/res/layout/fui_email_link_sign_in_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
android:orientation="vertical">

<TextView
android:id="@+id/sign_in_email_sent_header_text"
style="@style/FirebaseUI.Text.Heading"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
android:text="@string/fui_email_link_trouble_getting_email_header" />

<TextView
android:id="@+id/trouble_signing_in_possible_fixes"
style="@style/FirebaseUI.Text.BodyText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down
1 change: 0 additions & 1 deletion auth/src/main/res/layout/fui_idp_button_apple.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<com.google.android.material.button.MaterialButton xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/apple_signin_button"
style="@style/FirebaseUI.Button.AccountChooser.AppleButton"
android:text="@string/fui_sign_in_with_apple"/>
1 change: 0 additions & 1 deletion auth/src/main/res/layout/fui_idp_button_microsoft.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<com.google.android.material.button.MaterialButton xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/microsoft_signin_button"
style="@style/FirebaseUI.Button.AccountChooser.MicrosoftButton"
android:text="@string/fui_sign_in_with_microsoft"/>
1 change: 0 additions & 1 deletion auth/src/main/res/layout/fui_idp_button_yahoo.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<com.google.android.material.button.MaterialButton xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/yahoo_signin_button"
style="@style/FirebaseUI.Button.AccountChooser.YahooButton"
android:text="@string/fui_sign_in_with_yahoo" />
1 change: 0 additions & 1 deletion auth/src/main/res/layout/fui_provider_button_anonymous.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.button.MaterialButton
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/anonymous_button"
style="@style/FirebaseUI.Button.AccountChooser.AnonymousButton"
android:text="@string/fui_sign_in_anonymously" />
3 changes: 0 additions & 3 deletions auth/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<resources tools:ignore="ExtraTranslation" xmlns:tools="http://schemas.android.com/tools" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="fui_progress_dialog_loading">جارٍ التحميل…</string>
<string name="fui_sign_in_default">تسجيل الدخول</string>
<string name="fui_cancel">إلغاء</string>
thatfiredev marked this conversation as resolved.
Show resolved Hide resolved
<string name="fui_continue">متابعة</string>
<string name="fui_tos_and_pp">تشير المتابعة إلى موافقتك على %1$s و%2$s.</string>
<string name="fui_tos_and_pp_footer">%1$s \u00A0 \u00A0 %2$s</string>
Expand Down Expand Up @@ -63,7 +62,6 @@
<string name="fui_email_link_email_sent">تمّ إرسال رسالة إلكترونية لتسجيل الدخول تتضمّن تعليمات إضافية إلى %1$s. يُرجى التحقق من بريدك الإلكتروني لإكمال عملية تسجيل الدخول.</string>
<string name="fui_email_link_trouble_getting_email_header">هل تواجه مشكلة في استلام الرسالة الإلكترونية؟</string>
<string name="fui_email_link_trouble_getting_possible_fixes">يمكنك تجربة الحلول الشائعة التالية:\n\u2022 التأكّد ممّا إذا تمّ وضع علامة على الرسالة الإلكترونية بأنّها \"غير مرغوب فيها\" أو إذا تمّ نقلها تلقائيًا إلى مجلّد آخر\n\u2022 التحقّق من الاتصال بالإنترنت\n\u2022 التأكّد من كتابة عنوان البريد الإلكتروني بالشكل الصحيح\n\u2022 التحقق من عدم نفاد مساحة البريد الوارد أو من عدم وجود مشاكل أخرى في إعداده\n</string>
<string name="fui_email_link_trouble_getting_email_resend_solution">إذا لم تنجح الخطوات أعلاه، يمكنك إعادة إرسال الرسالة الإلكترونية إلّا أنّ ذلك سيُلغي الرابط المضمّن في الرسالة السابقة.</string>
<string name="fui_email_link_resend">إعادة الإرسال</string>
<string name="fui_email_link_wrong_device_header">تمّ رصد جهاز أو متصفّح جديد</string>
<string name="fui_email_link_wrong_device_message">يُرجى محاولة فتح الرابط باستخدام الجهاز أو المتصفّح نفسه الذي استخدمته عند بدء عملية تسجيل الدخول.</string>
Expand All @@ -75,7 +73,6 @@
<string name="fui_email_link_confirm_email_message">تأكيد عنوان البريد الإلكتروني لمتابعة تسجيل الدخول</string>
<string name="fui_email_link_dismiss_button">رفض</string>
<string name="fui_email_link_cross_device_linking_text">لقد بدأت هذه العملية بهدف ربط %1$s ببريدك الإلكتروني إلّا أنك فتحت الرابط على جهاز آخر لم يتمّ تسجيل الدخول عليه.\n\nلربط حسابك على %1$s، يجب فتح الرابط على الجهاز نفسه حيث سجّلت الدخول في البداية. ولإلغاء عملية الربط، يُرجى النقر على \"متابعة\" لتسجيل الدخول على هذا الجهاز.</string>
<string name="fui_email_link_cross_device_sign_in_button_text">تسجيل الدخول باستخدام %1$s</string>
<string name="fui_verify_phone_number_title">أدخل رقم هاتفك</string>
<string name="fui_invalid_phone_number">يُرجى إدخال رقم هاتف صالح</string>
<string name="fui_enter_confirmation_code">أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إلى</string>
Expand Down
3 changes: 0 additions & 3 deletions auth/src/main/res/values-b+es+419/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<resources tools:ignore="ExtraTranslation" xmlns:tools="http://schemas.android.com/tools" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="fui_progress_dialog_loading">Cargando…</string>
<string name="fui_sign_in_default">Acceder</string>
<string name="fui_cancel">Cancelar</string>
<string name="fui_continue">Continuar</string>
<string name="fui_tos_and_pp">Si continúas, indicas que aceptas nuestras %1$s y %2$s.</string>
<string name="fui_tos_and_pp_footer">%1$s     %2$s</string>
Expand Down Expand Up @@ -63,7 +62,6 @@
<string name="fui_email_link_email_sent">Se envió un correo electrónico de acceso con instrucciones adicionales a %1$s. Revisa tu bandeja de entrada para completar el proceso.</string>
<string name="fui_email_link_trouble_getting_email_header">¿Tienes problemas para recibir correos electrónicos?</string>
<string name="fui_email_link_trouble_getting_possible_fixes">Prueba estas soluciones comunes:\n\u2022 Revisa si el correo electrónico se marcó como spam o se filtró.\n\u2022 Comprueba tu conexión a Internet.\n\u2022 Verifica que hayas escrito correctamente el correo electrónico.\n\u2022 Verifica que el espacio de tu bandeja de entrada no se esté agotando o revisa cualquier otro problema relacionado con su configuración.\n</string>
<string name="fui_email_link_trouble_getting_email_resend_solution">Si los pasos anteriores no funcionaron, puedes reenviar el correo electrónico. Ten en cuenta que esta acción desactivará el vínculo en el correo electrónico más antiguo.</string>
<string name="fui_email_link_resend">Reenviar</string>
<string name="fui_email_link_wrong_device_header">Se detectó un dispositivo o navegador nuevo</string>
<string name="fui_email_link_wrong_device_message">Intenta abrir el vínculo con el mismo dispositivo o navegador en el que comenzaste el proceso de acceso.</string>
Expand All @@ -75,7 +73,6 @@
<string name="fui_email_link_confirm_email_message">Confirma el correo electrónico para continuar con el acceso</string>
<string name="fui_email_link_dismiss_button">Descartar</string>
<string name="fui_email_link_cross_device_linking_text">Originalmente, intentaste conectar tu cuenta de correo electrónico con %1$s, pero abriste el vínculo en un dispositivo diferente en el que no accediste.\n\nSi quieres conectar tu cuenta de %1$s, abre el vínculo en el mismo dispositivo con el que iniciaste el acceso. De lo contrario, presiona Continuar para acceder en este dispositivo.</string>
<string name="fui_email_link_cross_device_sign_in_button_text">Acceder con %1$s</string>
<string name="fui_verify_phone_number_title">Ingresa tu número de teléfono</string>
<string name="fui_invalid_phone_number">Ingresa un número de teléfono válido</string>
<string name="fui_enter_confirmation_code">Ingresa el código de 6 dígitos que enviamos al número</string>
Expand Down
3 changes: 0 additions & 3 deletions auth/src/main/res/values-bg/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<resources tools:ignore="ExtraTranslation" xmlns:tools="http://schemas.android.com/tools" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="fui_progress_dialog_loading">Зарежда се…</string>
<string name="fui_sign_in_default">Вход</string>
<string name="fui_cancel">Отказ</string>
<string name="fui_continue">Напред</string>
<string name="fui_tos_and_pp">Продължавайки, приемате нашите %1$s и %2$s.</string>
<string name="fui_tos_and_pp_footer">%1$s     %2$s</string>
Expand Down Expand Up @@ -63,7 +62,6 @@
<string name="fui_email_link_email_sent">Изпратихме имейл до %1$s за вход в профила с допълнителни инструкции. Проверете входящата си поща, за да завършите процеса.</string>
<string name="fui_email_link_trouble_getting_email_header">Имате проблеми с получаването на имейла?</string>
<string name="fui_email_link_trouble_getting_possible_fixes">Изпробвайте следните често използвани решения:\n\u2022 Проверете дали имейлът не е обозначен и филтриран като спам.\n\u2022 Проверете връзката си с интернет.\n\u2022 Проверете дали имейлът е изписан правилно.\n\u2022 Проверете дали в пощенската ви кутия има достатъчно пространство, или не е налице друг проблем с настройките й.\n</string>
<string name="fui_email_link_trouble_getting_email_resend_solution">Ако стъпките по-горе не проработят, можете да изпратите отново имейла. Имайте предвид, че това ще деактивира връзката в предходното съобщение.</string>
<string name="fui_email_link_resend">Повторно изпращане</string>
<string name="fui_email_link_wrong_device_header">Открито е ново устройство или браузър.</string>
<string name="fui_email_link_wrong_device_message">Опитайте да отворите връзката от същото устройство или браузър, където е започнат процесът на влизане в профила.</string>
Expand All @@ -75,7 +73,6 @@
<string name="fui_email_link_confirm_email_message">Потвърдете имейл адреса, за да продължите с влизането в профила</string>
<string name="fui_email_link_dismiss_button">Отхвърляне</string>
<string name="fui_email_link_cross_device_linking_text">Първоначално искахте да свържете %1$s с имейла на профила си, но отворихте връзката на различно устройство без вход в профила.\n\nАко все още искате да свържете профила си в(ъв) %1$s, отворете връзката на същото устройство, на което започнахте влизането в профила. В противен случай докоснете „Напред“, за да влезете на това устройство.</string>
<string name="fui_email_link_cross_device_sign_in_button_text">Вход в профила с(ъс) %1$s</string>
<string name="fui_verify_phone_number_title">Въвеждане на телефонния ви номер</string>
<string name="fui_invalid_phone_number">Въведете валиден телефонен номер</string>
<string name="fui_enter_confirmation_code">Въведете 6-цифрения код, който изпратихме до</string>
Expand Down
Loading