Skip to content

Commit

Permalink
Update samples
Browse files Browse the repository at this point in the history
  • Loading branch information
z4kn4fein committed Mar 21, 2024
1 parent ccf321c commit be08b70
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 34 deletions.
8 changes: 4 additions & 4 deletions samples/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- ConfigCat (10.0.0)
- ConfigCat (11.0.0)

DEPENDENCIES:
- ConfigCat (from `https://github.com/configcat/swift-sdk.git`, branch `master`)
Expand All @@ -11,12 +11,12 @@ EXTERNAL SOURCES:

CHECKOUT OPTIONS:
ConfigCat:
:commit: 23b97790b5a4b459c9231aa370afabc5c138023c
:commit: ccf321cc77f20e7797613053a6a259680e1ac9cb
:git: https://github.com/configcat/swift-sdk.git

SPEC CHECKSUMS:
ConfigCat: eec6f452c55fb703e468450b916e4f090f30a202
ConfigCat: ac791249672fbcfc1f12cbb23ce63b13344428be

PODFILE CHECKSUM: 9be1ab171ff7511f957624c62897daa13dae8e46

COCOAPODS: 1.11.3
COCOAPODS: 1.15.2
39 changes: 20 additions & 19 deletions samples/ios/configcatsample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -85,7 +85,6 @@
2C57FE7AF8E6E9E355A0A1CE /* Pods-configcatsample.debug.xcconfig */,
348F83CCDC435F8B3B1B15C6 /* Pods-configcatsample.release.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
Expand All @@ -100,7 +99,7 @@
3F189435209BC7DD0076DD4B /* Sources */,
3F189436209BC7DD0076DD4B /* Frameworks */,
3F189437209BC7DD0076DD4B /* Resources */,
B5DE50DB11CADB57B3BE7DAF /* [CP] Embed Pods Frameworks */,
E0272465F8ADD8C0A2C7F48B /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand All @@ -123,7 +122,7 @@
TargetAttributes = {
3F189438209BC7DD0076DD4B = {
CreatedOnToolsVersion = 9.3;
LastSwiftMigration = 1000;
LastSwiftMigration = "";
};
};
};
Expand Down Expand Up @@ -159,43 +158,43 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
B5DE50DB11CADB57B3BE7DAF /* [CP] Embed Pods Frameworks */ = {
DECA371BAB7D7935C5A0A199 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-configcatsample/Pods-configcatsample-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-configcatsample/Pods-configcatsample-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-configcatsample-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-configcatsample/Pods-configcatsample-frameworks.sh\"\n";
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";
showEnvVarsInLog = 0;
};
DECA371BAB7D7935C5A0A199 /* [CP] Check Pods Manifest.lock */ = {
E0272465F8ADD8C0A2C7F48B /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-configcatsample/Pods-configcatsample-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-configcatsample-checkManifestLockResult.txt",
"${PODS_ROOT}/Target Support Files/Pods-configcatsample/Pods-configcatsample-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
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";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-configcatsample/Pods-configcatsample-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
Expand Down Expand Up @@ -353,6 +352,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = configcatsample/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -371,6 +371,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = configcatsample/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
8 changes: 4 additions & 4 deletions samples/osx/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- ConfigCat (10.0.0)
- ConfigCat (11.0.0)

DEPENDENCIES:
- ConfigCat (from `https://github.com/configcat/swift-sdk.git`, branch `master`)
Expand All @@ -11,12 +11,12 @@ EXTERNAL SOURCES:

CHECKOUT OPTIONS:
ConfigCat:
:commit: 23b97790b5a4b459c9231aa370afabc5c138023c
:commit: ccf321cc77f20e7797613053a6a259680e1ac9cb
:git: https://github.com/configcat/swift-sdk.git

SPEC CHECKSUMS:
ConfigCat: eec6f452c55fb703e468450b916e4f090f30a202
ConfigCat: ac791249672fbcfc1f12cbb23ce63b13344428be

PODFILE CHECKSUM: cefb5b755aab5575d8660d2128a13614655fe285

COCOAPODS: 1.11.3
COCOAPODS: 1.15.2
4 changes: 2 additions & 2 deletions samples/osx/configcatsample-objc.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
"@loader_path/../Frameworks",
"@executable_path/ConfigCat",
"@executable_path",
"${DT_TOOLCHAIN_DIR}/usr/lib/swift/macosx/",
"${TOOLCHAIN_DIR}/usr/lib/swift/macosx/",
);
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "configcatsample-objc/configcatsample-objc-Bridging-Header.h";
Expand All @@ -332,7 +332,7 @@
"@loader_path/../Frameworks",
"@executable_path/ConfigCat",
"@executable_path",
"${DT_TOOLCHAIN_DIR}/usr/lib/swift/macosx/",
"${TOOLCHAIN_DIR}/usr/lib/swift/macosx/",
);
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "configcatsample-objc/configcatsample-objc-Bridging-Header.h";
Expand Down
10 changes: 5 additions & 5 deletions samples/osx/configcatsample-objc/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ int main(int argc, const char * argv[]) {
ConfigCatClient* client = [ConfigCatClient getWithSdkKey:@"PKDVCLf-Hq-h-kCzMp-L7Q/HhOWfwVtZ0mb30i9wi17GQ" configurator:^(ConfigCatOptions* options){
// Info level logging helps to inspect the feature flag evaluation process.
// Use the default Warning level to avoid too detailed logging in your application.
options.logLevel = LogLevelInfo;
options.logLevel = ConfigCatLogLevelInfo;

[options.hooks addOnReadyWithHandler:^(enum ClientReadyState state) {
dispatch_semaphore_signal(semaphore);
Expand All @@ -18,10 +18,10 @@ int main(int argc, const char * argv[]) {
dispatch_semaphore_wait(semaphore, dispatch_time(DISPATCH_TIME_NOW, (uint64_t)(5 * NSEC_PER_SEC)));

// Creating a user object to identify your user (optional).
ConfigCatUser* userObject = [[ConfigCatUser alloc]initWithIdentifier:@"Some UserID"
email:@"[email protected]"
country:@"CountryID"
custom:@{@"version": @"1.0.0"}];
ConfigCatUser* userObject = [[ConfigCatUser alloc]initWithIdentifier:@"<SOME USERID>"
email:@"[email protected]"
country:@"CountryID"
custom:@{@"version": @"1.0.0"}];

NSString *featureName = @"isPOCFeatureEnabled";

Expand Down

0 comments on commit be08b70

Please sign in to comment.