Skip to content

Commit

Permalink
NClientV2 2.9.5
Browse files Browse the repository at this point in the history
* Automatic and invisible CF cookie refresh
  • Loading branch information
Dar9586 committed Jun 5, 2022
1 parent ab7478d commit 4a17788
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ android {

dependencies {
// AndroidX
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.fragment:fragment:1.4.1'
implementation 'androidx.preference:preference:1.2.0'
implementation 'androidx.viewpager2:viewpager2:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'com.google.android.material:material:1.6.0'
implementation 'com.google.android.material:material:1.6.1'

// Other
implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.12.12'//Because of min SDK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import android.util.JsonWriter;
import android.util.Pair;
import android.view.View;
import android.webkit.CookieManager;
import android.widget.Toast;

import androidx.appcompat.widget.AppCompatAutoCompleteTextView;
Expand Down Expand Up @@ -200,6 +201,7 @@ private void mainMenu() {
findPreference(getString(R.string.key_cache)).setSummary(getString(R.string.cache_size_formatted, cacheSize));
findPreference(getString(R.string.key_cookie)).setOnPreferenceClickListener(preference -> {
Login.clearCookies();
CookieManager.getInstance().removeAllCookie();
return true;
});
findPreference(getString(R.string.key_cache)).setOnPreferenceClickListener(preference -> {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-ja-rJP/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
<string name="invalid_response">無効な応答</string>
<string name="system_default">システムのデフォルト</string>
<string name="clear_cookies">Cookie を消去</string>
<string name="fetching_cloudflare_token">Fetching Cloudflare token …</string>
<string name="fetching_cloudflare_token">Cloudflareトークンを取得しています …</string>
<string-array name="scroll_type">
<item>水平</item>
<item>垂直</item>
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/values-tr-rTR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,10 @@
<string name="import_finished">İçe Alma Tammalandı</string>
<string name="download_torrent">Torrent İndir</string>
<string name="title_activity_captcha">CAPTCHA</string>
<string name="invalid_response">Invalid response</string>
<string name="system_default">System default</string>
<string name="clear_cookies">Clear cookies</string>
<string name="fetching_cloudflare_token">Fetching Cloudflare token …</string>
<string name="invalid_response">Geçersiz Sunucu Yanıtı</string>
<string name="system_default">Sistem Varsayılanı</string>
<string name="clear_cookies">Çerezleri Temizle</string>
<string name="fetching_cloudflare_token">Cloudflare tokeni alınıyor…</string>
<string-array name="scroll_type">
<item>Horizontal</item>
<item>Vertical</item>
Expand Down

0 comments on commit 4a17788

Please sign in to comment.