-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: build FOSS flavored app (#107)
feature: load changelog from GitHub fix: remove unnecessary permissions
- Loading branch information
1 parent
70af6c6
commit 26a346f
Showing
21 changed files
with
329 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "macos", | ||
"request": "launch", | ||
"type": "dart", | ||
"program": "lib/main.dart" | ||
}, | ||
{ | ||
"name": "google", | ||
"request": "launch", | ||
"type": "dart", | ||
"program": "lib/main.google.dart", | ||
"args": ["--flavor", "google", "-t", "lib/main.google.dart"] | ||
}, | ||
{ | ||
"name": "foss", | ||
"request": "launch", | ||
"type": "dart", | ||
"program": "lib/main.foss.dart", | ||
"args": ["--flavor", "foss", "-t", "lib/main.foss.dart"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import 'package:upnp_explorer/application/flavors/flavor_features.dart'; | ||
|
||
class DefaultFeatures extends FlavorFeatures { | ||
@override | ||
Future<void> openStoreListing() { | ||
// TODO: implement openStoreListing | ||
throw UnimplementedError(); | ||
} | ||
|
||
@override | ||
bool get showRatingTile => false; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
abstract class FlavorFeatures { | ||
Future<void> openStoreListing(); | ||
bool get showRatingTile; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import 'package:upnp_explorer/application/flavors/flavor_features.dart'; | ||
|
||
class FossFeatures extends FlavorFeatures { | ||
@override | ||
Future<void> openStoreListing() => Future.value(); | ||
|
||
@override | ||
bool get showRatingTile => false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import 'package:in_app_review/in_app_review.dart'; | ||
import 'package:upnp_explorer/application/application.dart'; | ||
import 'package:upnp_explorer/application/flavors/flavor_features.dart'; | ||
|
||
class GoogleFeatures extends FlavorFeatures { | ||
@override | ||
Future<void> openStoreListing() => InAppReview.instance.openStoreListing(appStoreId: Application.appId); | ||
|
||
@override | ||
bool get showRatingTile => true; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.