Skip to content

Commit cd7ca0d

Browse files
authored
Merge pull request #29 from atiqmlbd/bug/app_open_web
'web' platform assigned instead of 'flutter'
2 parents f97e374 + ecf59af commit cd7ca0d

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

example/pubspec.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ packages:
2828
name: async
2929
url: "https://pub.dartlang.org"
3030
source: hosted
31-
version: "2.5.0"
31+
version: "2.6.1"
3232
boolean_selector:
3333
dependency: transitive
3434
description:
@@ -295,7 +295,7 @@ packages:
295295
path: ".."
296296
relative: true
297297
source: path
298-
version: "0.1.8"
298+
version: "0.2.1"
299299
package_config:
300300
dependency: transitive
301301
description:
@@ -454,7 +454,7 @@ packages:
454454
name: source_span
455455
url: "https://pub.dartlang.org"
456456
source: hosted
457-
version: "1.8.0"
457+
version: "1.8.1"
458458
stack_trace:
459459
dependency: transitive
460460
description:
@@ -496,7 +496,7 @@ packages:
496496
name: test_api
497497
url: "https://pub.dartlang.org"
498498
source: hosted
499-
version: "0.2.19"
499+
version: "0.3.0"
500500
timing:
501501
dependency: transitive
502502
description:

lib/nstack.dart

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,20 @@ class NStack<T> {
6363
prefs.setString(prefsKeyLastUpdated, lastUpdated);
6464
}
6565

66-
if (Platform.isAndroid) {
67-
platform = 'android';
68-
} else if (Platform.isIOS) {
69-
platform = 'ios';
66+
if(!Foundation.kIsWeb){
67+
if (Platform.isAndroid) {
68+
platform = 'android';
69+
} else if (Platform.isIOS) {
70+
platform = 'ios';
71+
} else {
72+
//need to update when new platforms come
73+
platform = 'unknown';
74+
}
7075
} else {
71-
platform = 'flutter';
76+
platform = 'web';
7277
}
7378

79+
7480
_appOpenData = NStackAppOpenData(
7581
platform: platform,
7682
guid: guid,

pubspec.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ packages:
2828
name: async
2929
url: "https://pub.dartlang.org"
3030
source: hosted
31-
version: "2.5.0"
31+
version: "2.6.1"
3232
boolean_selector:
3333
dependency: transitive
3434
description:
@@ -342,7 +342,7 @@ packages:
342342
name: source_span
343343
url: "https://pub.dartlang.org"
344344
source: hosted
345-
version: "1.8.0"
345+
version: "1.8.1"
346346
stack_trace:
347347
dependency: transitive
348348
description:
@@ -377,7 +377,7 @@ packages:
377377
name: test_api
378378
url: "https://pub.dartlang.org"
379379
source: hosted
380-
version: "0.2.19"
380+
version: "0.3.0"
381381
typed_data:
382382
dependency: transitive
383383
description:

0 commit comments

Comments
 (0)