Merge remote-tracking branch 'origin/main' into dev
16
.github/workflows/fastlane.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: Validate Fastlane metadata
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
go:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Validate Fastlane Supply Metadata
|
||||
uses: ashutoshgngwr/validate-fastlane-supply-metadata@v2
|
BIN
assets/graphics/icon-512x512.png
Normal file
After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 41 B |
1
fastlane/metadata/android/en-US/images/featureGraphic.png
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../../assets/graphics/banner.png
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 41 B |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 47 B |
1
fastlane/metadata/android/en-US/images/icon.png
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../../assets/graphics/icon-512x512.png
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 47 B |
Before Width: | Height: | Size: 234 KiB After Width: | Height: | Size: 47 B |
1
fastlane/metadata/android/en-US/images/phoneScreenshots/1.png
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../../../assets/screenshots/1.apps.png
|
Before Width: | Height: | Size: 234 KiB After Width: | Height: | Size: 47 B |
Before Width: | Height: | Size: 238 KiB After Width: | Height: | Size: 53 B |
1
fastlane/metadata/android/en-US/images/phoneScreenshots/2.png
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../../../assets/screenshots/2.dark_theme.png
|
Before Width: | Height: | Size: 238 KiB After Width: | Height: | Size: 53 B |
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 55 B |
1
fastlane/metadata/android/en-US/images/phoneScreenshots/3.png
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../../../assets/screenshots/3.material_you.png
|
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 55 B |
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 46 B |
1
fastlane/metadata/android/en-US/images/phoneScreenshots/4.png
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../../../assets/screenshots/4.app.png
|
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 46 B |
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 51 B |
1
fastlane/metadata/android/en-US/images/phoneScreenshots/5.png
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../../../assets/screenshots/5.app_opts.png
|
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 51 B |
Before Width: | Height: | Size: 262 KiB After Width: | Height: | Size: 54 B |
1
fastlane/metadata/android/en-US/images/phoneScreenshots/6.png
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../../../assets/screenshots/6.app_webview.png
|
Before Width: | Height: | Size: 262 KiB After Width: | Height: | Size: 54 B |
1
fastlane/metadata/android/ru/title.txt
Normal file
@@ -0,0 +1 @@
|
||||
Obtainium
|
@@ -9,32 +9,7 @@ import 'package:obtainium/providers/apps_provider.dart';
|
||||
import 'package:obtainium/providers/source_provider.dart';
|
||||
|
||||
String ensureAbsoluteUrl(String ambiguousUrl, Uri referenceAbsoluteUrl) {
|
||||
if (ambiguousUrl.startsWith('//')) {
|
||||
ambiguousUrl = '${referenceAbsoluteUrl.scheme}:$ambiguousUrl';
|
||||
}
|
||||
try {
|
||||
Uri.parse(ambiguousUrl).origin;
|
||||
return ambiguousUrl;
|
||||
} catch (err) {
|
||||
// is relative
|
||||
}
|
||||
var currPathSegments = referenceAbsoluteUrl.path
|
||||
.split('/')
|
||||
.where((element) => element.trim().isNotEmpty)
|
||||
.toList();
|
||||
String absoluteUrl;
|
||||
if (ambiguousUrl.startsWith('/')) {
|
||||
absoluteUrl = '${referenceAbsoluteUrl.origin}$ambiguousUrl';
|
||||
} else if (currPathSegments.isEmpty) {
|
||||
absoluteUrl = '${referenceAbsoluteUrl.origin}/$ambiguousUrl';
|
||||
} else if (ambiguousUrl.split('/').where((e) => e.isNotEmpty).length == 1) {
|
||||
absoluteUrl =
|
||||
'${referenceAbsoluteUrl.origin}/${currPathSegments.join('/')}/$ambiguousUrl';
|
||||
} else {
|
||||
absoluteUrl =
|
||||
'${referenceAbsoluteUrl.origin}/${currPathSegments.sublist(0, currPathSegments.length - (currPathSegments.last.contains('.') ? 1 : 0)).join('/')}/$ambiguousUrl';
|
||||
}
|
||||
return Uri.parse(absoluteUrl).toString();
|
||||
return referenceAbsoluteUrl.resolve(ambiguousUrl).toString();
|
||||
}
|
||||
|
||||
int compareAlphaNumeric(String a, String b) {
|
||||
|