Skip to content

Commit

Permalink
Version 0.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
redsolver committed May 3, 2021
1 parent d1dcdef commit 7a1e1be
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 13 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.5.4

- Added new languages and updated translations (Thanks to all contributors!)
- Added new URI scheme to make app links more reliable
- Small improvements and bugfixes

## 0.5.3

Important bug fix: Wrong language used instead of English on unsupported locales
Expand Down Expand Up @@ -59,4 +65,4 @@ You can now share apps via the to.skydroid.app domain and open them directly in

## 0.1.2

- Fixed some bugs
- Fixed some bugs
13 changes: 13 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,19 @@
</intent-filter>


<!-- Deep Links -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Accepts URIs that begin with YOUR_SCHEME://YOUR_HOST -->
<data
android:scheme="skydroid-app"/>
<data
android:scheme="skydroid-collection"/>
</intent-filter>


<!-- App Links -->
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
Expand Down
29 changes: 25 additions & 4 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,34 @@ class _MyHomePageState extends State<MyHomePage> {
StreamSubscription _sub;

Future<void> processLink(String link) async {
// print('processLink $link');
final uri = Uri.parse(link);

if (uri.pathSegments.isEmpty) return;
bool isCollection = false;
String name;
if (uri.scheme == 'skydroid-app') {
name = uri.host;
isCollection = false;
} else if (uri.scheme == 'skydroid-collection') {
name = uri.host;
isCollection = true;
} else {
if (uri.pathSegments.isEmpty) return;
name = uri.pathSegments.first;

if (uri.host == 'to.skydroid.app') {
isCollection = false;
} else if (uri.host == 'collection.skydroid.app') {
isCollection = true;
}
}
if (name == null) {
return;
}

final name = uri.pathSegments.first;
// if (uri.pathSegments.isEmpty && uri.scheme) return;

if (uri.host == 'to.skydroid.app') {
if (!isCollection) {
if (!names.containsKey(name)) {
await addName(name);
}
Expand All @@ -294,7 +315,7 @@ class _MyHomePageState extends State<MyHomePage> {

addToStream(name);
setState(() {});
} else if (uri.host == 'collection.skydroid.app') {
} else if (isCollection) {
while (Navigator.of(context).canPop()) Navigator.of(context).pop();
setState(() {
currentPage = 1;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A decentralized domain-based App Store for Android.

publish_to: "none"

version: 0.5.3+53
version: 0.5.4+54

environment:
sdk: ">=2.7.0 <3.0.0"
Expand Down
17 changes: 10 additions & 7 deletions skydroid-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@ localized:
Sia Skynet is used as hosting infrastructure for App Metadata, APKs, screenshots and other media content.
summary: A decentralized domain-based App Store for Android.
whatsNew: |-
• Updated translations
• Changed app icon
• Updated recommended collections
• Small bug fixes and optimizations
• Added new languages and updated translations (Thanks to all contributors!)
• Added new URI scheme to make app links more reliable
• Small improvements and bugfixes
builds:
- versionName: 0.5.4
versionCode: 54
sha256: 282ba6b4b68a061a16efd896e76d2ef7330bc2e8793cc082ddd2b2ae4cbbfd5b
apkLink: sia://AAB8LG7cx_JxFC1YkTheCzQCwppl03P3MCI069XiehgrwA
- versionName: 0.5.3
versionCode: 53
sha256: 016923b6247f9be6c9baf93541333a77677f5ff0b36220763fe93ceef60a0250
Expand Down Expand Up @@ -93,8 +96,8 @@ builds:
sha256: c62c2d73c0ead2fb1a287eecc6d637c318cb49b8c1543bbd2110d73b78ee7c6a
apkLink: sia://AADzaC8YfqVlUAcSf8-1PdT9mLDb9KRLeV9Pi8y3l8G2KA

currentVersionName: 0.5.3
currentVersionCode: 53
currentVersionName: 0.5.4
currentVersionCode: 54

added: 1597353106000
lastUpdated: 1617919168014
lastUpdated: 1620051888583

0 comments on commit 7a1e1be

Please sign in to comment.