Skip to content

Commit

Permalink
Fix internet permission and app version
Browse files Browse the repository at this point in the history
  • Loading branch information
BhasherBEL committed Mar 26, 2023
1 parent fb8bd6f commit 47e512f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="be.bhasher.shared">
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:label="shared"
android:name="${applicationName}"
Expand Down
2 changes: 2 additions & 0 deletions lib/screens/new_project_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class NewProjectScreen extends StatelessWidget {
try {
await project!.provider.connect();
} on ClientException {
print('Connection error');
if (context.mounted) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
Expand All @@ -65,6 +66,7 @@ class NewProjectScreen extends StatelessWidget {
}
return;
} catch (e) {
print(e);
if (context.mounted) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+1
version: 0.0.3

environment:
sdk: '>=2.18.6 <3.0.0'
Expand Down

0 comments on commit 47e512f

Please sign in to comment.