Skip to content

Commit 937ceb7

Browse files
committed
macos works! remove some example code
1 parent 27a6917 commit 937ceb7

File tree

6 files changed

+115
-38
lines changed

6 files changed

+115
-38
lines changed

.idea/workspace.xml

Lines changed: 19 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dargon2_flutter/dargon2_flutter_desktop/example/lib/main.dart

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,9 @@ class MyApp extends StatefulWidget {
1616
}
1717

1818
class _MyAppState extends State<MyApp> {
19-
String _platformVersion = 'Unknown';
20-
2119
@override
2220
void initState() {
2321
super.initState();
24-
initPlatformState();
25-
}
26-
27-
// Platform messages are asynchronous, so we initialize in an async method.
28-
Future<void> initPlatformState() async {
29-
String platformVersion;
30-
// Platform messages may fail, so we use a try/catch PlatformException.
31-
// We also handle the message potentially returning null.
32-
try {
33-
platformVersion =
34-
await Dargon2FlutterDesktop.platformVersion ?? 'Unknown platform version';
35-
} on PlatformException {
36-
platformVersion = 'Failed to get platform version.';
37-
}
38-
39-
// If the widget was removed from the tree while the asynchronous platform
40-
// message was in flight, we want to discard the reply rather than calling
41-
// setState to update our non-existent appearance.
42-
if (!mounted) return;
43-
44-
setState(() {
45-
_platformVersion = platformVersion;
46-
});
4722
}
4823

4924
@override
@@ -53,8 +28,8 @@ class _MyAppState extends State<MyApp> {
5328
appBar: AppBar(
5429
title: const Text('Plugin example app'),
5530
),
56-
body: Center(
57-
child: Text('Running on: $_platformVersion\n'),
31+
body: const Center(
32+
child: Text('Running on: '),
5833
),
5934
),
6035
);
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
PODS:
2+
- Argon2Swift (1.0.2)
3+
- dargon2_flutter_desktop (0.0.1):
4+
- Argon2Swift
5+
- FlutterMacOS
6+
- FlutterMacOS (1.0.0)
7+
8+
DEPENDENCIES:
9+
- dargon2_flutter_desktop (from `Flutter/ephemeral/.symlinks/plugins/dargon2_flutter_desktop/macos`)
10+
- FlutterMacOS (from `Flutter/ephemeral`)
11+
12+
SPEC REPOS:
13+
trunk:
14+
- Argon2Swift
15+
16+
EXTERNAL SOURCES:
17+
dargon2_flutter_desktop:
18+
:path: Flutter/ephemeral/.symlinks/plugins/dargon2_flutter_desktop/macos
19+
FlutterMacOS:
20+
:path: Flutter/ephemeral
21+
22+
SPEC CHECKSUMS:
23+
Argon2Swift: 370c9687875b4a2365ecb7de06ea5ea0c46e7504
24+
dargon2_flutter_desktop: 5c9ada7e2681da7dc95052e4fcc1e61ad17e27e1
25+
FlutterMacOS: 57701585bf7de1b3fc2bb61f6378d73bbdea8424
26+
27+
PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c
28+
29+
COCOAPODS: 1.11.2

dargon2_flutter/dargon2_flutter_desktop/example/macos/Runner.xcodeproj/project.pbxproj

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
2727
33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
2828
33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
29+
D9E1E9DC2A5FA43F9A3AD1DD /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD33ACB8081F90B9DC42AF95 /* Pods_Runner.framework */; };
2930
/* End PBXBuildFile section */
3031

3132
/* Begin PBXContainerItemProxy section */
@@ -52,9 +53,10 @@
5253
/* End PBXCopyFilesBuildPhase section */
5354

5455
/* Begin PBXFileReference section */
56+
2812A0166F9186549E306609 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
5557
333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };
5658
335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; };
57-
33CC10ED2044A3C60003C045 /* dargon2_flutter_desktop_example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "dargon2_flutter_desktop_example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
59+
33CC10ED2044A3C60003C045 /* dargon2_flutter_desktop_example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = dargon2_flutter_desktop_example.app; sourceTree = BUILT_PRODUCTS_DIR; };
5860
33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
5961
33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = "<group>"; };
6062
33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
@@ -66,15 +68,19 @@
6668
33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = "<group>"; };
6769
33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = "<group>"; };
6870
33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = "<group>"; };
71+
4C5CFA3CEA33B360548C670A /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
6972
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };
7073
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = "<group>"; };
74+
AD33ACB8081F90B9DC42AF95 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
75+
B09926E9F3097ACAA9CFDF60 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
7176
/* End PBXFileReference section */
7277

7378
/* Begin PBXFrameworksBuildPhase section */
7479
33CC10EA2044A3C60003C045 /* Frameworks */ = {
7580
isa = PBXFrameworksBuildPhase;
7681
buildActionMask = 2147483647;
7782
files = (
83+
D9E1E9DC2A5FA43F9A3AD1DD /* Pods_Runner.framework in Frameworks */,
7884
);
7985
runOnlyForDeploymentPostprocessing = 0;
8086
};
@@ -99,6 +105,7 @@
99105
33CEB47122A05771004F2AC0 /* Flutter */,
100106
33CC10EE2044A3C60003C045 /* Products */,
101107
D73912EC22F37F3D000D13A0 /* Frameworks */,
108+
527E5B7C21A82EAD7A9FAE4F /* Pods */,
102109
);
103110
sourceTree = "<group>";
104111
};
@@ -145,9 +152,21 @@
145152
path = Runner;
146153
sourceTree = "<group>";
147154
};
155+
527E5B7C21A82EAD7A9FAE4F /* Pods */ = {
156+
isa = PBXGroup;
157+
children = (
158+
B09926E9F3097ACAA9CFDF60 /* Pods-Runner.debug.xcconfig */,
159+
4C5CFA3CEA33B360548C670A /* Pods-Runner.release.xcconfig */,
160+
2812A0166F9186549E306609 /* Pods-Runner.profile.xcconfig */,
161+
);
162+
name = Pods;
163+
path = Pods;
164+
sourceTree = "<group>";
165+
};
148166
D73912EC22F37F3D000D13A0 /* Frameworks */ = {
149167
isa = PBXGroup;
150168
children = (
169+
AD33ACB8081F90B9DC42AF95 /* Pods_Runner.framework */,
151170
);
152171
name = Frameworks;
153172
sourceTree = "<group>";
@@ -159,11 +178,13 @@
159178
isa = PBXNativeTarget;
160179
buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
161180
buildPhases = (
181+
599514603E122BF38B69D717 /* [CP] Check Pods Manifest.lock */,
162182
33CC10E92044A3C60003C045 /* Sources */,
163183
33CC10EA2044A3C60003C045 /* Frameworks */,
164184
33CC10EB2044A3C60003C045 /* Resources */,
165185
33CC110E2044A8840003C045 /* Bundle Framework */,
166186
3399D490228B24CF009A79C7 /* ShellScript */,
187+
F14E71AEDD78C1CE5E40AC86 /* [CP] Embed Pods Frameworks */,
167188
);
168189
buildRules = (
169190
);
@@ -270,6 +291,45 @@
270291
shellPath = /bin/sh;
271292
shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
272293
};
294+
599514603E122BF38B69D717 /* [CP] Check Pods Manifest.lock */ = {
295+
isa = PBXShellScriptBuildPhase;
296+
buildActionMask = 2147483647;
297+
files = (
298+
);
299+
inputFileListPaths = (
300+
);
301+
inputPaths = (
302+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
303+
"${PODS_ROOT}/Manifest.lock",
304+
);
305+
name = "[CP] Check Pods Manifest.lock";
306+
outputFileListPaths = (
307+
);
308+
outputPaths = (
309+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
310+
);
311+
runOnlyForDeploymentPostprocessing = 0;
312+
shellPath = /bin/sh;
313+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
314+
showEnvVarsInLog = 0;
315+
};
316+
F14E71AEDD78C1CE5E40AC86 /* [CP] Embed Pods Frameworks */ = {
317+
isa = PBXShellScriptBuildPhase;
318+
buildActionMask = 2147483647;
319+
files = (
320+
);
321+
inputFileListPaths = (
322+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
323+
);
324+
name = "[CP] Embed Pods Frameworks";
325+
outputFileListPaths = (
326+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
327+
);
328+
runOnlyForDeploymentPostprocessing = 0;
329+
shellPath = /bin/sh;
330+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
331+
showEnvVarsInLog = 0;
332+
};
273333
/* End PBXShellScriptBuildPhase section */
274334

275335
/* Begin PBXSourcesBuildPhase section */

dargon2_flutter/dargon2_flutter_desktop/example/macos/Runner.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dargon2_flutter/dargon2_flutter_desktop/macos/dargon2_flutter_desktop.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Pod::Spec.new do |s|
66
s.name = 'dargon2_flutter_desktop'
77
s.version = '0.0.1'
8-
s.summary = 'dargon2_flutter's desktop implementation'
8+
s.summary = 'dargon2_flutter\'s desktop implementation'
99
s.description = <<-DESC
1010
dargon2_flutter's desktop implementation
1111
DESC

0 commit comments

Comments
 (0)