Skip to content

Commit bdc3a94

Browse files
authored
feat: Image-Answer as separate package (#157)
* feat: add image_answer as separate package * fix: remove camera dependency from survey_kit * fix(app): move image view into separate package * fix(app): update cocoapods * fix(app: fix lints * fix(app): updat changelog * fix(app): add work in progress
1 parent fe43612 commit bdc3a94

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1346
-368
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.3.0
2+
- BREAKING: ImageAnswer got moved into its own separate package (https://github.com/QuickBirdEng/survey_kit/tree/main/packages/survey_kit_image_answer)
3+
- To use it, import survey_kit_image_answer and add it to your dependencies
4+
- This will be released as a separate package on pub.dev soon
15
# 0.2.1
26
- INFO: Updated dependencies (Flutter 3.24.3)
37
- FEATURE: Added agreement step

android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java

Lines changed: 0 additions & 49 deletions
This file was deleted.

android/local.properties

Lines changed: 0 additions & 2 deletions
This file was deleted.

devtools_options.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
description: This file stores settings for Dart & Flutter DevTools.
2+
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
3+
extensions:

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '1.7.10'
2+
ext.kotlin_version = '1.9.25'
33
repositories {
44
google()
55
mavenCentral()

example/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ SPEC CHECKSUMS:
4444

4545
PODFILE CHECKSUM: 819463e6a0290f5a72f145ba7cde16e8b6ef0796
4646

47-
COCOAPODS: 1.15.2
47+
COCOAPODS: 1.16.2

example/macos/Podfile.lock

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
PODS:
2+
- file_selector_macos (0.0.1):
3+
- FlutterMacOS
4+
- FlutterMacOS (1.0.0)
5+
- url_launcher_macos (0.0.1):
6+
- FlutterMacOS
7+
- video_player_avfoundation (0.0.1):
8+
- Flutter
9+
- FlutterMacOS
10+
11+
DEPENDENCIES:
12+
- file_selector_macos (from `Flutter/ephemeral/.symlinks/plugins/file_selector_macos/macos`)
13+
- FlutterMacOS (from `Flutter/ephemeral`)
14+
- url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`)
15+
- video_player_avfoundation (from `Flutter/ephemeral/.symlinks/plugins/video_player_avfoundation/darwin`)
16+
17+
EXTERNAL SOURCES:
18+
file_selector_macos:
19+
:path: Flutter/ephemeral/.symlinks/plugins/file_selector_macos/macos
20+
FlutterMacOS:
21+
:path: Flutter/ephemeral
22+
url_launcher_macos:
23+
:path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos
24+
video_player_avfoundation:
25+
:path: Flutter/ephemeral/.symlinks/plugins/video_player_avfoundation/darwin
26+
27+
SPEC CHECKSUMS:
28+
file_selector_macos: cc3858c981fe6889f364731200d6232dac1d812d
29+
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
30+
url_launcher_macos: c82c93949963e55b228a30115bd219499a6fe404
31+
video_player_avfoundation: 7c6c11d8470e1675df7397027218274b6d2360b3
32+
33+
PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367
34+
35+
COCOAPODS: 1.16.2

example/macos/Runner.xcodeproj/project.pbxproj

Lines changed: 98 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
2828
33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
2929
33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
30+
88F52EBDF2B29D3638E4FCBC /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F846537A8A87664755167B4 /* Pods_Runner.framework */; };
31+
9DBA20E73DD9CDD9634D8F0D /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C8F89D166336EA54F41F64C0 /* Pods_RunnerTests.framework */; };
3032
/* End PBXBuildFile section */
3133

3234
/* Begin PBXContainerItemProxy section */
@@ -64,7 +66,7 @@
6466
331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
6567
333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };
6668
335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; };
67-
33CC10ED2044A3C60003C045 /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
69+
33CC10ED2044A3C60003C045 /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; };
6870
33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
6971
33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = "<group>"; };
7072
33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
@@ -76,22 +78,32 @@
7678
33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = "<group>"; };
7779
33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = "<group>"; };
7880
33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = "<group>"; };
81+
3CC18C6A37CF655B84B667A2 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
82+
5043CAE65E01A0BA6D330112 /* 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>"; };
83+
5276F5DD709B272E4DFEFF55 /* 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>"; };
84+
5F846537A8A87664755167B4 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
85+
617333BFBAB0C285664B746A /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
7986
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };
8087
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = "<group>"; };
88+
AC9FAE83E081DCC61B93519D /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
89+
BE9388E12E728A2BA64C957D /* 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>"; };
90+
C8F89D166336EA54F41F64C0 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
8191
/* End PBXFileReference section */
8292

8393
/* Begin PBXFrameworksBuildPhase section */
8494
331C80D2294CF70F00263BE5 /* Frameworks */ = {
8595
isa = PBXFrameworksBuildPhase;
8696
buildActionMask = 2147483647;
8797
files = (
98+
9DBA20E73DD9CDD9634D8F0D /* Pods_RunnerTests.framework in Frameworks */,
8899
);
89100
runOnlyForDeploymentPostprocessing = 0;
90101
};
91102
33CC10EA2044A3C60003C045 /* Frameworks */ = {
92103
isa = PBXFrameworksBuildPhase;
93104
buildActionMask = 2147483647;
94105
files = (
106+
88F52EBDF2B29D3638E4FCBC /* Pods_Runner.framework in Frameworks */,
95107
);
96108
runOnlyForDeploymentPostprocessing = 0;
97109
};
@@ -125,6 +137,7 @@
125137
331C80D6294CF71000263BE5 /* RunnerTests */,
126138
33CC10EE2044A3C60003C045 /* Products */,
127139
D73912EC22F37F3D000D13A0 /* Frameworks */,
140+
37D9D9FF6F9FF4908C41505E /* Pods */,
128141
);
129142
sourceTree = "<group>";
130143
};
@@ -172,9 +185,25 @@
172185
path = Runner;
173186
sourceTree = "<group>";
174187
};
188+
37D9D9FF6F9FF4908C41505E /* Pods */ = {
189+
isa = PBXGroup;
190+
children = (
191+
5276F5DD709B272E4DFEFF55 /* Pods-Runner.debug.xcconfig */,
192+
5043CAE65E01A0BA6D330112 /* Pods-Runner.release.xcconfig */,
193+
BE9388E12E728A2BA64C957D /* Pods-Runner.profile.xcconfig */,
194+
AC9FAE83E081DCC61B93519D /* Pods-RunnerTests.debug.xcconfig */,
195+
617333BFBAB0C285664B746A /* Pods-RunnerTests.release.xcconfig */,
196+
3CC18C6A37CF655B84B667A2 /* Pods-RunnerTests.profile.xcconfig */,
197+
);
198+
name = Pods;
199+
path = Pods;
200+
sourceTree = "<group>";
201+
};
175202
D73912EC22F37F3D000D13A0 /* Frameworks */ = {
176203
isa = PBXGroup;
177204
children = (
205+
5F846537A8A87664755167B4 /* Pods_Runner.framework */,
206+
C8F89D166336EA54F41F64C0 /* Pods_RunnerTests.framework */,
178207
);
179208
name = Frameworks;
180209
sourceTree = "<group>";
@@ -186,6 +215,7 @@
186215
isa = PBXNativeTarget;
187216
buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
188217
buildPhases = (
218+
4E9AC498C1CA85BB0E9932A2 /* [CP] Check Pods Manifest.lock */,
189219
331C80D1294CF70F00263BE5 /* Sources */,
190220
331C80D2294CF70F00263BE5 /* Frameworks */,
191221
331C80D3294CF70F00263BE5 /* Resources */,
@@ -204,11 +234,13 @@
204234
isa = PBXNativeTarget;
205235
buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
206236
buildPhases = (
237+
D9EBA866C2C8E2307A06A355 /* [CP] Check Pods Manifest.lock */,
207238
33CC10E92044A3C60003C045 /* Sources */,
208239
33CC10EA2044A3C60003C045 /* Frameworks */,
209240
33CC10EB2044A3C60003C045 /* Resources */,
210241
33CC110E2044A8840003C045 /* Bundle Framework */,
211242
3399D490228B24CF009A79C7 /* ShellScript */,
243+
7F079D00A6BAFE5A023634A8 /* [CP] Embed Pods Frameworks */,
212244
);
213245
buildRules = (
214246
);
@@ -227,7 +259,7 @@
227259
isa = PBXProject;
228260
attributes = {
229261
LastSwiftUpdateCheck = 0920;
230-
LastUpgradeCheck = 1430;
262+
LastUpgradeCheck = 1510;
231263
ORGANIZATIONNAME = "";
232264
TargetAttributes = {
233265
331C80D4294CF70F00263BE5 = {
@@ -328,6 +360,67 @@
328360
shellPath = /bin/sh;
329361
shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
330362
};
363+
4E9AC498C1CA85BB0E9932A2 /* [CP] Check Pods Manifest.lock */ = {
364+
isa = PBXShellScriptBuildPhase;
365+
buildActionMask = 2147483647;
366+
files = (
367+
);
368+
inputFileListPaths = (
369+
);
370+
inputPaths = (
371+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
372+
"${PODS_ROOT}/Manifest.lock",
373+
);
374+
name = "[CP] Check Pods Manifest.lock";
375+
outputFileListPaths = (
376+
);
377+
outputPaths = (
378+
"$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
379+
);
380+
runOnlyForDeploymentPostprocessing = 0;
381+
shellPath = /bin/sh;
382+
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";
383+
showEnvVarsInLog = 0;
384+
};
385+
7F079D00A6BAFE5A023634A8 /* [CP] Embed Pods Frameworks */ = {
386+
isa = PBXShellScriptBuildPhase;
387+
buildActionMask = 2147483647;
388+
files = (
389+
);
390+
inputFileListPaths = (
391+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
392+
);
393+
name = "[CP] Embed Pods Frameworks";
394+
outputFileListPaths = (
395+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
396+
);
397+
runOnlyForDeploymentPostprocessing = 0;
398+
shellPath = /bin/sh;
399+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
400+
showEnvVarsInLog = 0;
401+
};
402+
D9EBA866C2C8E2307A06A355 /* [CP] Check Pods Manifest.lock */ = {
403+
isa = PBXShellScriptBuildPhase;
404+
buildActionMask = 2147483647;
405+
files = (
406+
);
407+
inputFileListPaths = (
408+
);
409+
inputPaths = (
410+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
411+
"${PODS_ROOT}/Manifest.lock",
412+
);
413+
name = "[CP] Check Pods Manifest.lock";
414+
outputFileListPaths = (
415+
);
416+
outputPaths = (
417+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
418+
);
419+
runOnlyForDeploymentPostprocessing = 0;
420+
shellPath = /bin/sh;
421+
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";
422+
showEnvVarsInLog = 0;
423+
};
331424
/* End PBXShellScriptBuildPhase section */
332425

333426
/* Begin PBXSourcesBuildPhase section */
@@ -379,6 +472,7 @@
379472
/* Begin XCBuildConfiguration section */
380473
331C80DB294CF71000263BE5 /* Debug */ = {
381474
isa = XCBuildConfiguration;
475+
baseConfigurationReference = AC9FAE83E081DCC61B93519D /* Pods-RunnerTests.debug.xcconfig */;
382476
buildSettings = {
383477
BUNDLE_LOADER = "$(TEST_HOST)";
384478
CURRENT_PROJECT_VERSION = 1;
@@ -393,6 +487,7 @@
393487
};
394488
331C80DC294CF71000263BE5 /* Release */ = {
395489
isa = XCBuildConfiguration;
490+
baseConfigurationReference = 617333BFBAB0C285664B746A /* Pods-RunnerTests.release.xcconfig */;
396491
buildSettings = {
397492
BUNDLE_LOADER = "$(TEST_HOST)";
398493
CURRENT_PROJECT_VERSION = 1;
@@ -407,6 +502,7 @@
407502
};
408503
331C80DD294CF71000263BE5 /* Profile */ = {
409504
isa = XCBuildConfiguration;
505+
baseConfigurationReference = 3CC18C6A37CF655B84B667A2 /* Pods-RunnerTests.profile.xcconfig */;
410506
buildSettings = {
411507
BUNDLE_LOADER = "$(TEST_HOST)";
412508
CURRENT_PROJECT_VERSION = 1;

example/macos/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 = "1430"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

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.

0 commit comments

Comments
 (0)