Skip to content

Commit 8995b82

Browse files
Merge pull request #14 from JohnRamberger/development
Development
2 parents c1ee678 + 9b501e4 commit 8995b82

File tree

8 files changed

+23
-8
lines changed

8 files changed

+23
-8
lines changed

amplify/team-provider-info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"function": {
2222
"hacklyticsportal20232e32fd51": {
2323
"deploymentBucketName": "amplify-hacklyticsportal2023-prod-221126-deployment",
24-
"s3Key": "amplify-builds/hacklyticsportal20232e32fd51-53694b4a504e56477952-build.zip"
24+
"s3Key": "amplify-builds/hacklyticsportal20232e32fd51-70577737482b35743137-build.zip"
2525
},
2626
"hacklyticsportal2023listusers": {
2727
"deploymentBucketName": "amplify-hacklyticsportal2023-prod-221126-deployment",

android/app/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ android {
5454
}
5555

5656
buildTypes {
57+
debug {
58+
applicationIdSuffix ".debug"
59+
}
5760
release {
5861
// TODO: Add your own signing config for the release build.
5962
// Signing with the debug keys for now, so `flutter run --release` works.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<string name="app_name">Hacklytics debug</string>
5+
6+
</resources>

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
package="com.example.hacklytics_checkin_flutter">
33
<uses-permission android:name="android.permission.NFC" />
44
<application
5-
android:label="Hacklytics"
5+
android:label="@string/app_name"
66
android:name="${applicationName}"
77
android:icon="@mipmap/ic_launcher"
88
android:usesCleartextTraffic="true">
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<string name="app_name">Hacklytics</string>
5+
6+
</resources>

lib/model/amplifyuser.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ class AmplifyUser {
2121
final response = utf8.decode(base64Url.decode(normalized));
2222

2323
var json = jsonDecode(response);
24-
groups = json['cognito:groups'];
25-
username = json['username'];
26-
deviceKey = json['device_key'];
27-
clientId = json['client_id'];
24+
groups = json['cognito:groups'] ?? [];
25+
username = json['username'] ?? "";
26+
deviceKey = json['device_key'] ?? "";
27+
clientId = json['client_id'] ?? "";
2828

2929
// check if the user is in the allowed groups
3030
for (var group in groups) {

lib/view/Home.view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class _HomeViewState extends State<HomeView> {
6060
const DrawerHeader(
6161
child: Text("Hacklytics"),
6262
),
63-
_loadingUser == false && _user.hasAccess
63+
_loadingUser == false && _error.isEmpty && _user.hasAccess
6464
? Column(children: [
6565
ListTile(
6666
title: const Text("General NFC"),

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1717
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1818
# In Windows, build-name is used as the major, minor, and patch parts
1919
# of the product and file versions while build-number is used as the build suffix.
20-
version: 1.0.33
20+
version: 1.0.34
2121

2222
environment:
2323
sdk: '>=2.18.5 <3.0.0'

0 commit comments

Comments
 (0)