Skip to content

Commit

Permalink
Update Sample App with spm
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshjain29 committed Mar 7, 2023
1 parent b5dbc54 commit ebd39fc
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 118 deletions.
6 changes: 0 additions & 6 deletions SimpleSurvey/Podfile

This file was deleted.

Binary file removed SimpleSurvey/Pods/.DS_Store
Binary file not shown.
82 changes: 5 additions & 77 deletions SimpleSurvey/Simple Survey.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
306F17151B30E44D0061D2DA /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 306F17141B30E44D0061D2DA /* Images.xcassets */; };
306F17181B30E44D0061D2DA /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 306F17161B30E44D0061D2DA /* LaunchScreen.xib */; };
306F172E1B30E4800061D2DA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 306F172D1B30E4800061D2DA /* Main.storyboard */; };
9D4BFBD03216FA946B5441B5 /* libPods-Simple Survey.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 85AF8833AAC94C5E93F82F19 /* libPods-Simple Survey.a */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
18C2B18A91D66A63F77B16BA /* Pods-Simple Survey.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Simple Survey.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Simple Survey/Pods-Simple Survey.debug.xcconfig"; sourceTree = "<group>"; };
306F17041B30E44D0061D2DA /* Simple Survey.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Simple Survey.app"; sourceTree = BUILT_PRODUCTS_DIR; };
306F17081B30E44D0061D2DA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
306F17091B30E44D0061D2DA /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
Expand All @@ -28,16 +26,13 @@
306F17141B30E44D0061D2DA /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
306F17171B30E44D0061D2DA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
306F172D1B30E4800061D2DA /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; };
85AF8833AAC94C5E93F82F19 /* libPods-Simple Survey.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Simple Survey.a"; sourceTree = BUILT_PRODUCTS_DIR; };
F3DFEBDDC617653F220DDB1C /* Pods-Simple Survey.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Simple Survey.release.xcconfig"; path = "Pods/Target Support Files/Pods-Simple Survey/Pods-Simple Survey.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
306F17011B30E44D0061D2DA /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
9D4BFBD03216FA946B5441B5 /* libPods-Simple Survey.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -49,8 +44,6 @@
children = (
306F17061B30E44D0061D2DA /* Simple Survey */,
306F17051B30E44D0061D2DA /* Products */,
D6C59386DFA2960DBBD6E924 /* Pods */,
CF8D63C05019DAD3E782628A /* Frameworks */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -86,42 +79,24 @@
name = "Supporting Files";
sourceTree = "<group>";
};
CF8D63C05019DAD3E782628A /* Frameworks */ = {
isa = PBXGroup;
children = (
85AF8833AAC94C5E93F82F19 /* libPods-Simple Survey.a */,
);
name = Frameworks;
sourceTree = "<group>";
};
D6C59386DFA2960DBBD6E924 /* Pods */ = {
isa = PBXGroup;
children = (
18C2B18A91D66A63F77B16BA /* Pods-Simple Survey.debug.xcconfig */,
F3DFEBDDC617653F220DDB1C /* Pods-Simple Survey.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
306F17031B30E44D0061D2DA /* Simple Survey */ = {
isa = PBXNativeTarget;
buildConfigurationList = 306F17271B30E44D0061D2DA /* Build configuration list for PBXNativeTarget "Simple Survey" */;
buildPhases = (
9375FD41561EA3AEA4081594 /* [CP] Check Pods Manifest.lock */,
306F17001B30E44D0061D2DA /* Sources */,
306F17011B30E44D0061D2DA /* Frameworks */,
306F17021B30E44D0061D2DA /* Resources */,
ADCACA536BBD1BD49C943C22 /* [CP] Embed Pods Frameworks */,
A8D83F26EE2BB93C54BF7477 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
dependencies = (
);
name = "Simple Survey";
packageProductDependencies = (
);
productName = "Simple Survey";
productReference = 306F17041B30E44D0061D2DA /* Simple Survey.app */;
productType = "com.apple.product-type.application";
Expand All @@ -145,10 +120,13 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
mainGroup = 306F16FB1B30E44D0061D2DA;
packageReferences = (
);
productRefGroup = 306F17051B30E44D0061D2DA /* Products */;
projectDirPath = "";
projectRoot = "";
Expand All @@ -171,54 +149,6 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
9375FD41561EA3AEA4081594 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
A8D83F26EE2BB93C54BF7477 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Simple Survey/Pods-Simple Survey-resources.sh\"\n";
showEnvVarsInLog = 0;
};
ADCACA536BBD1BD49C943C22 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Simple Survey/Pods-Simple Survey-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
306F17001B30E44D0061D2DA /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand Down Expand Up @@ -333,7 +263,6 @@
};
306F17281B30E44D0061D2DA /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 18C2B18A91D66A63F77B16BA /* Pods-Simple Survey.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -354,7 +283,6 @@
};
306F17291B30E44D0061D2DA /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = F3DFEBDDC617653F220DDB1C /* Pods-Simple Survey.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
FRAMEWORK_SEARCH_PATHS = (
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions SimpleSurvey/Simple Survey.xcworkspace/contents.xcworkspacedata

This file was deleted.

This file was deleted.

6 changes: 5 additions & 1 deletion SwiftPackageManager.MD
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ Install SurveyMonkey SDK via Swift Package Manager:

Select the SurveyMonkey GitHub repository - `https://github.com/SurveyMonkey/surveymonkey-ios-sdk.git`:

<img width="720" alt="Install" src="https://user-images.githubusercontent.com/42991157/223386611-ec1fc153-6032-4f54-8c1a-c45f65f5f86c.png">

Select the version.

Note: Starting with the 2.1.0 release.

<img width="720" alt="Install" src="https://user-images.githubusercontent.com/42991157/223386593-2508d6ce-3cea-4c26-b179-ed51aef9bcc7.png">

Choose the SurveyMonkey SDK product to be installed in your app.
Choose the SurveyMonkeyiOSSDK product to be installed in your app target.

<img width="720" alt="Install" src="https://user-images.githubusercontent.com/42991157/223386603-b57e7f3d-05d1-4cdb-956c-11be23607e27.png">


### Alternatively, add SurveyMonkeyiOSSDK to a `Package.swift` manifest
Expand Down

0 comments on commit ebd39fc

Please sign in to comment.