Browse Source

more general maintenance

renovate/org.robolectric-robolectric-4.x
Austin Huang 4 years ago
parent
commit
92f7e04757
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 4
      app/build.gradle
  2. 1
      app/src/main/java/awais/instagrabber/utils/LocaleUtils.java
  3. 5
      app/src/main/java/awais/instagrabber/webservices/AddCookiesInterceptor.java
  4. 2
      app/src/main/res/values-de/strings.xml
  5. 2
      app/src/main/res/values-es/strings.xml
  6. 2
      app/src/main/res/values-fa/strings.xml
  7. 2
      app/src/main/res/values-fr/strings.xml
  8. 2
      app/src/main/res/values-hi/strings.xml
  9. 2
      app/src/main/res/values-in/strings.xml
  10. 2
      app/src/main/res/values-it/strings.xml
  11. 2
      app/src/main/res/values-mk/strings.xml
  12. 2
      app/src/main/res/values-pl/strings.xml
  13. 2
      app/src/main/res/values-pt/strings.xml
  14. 2
      app/src/main/res/values-tr/strings.xml
  15. 2
      app/src/main/res/values-vi/strings.xml
  16. 2
      app/src/main/res/values-zh/strings.xml
  17. 10
      app/src/main/res/values/strings.xml
  18. 6
      gradle/wrapper/gradle-wrapper.properties

4
app/build.gradle

@ -82,4 +82,8 @@ dependencies {
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.5' debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.5'
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.0' testImplementation 'org.junit.jupiter:junit-jupiter:5.7.0'
// temporary
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.4.10'
implementation 'org.jetbrains:annotations:13.0'
} }

1
app/src/main/java/awais/instagrabber/utils/LocaleUtils.java

@ -72,6 +72,7 @@ public final class LocaleUtils {
if (appLanguageIndex == 11) return "fa"; if (appLanguageIndex == 11) return "fa";
if (appLanguageIndex == 12) return "mk"; if (appLanguageIndex == 12) return "mk";
if (appLanguageIndex == 13) return "vi"; if (appLanguageIndex == 13) return "vi";
if (appLanguageIndex == 14) return "hi";
return null; return null;
} }

5
app/src/main/java/awais/instagrabber/webservices/AddCookiesInterceptor.java

@ -5,6 +5,7 @@ import androidx.annotation.NonNull;
import java.io.IOException; import java.io.IOException;
import awais.instagrabber.utils.Constants; import awais.instagrabber.utils.Constants;
import awais.instagrabber.utils.LocaleUtils;
import awais.instagrabber.utils.Utils; import awais.instagrabber.utils.Utils;
import okhttp3.Interceptor; import okhttp3.Interceptor;
import okhttp3.Request; import okhttp3.Request;
@ -22,6 +23,10 @@ public class AddCookiesInterceptor implements Interceptor {
if (request.header(userAgentHeader) == null) { if (request.header(userAgentHeader) == null) {
builder.addHeader(userAgentHeader, Constants.I_USER_AGENT); builder.addHeader(userAgentHeader, Constants.I_USER_AGENT);
} }
final String languageHeader = "Accept-Language";
if (request.header(languageHeader) == null) {
builder.addHeader(languageHeader, LocaleUtils.getCurrentLocale().getLanguage() + ",en-US;q=0.8");
}
final Request updatedRequest = builder.build(); final Request updatedRequest = builder.build();
return chain.proceed(updatedRequest); return chain.proceed(updatedRequest);
} }

2
app/src/main/res/values-de/strings.xml

@ -6,8 +6,6 @@
<string name="action_download">Herunterladen</string> <string name="action_download">Herunterladen</string>
<string name="action_search">Benutzernamen suchen…</string> <string name="action_search">Benutzernamen suchen…</string>
<string name="action_compare">Vergleichen</string> <string name="action_compare">Vergleichen</string>
<string name="single_like">Like</string>
<string name="multiple_likes">Likes</string>
<string name="clipboard_error">Fehler beim Kopieren des Textes</string> <string name="clipboard_error">Fehler beim Kopieren des Textes</string>
<string name="clipboard_copied">In die Zwischenablage kopiert!</string> <string name="clipboard_copied">In die Zwischenablage kopiert!</string>
<string name="report">Melden</string> <string name="report">Melden</string>

2
app/src/main/res/values-es/strings.xml

@ -6,8 +6,6 @@
<string name="action_download">Descarga</string> <string name="action_download">Descarga</string>
<string name="action_search">Buscar usuario…</string> <string name="action_search">Buscar usuario…</string>
<string name="action_compare">Comparar</string> <string name="action_compare">Comparar</string>
<string name="single_like">me gusta</string>
<string name="multiple_likes">me gustas</string>
<string name="clipboard_error">Error al copiar texto</string> <string name="clipboard_error">Error al copiar texto</string>
<string name="clipboard_copied">¡Copiar al portapapeles!</string> <string name="clipboard_copied">¡Copiar al portapapeles!</string>
<string name="report">Reportar</string> <string name="report">Reportar</string>

2
app/src/main/res/values-fa/strings.xml

@ -6,8 +6,6 @@
<string name="action_download">دانلود</string> <string name="action_download">دانلود</string>
<string name="action_search">جستجوی نام کاربری…</string> <string name="action_search">جستجوی نام کاربری…</string>
<string name="action_compare">مقایسه</string> <string name="action_compare">مقایسه</string>
<string name="single_like">پسندیدن</string>
<string name="multiple_likes">پسند</string>
<string name="clipboard_error">خطا هنگام کپی متن</string> <string name="clipboard_error">خطا هنگام کپی متن</string>
<string name="clipboard_copied">به کلیپ بورد کپی شد!</string> <string name="clipboard_copied">به کلیپ بورد کپی شد!</string>
<string name="report">گزارش</string> <string name="report">گزارش</string>

2
app/src/main/res/values-fr/strings.xml

@ -6,8 +6,6 @@
<string name="action_download">Téléchargement</string> <string name="action_download">Téléchargement</string>
<string name="action_search">Rechercher par nom d\'utilisateur…</string> <string name="action_search">Rechercher par nom d\'utilisateur…</string>
<string name="action_compare">Comparer</string> <string name="action_compare">Comparer</string>
<string name="single_like">j\'aime</string>
<string name="multiple_likes">j\'aimes</string>
<string name="clipboard_error">Erreur lors de la copie des éléments</string> <string name="clipboard_error">Erreur lors de la copie des éléments</string>
<string name="clipboard_copied">Copié dans le presse-papier !</string> <string name="clipboard_copied">Copié dans le presse-papier !</string>
<string name="report">Reporter</string> <string name="report">Reporter</string>

2
app/src/main/res/values-hi/strings.xml

@ -6,8 +6,6 @@
<string name="action_download">डाउनलोड करें</string> <string name="action_download">डाउनलोड करें</string>
<string name="action_search">ब्यबहारकारीयों के ब्यबहृत नाम ढुंढे...</string> <string name="action_search">ब्यबहारकारीयों के ब्यबहृत नाम ढुंढे...</string>
<string name="action_compare">तुलना करें</string> <string name="action_compare">तुलना करें</string>
<string name="single_like">पसंद करें</string>
<string name="multiple_likes">पसन्दित</string>
<string name="clipboard_error">लेखा उतारने में त्रुटि</string> <string name="clipboard_error">लेखा उतारने में त्रुटि</string>
<string name="clipboard_copied">क्लिपबोर्ड पर नक़ल किया</string> <string name="clipboard_copied">क्लिपबोर्ड पर नक़ल किया</string>
<string name="report">रिपोर्ट करें</string> <string name="report">रिपोर्ट करें</string>

2
app/src/main/res/values-in/strings.xml

@ -6,8 +6,6 @@
<string name="action_download">Unduh</string> <string name="action_download">Unduh</string>
<string name="action_search">Cari Pengguna…</string> <string name="action_search">Cari Pengguna…</string>
<string name="action_compare">Bandingkan</string> <string name="action_compare">Bandingkan</string>
<string name="single_like">suka</string>
<string name="multiple_likes">suka</string>
<string name="clipboard_error">Galat menyalin tulisan</string> <string name="clipboard_error">Galat menyalin tulisan</string>
<string name="clipboard_copied">Tersalin!</string> <string name="clipboard_copied">Tersalin!</string>
<string name="report">Laporkan</string> <string name="report">Laporkan</string>

2
app/src/main/res/values-it/strings.xml

@ -6,8 +6,6 @@
<string name="action_download">Scarica</string> <string name="action_download">Scarica</string>
<string name="action_search">Cerca utente…</string> <string name="action_search">Cerca utente…</string>
<string name="action_compare">Compara</string> <string name="action_compare">Compara</string>
<string name="single_like">hai messo un Like</string>
<string name="multiple_likes">likes</string>
<string name="clipboard_error">Errore durante la copia del testo</string> <string name="clipboard_error">Errore durante la copia del testo</string>
<string name="clipboard_copied">Copiato negli appunti!</string> <string name="clipboard_copied">Copiato negli appunti!</string>
<string name="report">Segnala</string> <string name="report">Segnala</string>

2
app/src/main/res/values-mk/strings.xml

@ -6,8 +6,6 @@
<string name="action_download">Превземи</string> <string name="action_download">Превземи</string>
<string name="action_search">Пребарај username…</string> <string name="action_search">Пребарај username…</string>
<string name="action_compare">Спореди</string> <string name="action_compare">Спореди</string>
<string name="single_like">лајкни</string>
<string name="multiple_likes">лајкови</string>
<string name="clipboard_error">Грешка при копрање текст</string> <string name="clipboard_error">Грешка при копрање текст</string>
<string name="clipboard_copied">Копрано во clipboard!</string> <string name="clipboard_copied">Копрано во clipboard!</string>
<string name="report">Пријави</string> <string name="report">Пријави</string>

2
app/src/main/res/values-pl/strings.xml

@ -6,8 +6,6 @@
<string name="action_download">Pobierz</string> <string name="action_download">Pobierz</string>
<string name="action_search">Szukaj użytkownika…</string> <string name="action_search">Szukaj użytkownika…</string>
<string name="action_compare">Porównaj</string> <string name="action_compare">Porównaj</string>
<string name="single_like">polubienie</string>
<string name="multiple_likes">polubienia</string>
<string name="clipboard_error">Wystąpił błąd podczas kopiowania tekstu</string> <string name="clipboard_error">Wystąpił błąd podczas kopiowania tekstu</string>
<string name="clipboard_copied">Skopiowano do schowka!</string> <string name="clipboard_copied">Skopiowano do schowka!</string>
<string name="report">Zgłoś</string> <string name="report">Zgłoś</string>

2
app/src/main/res/values-pt/strings.xml

@ -6,8 +6,6 @@
<string name="action_download">Baixar</string> <string name="action_download">Baixar</string>
<string name="action_search">Pesquisar nome de usuário…</string> <string name="action_search">Pesquisar nome de usuário…</string>
<string name="action_compare">Comparar</string> <string name="action_compare">Comparar</string>
<string name="single_like">like</string>
<string name="multiple_likes">likes</string>
<string name="clipboard_error">Erro ao copiar texto</string> <string name="clipboard_error">Erro ao copiar texto</string>
<string name="clipboard_copied">Copiado para a área de transferência!</string> <string name="clipboard_copied">Copiado para a área de transferência!</string>
<string name="report">Reportar</string> <string name="report">Reportar</string>

2
app/src/main/res/values-tr/strings.xml

@ -6,8 +6,6 @@
<string name="action_download">İndir</string> <string name="action_download">İndir</string>
<string name="action_search">Kullanıcı adı ara…</string> <string name="action_search">Kullanıcı adı ara…</string>
<string name="action_compare">Karşılaştır</string> <string name="action_compare">Karşılaştır</string>
<string name="single_like">beğeni</string>
<string name="multiple_likes">beğeni</string>
<string name="clipboard_error">Metin kopyalanamadı</string> <string name="clipboard_error">Metin kopyalanamadı</string>
<string name="clipboard_copied">Panoya kopyalandı!</string> <string name="clipboard_copied">Panoya kopyalandı!</string>
<string name="report">Bildir</string> <string name="report">Bildir</string>

2
app/src/main/res/values-vi/strings.xml

@ -6,8 +6,6 @@
<string name="action_download">Tải xuống</string> <string name="action_download">Tải xuống</string>
<string name="action_search">Tìm tên người dùng…</string> <string name="action_search">Tìm tên người dùng…</string>
<string name="action_compare">So sánh</string> <string name="action_compare">So sánh</string>
<string name="single_like">thích</string>
<string name="multiple_likes">thích</string>
<string name="clipboard_error">Lỗi khi sao chép</string> <string name="clipboard_error">Lỗi khi sao chép</string>
<string name="clipboard_copied">Đã sao chép vào clipboard!</string> <string name="clipboard_copied">Đã sao chép vào clipboard!</string>
<string name="report">Báo cáo</string> <string name="report">Báo cáo</string>

2
app/src/main/res/values-zh/strings.xml

@ -6,8 +6,6 @@
<string name="action_download">下载</string> <string name="action_download">下载</string>
<string name="action_search">搜索用户名…</string> <string name="action_search">搜索用户名…</string>
<string name="action_compare">比较</string> <string name="action_compare">比较</string>
<string name="single_like">次赞</string>
<string name="multiple_likes">次赞</string>
<string name="clipboard_error">复制文字时出错</string> <string name="clipboard_error">复制文字时出错</string>
<string name="clipboard_copied">已复制到剪贴板!</string> <string name="clipboard_copied">已复制到剪贴板!</string>
<string name="report">报告</string> <string name="report">报告</string>

10
app/src/main/res/values/strings.xml

@ -306,11 +306,11 @@
<string name="player_timeline_desc">Video player timeline</string> <string name="player_timeline_desc">Video player timeline</string>
<string name="one_x" translatable="false">1x</string> <string name="one_x" translatable="false">1x</string>
<string name="two_x" translatable="false">2x</string> <string name="two_x" translatable="false">2x</string>
<string name="pt_two_five_x">0.25x</string>
<string name="pt_five_x">0.5x</string>
<string name="pt_seven_five_x">0.75x</string>
<string name="one_pt_two_five_x">1.25x</string>
<string name="one_pt_five_x">1.5x</string>
<string name="pt_two_five_x" translatable="false">0.25x</string>
<string name="pt_five_x" translatable="false">0.5x</string>
<string name="pt_seven_five_x" translatable="false">0.75x</string>
<string name="one_pt_two_five_x" translatable="false">1.25x</string>
<string name="one_pt_five_x" translatable="false">1.5x</string>
<string name="liking">Liking…</string> <string name="liking">Liking…</string>
<string name="like_unsuccessful">Like unsuccessful</string> <string name="like_unsuccessful">Like unsuccessful</string>
<string name="unlike_unsuccessful">Unlike unsuccessful</string> <string name="unlike_unsuccessful">Unlike unsuccessful</string>

6
gradle/wrapper/gradle-wrapper.properties

@ -1,6 +1,8 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionSha256Sum=5252d2f1a984e5518e604678b3964bb0227c4573fcc880b92548bc687c851704
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-rc-5-all.zip
distributionSha256Sum=0080de8491f0918e4f529a6db6820fa0b9e818ee2386117f4394f95feb1d5583
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
# https://gradle.org/releases/
# https://gradle.org/release-checksums/
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
Loading…
Cancel
Save