Desabilitar Firebase Analytcs e Crashlytcs no Android
- Adicione as variáveis ao
build.gradle
do módulo:
android {
/* ... */
build.gradle
do módulo:android {
/* ... */
{ | |
"eventId": 1, | |
"name": "Junior Cesar Abreu", | |
"email": "junior@email.com" | |
} |
#!/usr/bin/env bash | |
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
git fetch --all | |
git pull --all |
https://www.venturus.org.br/acesso-a-arquivos-usando-armazenamento-por-escopo-no-android-10/
@RequiresApi(api = Build.VERSION_CODES.Q)
@NotNull
public static Uri saveFileToDownload(@NotNull Context context, File file, String mimeType) throws IOException {
ContentValues contentValues = new ContentValues();
contentValues.put(MediaStore.Downloads.DISPLAY_NAME, file.getName());
contentValues.put(MediaStore.Downloads.MIME_TYPE, mimeType);
Add the following config to app's proguard-rules.pro
file:
-keepattributes *Annotation*
-keepattributes SourceFile,LineNumberTable
# prevent Crashlytics obfuscation
-keep class com.google.firebase.crashlytics.** { *; }
-dontwarn com.google.firebase.crashlytics.**
https://www.sitepoint.com/mime-types-complete-list/
Suffixes applicable | Media type and subtype(s) |
---|---|
.3dm | x-world/x-3dmf |
.3dmf | x-world/x-3dmf |
.a | application/octet-stream |
.aab | application/x-authorware-bin |
# Ignoring all of the external "org" libraries | |
# (for example org.apache & org.jackson) | |
-keep class org.** { *; } | |
-dontwarn org.** | |
# Have more? Simply add them like the one above, | |
# and change to the desired package name. |
https://qualquer-site.com.br#:~:text=INITIAL_TEXT_SEQUENCE,FINAL_TEXT_SEQUENCE
The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console:
[PT-BR]
You need to follow this procedure in order to share files between Windows 7 and Mac OS X on VMWare :