mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-03-03 22:39:43 +00:00
Compare commits
1 Commits
release-0.
...
snapshot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80f116327e |
@@ -44,9 +44,9 @@ configure<ApplicationExtension> {
|
||||
minSdk = 21
|
||||
targetSdk = 35
|
||||
|
||||
versionCode = System.getProperty("versionCodeOverride")?.toInt() ?: 1009
|
||||
versionCode = System.getProperty("versionCodeOverride")?.toInt() ?: 1008
|
||||
|
||||
versionName = "0.28.4"
|
||||
versionName = "0.28.3"
|
||||
System.getProperty("versionNameSuffix")?.let { versionNameSuffix = it }
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
@@ -27,6 +27,7 @@ import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
@@ -995,18 +996,19 @@ public class MainActivity extends AppCompatActivity {
|
||||
"pt", "cs", "sk", "fa", "ar", "tr", "el", "th", "ru", "uk", "ko", "zh", "ja");
|
||||
final var locale = Localization.getAppLocale();
|
||||
final String kaoBaseUrl = "https://keepandroidopen.org/";
|
||||
final String kaoURI;
|
||||
final String kaoURIString;
|
||||
if (supportedLannguages.contains(locale.getLanguage())) {
|
||||
if ("zh".equals(locale.getLanguage())) {
|
||||
kaoURI = kaoBaseUrl + ("TW".equals(locale.getCountry()) ? "zh-TW" : "zh-CN");
|
||||
kaoURIString = kaoBaseUrl + ("TW".equals(locale.getCountry()) ? "zh-TW" : "zh-CN");
|
||||
} else {
|
||||
kaoURI = kaoBaseUrl + locale.getLanguage();
|
||||
kaoURIString = kaoBaseUrl + locale.getLanguage();
|
||||
}
|
||||
} else {
|
||||
kaoURI = kaoBaseUrl;
|
||||
kaoURIString = kaoBaseUrl;
|
||||
}
|
||||
final var solutionURI =
|
||||
"https://github.com/woheller69/FreeDroidWarn?tab=readme-ov-file#solutions";
|
||||
final var kaoURI = Uri.parse(kaoURIString);
|
||||
final var solutionURI = Uri.parse(
|
||||
"https://github.com/woheller69/FreeDroidWarn?tab=readme-ov-file#solutions");
|
||||
|
||||
if (kaoLastCheck.plus(30, ChronoUnit.DAYS).isBefore(now)) {
|
||||
final var dialog = new AlertDialog.Builder(this)
|
||||
@@ -1028,10 +1030,10 @@ public class MainActivity extends AppCompatActivity {
|
||||
// If we use setNeutralButton and etc. dialog will close after pressing the buttons,
|
||||
// but we want it to close only when positive button is pressed
|
||||
dialog.getButton(AlertDialog.BUTTON_NEGATIVE).setOnClickListener(v ->
|
||||
ShareUtils.openUrlInBrowser(this, kaoURI)
|
||||
this.startActivity(new Intent(Intent.ACTION_VIEW, kaoURI))
|
||||
);
|
||||
dialog.getButton(AlertDialog.BUTTON_NEUTRAL).setOnClickListener(v ->
|
||||
ShareUtils.openUrlInBrowser(this, solutionURI)
|
||||
this.startActivity(new Intent(Intent.ACTION_VIEW, solutionURI))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ teamnewpipe-nanojson = "e9d656ddb49a412a5a0a5d5ef20ca7ef09549996"
|
||||
# the corresponding commit hash, since JitPack sometimes deletes artifacts.
|
||||
# If there’s already a git hash, just add more of it to the end (or remove a letter)
|
||||
# to cause jitpack to regenerate the artifact.
|
||||
teamnewpipe-newpipe-extractor = "v0.26.0"
|
||||
teamnewpipe-newpipe-extractor = "66d9ee1-SNAPSHOT"
|
||||
viewpager2 = "1.1.0"
|
||||
webkit = "1.14.0" # Newer versions require minSdk >= 23
|
||||
work = "2.10.5" # Newer versions require minSdk >= 23
|
||||
@@ -114,7 +114,7 @@ lisawray-groupie-core = { module = "com.github.lisawray.groupie:groupie", versio
|
||||
lisawray-groupie-viewbinding = { module = "com.github.lisawray.groupie:groupie-viewbinding", version.ref = "groupie" }
|
||||
livefront-bridge = { module = "com.github.livefront:bridge", version.ref = "bridge" }
|
||||
mockito-core = { module = "org.mockito:mockito-core", version.ref = "mockitoCore" }
|
||||
newpipe-extractor = { module = "com.github.TeamNewPipe:NewPipeExtractor", version.ref = "teamnewpipe-newpipe-extractor" }
|
||||
newpipe-extractor = { module = "net.newpipe:extractor", version.ref = "teamnewpipe-newpipe-extractor" }
|
||||
newpipe-filepicker = { module = "com.github.TeamNewPipe:NoNonsense-FilePicker", version.ref = "teamnewpipe-filepicker" }
|
||||
newpipe-nanojson = { module = "com.github.TeamNewPipe:nanojson", version.ref = "teamnewpipe-nanojson" }
|
||||
noties-markwon-core = { module = "io.noties.markwon:core", version.ref = "markwon" }
|
||||
|
||||
@@ -17,6 +17,11 @@ dependencyResolutionManagement {
|
||||
mavenCentral()
|
||||
maven(url = "https://jitpack.io")
|
||||
maven(url = "https://repo.clojars.org")
|
||||
maven(url = "https://central.sonatype.com/repository/maven-snapshots/") {
|
||||
content {
|
||||
includeGroup("net.newpipe")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
include (":app")
|
||||
|
||||
Reference in New Issue
Block a user