Skip to content

Commit acc1e1c

Browse files
authored
Merge pull request #15 from BrowserStackCE/v0.1.2
V0.1.2
2 parents 2406bdb + 1cb00f6 commit acc1e1c

File tree

8 files changed

+206
-126
lines changed

8 files changed

+206
-126
lines changed

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 51;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -155,7 +155,7 @@
155155
97C146E61CF9000F007C117D /* Project object */ = {
156156
isa = PBXProject;
157157
attributes = {
158-
LastUpgradeCheck = 1300;
158+
LastUpgradeCheck = 1430;
159159
ORGANIZATIONNAME = "";
160160
TargetAttributes = {
161161
97C146ED1CF9000F007C117D = {
@@ -199,10 +199,12 @@
199199
/* Begin PBXShellScriptBuildPhase section */
200200
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
201201
isa = PBXShellScriptBuildPhase;
202+
alwaysOutOfDate = 1;
202203
buildActionMask = 2147483647;
203204
files = (
204205
);
205206
inputPaths = (
207+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
206208
);
207209
name = "Thin Binary";
208210
outputPaths = (
@@ -252,6 +254,7 @@
252254
};
253255
9740EEB61CF901F6004384FC /* Run Script */ = {
254256
isa = PBXShellScriptBuildPhase;
257+
alwaysOutOfDate = 1;
255258
buildActionMask = 2147483647;
256259
files = (
257260
);
@@ -355,13 +358,14 @@
355358
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
356359
CLANG_ENABLE_MODULES = YES;
357360
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
361+
DEVELOPMENT_TEAM = 58NJ4M43R4;
358362
ENABLE_BITCODE = NO;
359363
INFOPLIST_FILE = Runner/Info.plist;
360364
LD_RUNPATH_SEARCH_PATHS = (
361365
"$(inherited)",
362366
"@executable_path/Frameworks",
363367
);
364-
PRODUCT_BUNDLE_IDENTIFIER = com.browserstack.fluttersystemproxy.flutterSystemProxy;
368+
PRODUCT_BUNDLE_IDENTIFIER = "com.browserstack.flutter-system-proxy-bstack";
365369
PRODUCT_NAME = "$(TARGET_NAME)";
366370
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
367371
SWIFT_VERSION = 5.0;
@@ -482,13 +486,14 @@
482486
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
483487
CLANG_ENABLE_MODULES = YES;
484488
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
489+
DEVELOPMENT_TEAM = 58NJ4M43R4;
485490
ENABLE_BITCODE = NO;
486491
INFOPLIST_FILE = Runner/Info.plist;
487492
LD_RUNPATH_SEARCH_PATHS = (
488493
"$(inherited)",
489494
"@executable_path/Frameworks",
490495
);
491-
PRODUCT_BUNDLE_IDENTIFIER = com.browserstack.fluttersystemproxy.flutterSystemProxy;
496+
PRODUCT_BUNDLE_IDENTIFIER = "com.browserstack.flutter-system-proxy-bstack";
492497
PRODUCT_NAME = "$(TARGET_NAME)";
493498
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
494499
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -504,13 +509,14 @@
504509
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
505510
CLANG_ENABLE_MODULES = YES;
506511
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
512+
DEVELOPMENT_TEAM = 58NJ4M43R4;
507513
ENABLE_BITCODE = NO;
508514
INFOPLIST_FILE = Runner/Info.plist;
509515
LD_RUNPATH_SEARCH_PATHS = (
510516
"$(inherited)",
511517
"@executable_path/Frameworks",
512518
);
513-
PRODUCT_BUNDLE_IDENTIFIER = com.browserstack.fluttersystemproxy.flutterSystemProxy;
519+
PRODUCT_BUNDLE_IDENTIFIER = "com.browserstack.flutter-system-proxy-bstack";
514520
PRODUCT_NAME = "$(TARGET_NAME)";
515521
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
516522
SWIFT_VERSION = 5.0;

example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1300"
3+
LastUpgradeVersion = "1430"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

example/ios/Runner/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
<string>$(FLUTTER_BUILD_NUMBER)</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
27+
<key>UIApplicationSupportsIndirectInputEvents</key>
28+
<true/>
2729
<key>UILaunchStoryboardName</key>
2830
<string>LaunchScreen</string>
2931
<key>UIMainStoryboardFile</key>

example/lib/main.dart

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'dart:io';
2+
import 'dart:async';
23
import 'package:dio/adapter.dart';
34
import 'package:flutter/material.dart';
45
import 'package:dio/dio.dart';
@@ -34,10 +35,13 @@ class _MyHomePageState extends State<MyHomePage> {
3435
int _counter = 0;
3536
String _res = "Response";
3637
void _incrementCounter() {
38+
setState(() {
39+
_counter++;
40+
});
3741
fetchLocalHost().then((value) {
42+
print(value);
3843
setState(() {
39-
_counter++;
40-
_res = value;
44+
_res = value.toString();
4145
});
4246
});
4347
}
@@ -76,20 +80,17 @@ class _MyHomePageState extends State<MyHomePage> {
7680
}
7781

7882
Future<String> fetchLocalHost() async {
79-
try {
8083
var dio = new Dio();
8184
var url = 'http://ip-api.com/json';
8285
var proxy = await FlutterSystemProxy.findProxyFromEnvironment(url);
86+
print(proxy);
8387
(dio.httpClientAdapter as DefaultHttpClientAdapter).onHttpClientCreate =
8488
(HttpClient client) {
8589
client.findProxy = (uri) {
8690
return proxy;
8791
};
8892
};
8993
var response = await dio.get(url);
94+
print(response.toString());
9095
return response.toString();
91-
} catch (e) {
92-
print(e);
93-
return e.toString();
94-
}
9596
}

example/pubspec.lock

Lines changed: 78 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,65 +5,66 @@ packages:
55
dependency: transitive
66
description:
77
name: async
8-
url: "https://pub.dartlang.org"
8+
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
9+
url: "https://pub.dev"
910
source: hosted
10-
version: "2.6.1"
11+
version: "2.11.0"
1112
boolean_selector:
1213
dependency: transitive
1314
description:
1415
name: boolean_selector
15-
url: "https://pub.dartlang.org"
16+
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
17+
url: "https://pub.dev"
1618
source: hosted
17-
version: "2.1.0"
19+
version: "2.1.1"
1820
characters:
1921
dependency: transitive
2022
description:
2123
name: characters
22-
url: "https://pub.dartlang.org"
24+
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
25+
url: "https://pub.dev"
2326
source: hosted
24-
version: "1.1.0"
25-
charcode:
26-
dependency: transitive
27-
description:
28-
name: charcode
29-
url: "https://pub.dartlang.org"
30-
source: hosted
31-
version: "1.2.0"
27+
version: "1.3.0"
3228
clock:
3329
dependency: transitive
3430
description:
3531
name: clock
36-
url: "https://pub.dartlang.org"
32+
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
33+
url: "https://pub.dev"
3734
source: hosted
38-
version: "1.1.0"
35+
version: "1.1.1"
3936
collection:
4037
dependency: transitive
4138
description:
4239
name: collection
43-
url: "https://pub.dartlang.org"
40+
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
41+
url: "https://pub.dev"
4442
source: hosted
45-
version: "1.15.0"
43+
version: "1.17.2"
4644
cupertino_icons:
4745
dependency: "direct main"
4846
description:
4947
name: cupertino_icons
50-
url: "https://pub.dartlang.org"
48+
sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be
49+
url: "https://pub.dev"
5150
source: hosted
52-
version: "1.0.3"
51+
version: "1.0.5"
5352
dio:
5453
dependency: "direct main"
5554
description:
5655
name: dio
57-
url: "https://pub.dartlang.org"
56+
sha256: "7d328c4d898a61efc3cd93655a0955858e29a0aa647f0f9e02d59b3bb275e2e8"
57+
url: "https://pub.dev"
5858
source: hosted
59-
version: "4.0.0"
59+
version: "4.0.6"
6060
fake_async:
6161
dependency: transitive
6262
description:
6363
name: fake_async
64-
url: "https://pub.dartlang.org"
64+
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
65+
url: "https://pub.dev"
6566
source: hosted
66-
version: "1.2.0"
67+
version: "1.3.1"
6768
flutter:
6869
dependency: "direct main"
6970
description: flutter
@@ -75,7 +76,7 @@ packages:
7576
path: ".."
7677
relative: true
7778
source: path
78-
version: "0.0.2"
79+
version: "0.1.0"
7980
flutter_test:
8081
dependency: "direct dev"
8182
description: flutter
@@ -85,30 +86,42 @@ packages:
8586
dependency: transitive
8687
description:
8788
name: http_parser
88-
url: "https://pub.dartlang.org"
89+
sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
90+
url: "https://pub.dev"
8991
source: hosted
90-
version: "4.0.0"
92+
version: "4.0.2"
9193
matcher:
9294
dependency: transitive
9395
description:
9496
name: matcher
95-
url: "https://pub.dartlang.org"
97+
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
98+
url: "https://pub.dev"
99+
source: hosted
100+
version: "0.12.16"
101+
material_color_utilities:
102+
dependency: transitive
103+
description:
104+
name: material_color_utilities
105+
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
106+
url: "https://pub.dev"
96107
source: hosted
97-
version: "0.12.10"
108+
version: "0.5.0"
98109
meta:
99110
dependency: transitive
100111
description:
101112
name: meta
102-
url: "https://pub.dartlang.org"
113+
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
114+
url: "https://pub.dev"
103115
source: hosted
104-
version: "1.3.0"
116+
version: "1.9.1"
105117
path:
106118
dependency: transitive
107119
description:
108120
name: path
109-
url: "https://pub.dartlang.org"
121+
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
122+
url: "https://pub.dev"
110123
source: hosted
111-
version: "1.8.0"
124+
version: "1.8.3"
112125
sky_engine:
113126
dependency: transitive
114127
description: flutter
@@ -118,58 +131,74 @@ packages:
118131
dependency: transitive
119132
description:
120133
name: source_span
121-
url: "https://pub.dartlang.org"
134+
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
135+
url: "https://pub.dev"
122136
source: hosted
123-
version: "1.8.1"
137+
version: "1.10.0"
124138
stack_trace:
125139
dependency: transitive
126140
description:
127141
name: stack_trace
128-
url: "https://pub.dartlang.org"
142+
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
143+
url: "https://pub.dev"
129144
source: hosted
130-
version: "1.10.0"
145+
version: "1.11.0"
131146
stream_channel:
132147
dependency: transitive
133148
description:
134149
name: stream_channel
135-
url: "https://pub.dartlang.org"
150+
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
151+
url: "https://pub.dev"
136152
source: hosted
137-
version: "2.1.0"
153+
version: "2.1.1"
138154
string_scanner:
139155
dependency: transitive
140156
description:
141157
name: string_scanner
142-
url: "https://pub.dartlang.org"
158+
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
159+
url: "https://pub.dev"
143160
source: hosted
144-
version: "1.1.0"
161+
version: "1.2.0"
145162
term_glyph:
146163
dependency: transitive
147164
description:
148165
name: term_glyph
149-
url: "https://pub.dartlang.org"
166+
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
167+
url: "https://pub.dev"
150168
source: hosted
151-
version: "1.2.0"
169+
version: "1.2.1"
152170
test_api:
153171
dependency: transitive
154172
description:
155173
name: test_api
156-
url: "https://pub.dartlang.org"
174+
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
175+
url: "https://pub.dev"
157176
source: hosted
158-
version: "0.3.0"
177+
version: "0.6.0"
159178
typed_data:
160179
dependency: transitive
161180
description:
162181
name: typed_data
163-
url: "https://pub.dartlang.org"
182+
sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
183+
url: "https://pub.dev"
164184
source: hosted
165-
version: "1.3.0"
185+
version: "1.3.2"
166186
vector_math:
167187
dependency: transitive
168188
description:
169189
name: vector_math
170-
url: "https://pub.dartlang.org"
190+
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
191+
url: "https://pub.dev"
192+
source: hosted
193+
version: "2.1.4"
194+
web:
195+
dependency: transitive
196+
description:
197+
name: web
198+
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
199+
url: "https://pub.dev"
171200
source: hosted
172-
version: "2.1.0"
201+
version: "0.1.4-beta"
173202
sdks:
174-
dart: ">=2.12.0 <3.0.0"
203+
dart: ">=3.1.0-185.0.dev <4.0.0"
175204
flutter: ">=1.20.0"

0 commit comments

Comments
 (0)