Skip to content

Commit

Permalink
Obj-C and Swift example updates (#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
radetsky committed Oct 9, 2022
1 parent dde159a commit 5d4a0b7
Show file tree
Hide file tree
Showing 11 changed files with 92 additions and 93 deletions.
2 changes: 1 addition & 1 deletion docs/examples/objc/iOS-CocoaPods/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: c544df5cbc47ee301679b77bbdbc4d4509f4d351

COCOAPODS: 1.11.2
COCOAPODS: 1.11.3
20 changes: 12 additions & 8 deletions docs/examples/objc/iOS-SPM/ThemisTest.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
objects = {

/* Begin PBXBuildFile section */
1D0749F228D10B6A00EAF77F /* themis in Frameworks */ = {isa = PBXBuildFile; productRef = 1D0749F128D10B6A00EAF77F /* themis */; };
6D93CFF9263C294600ED53C4 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D93CFF8263C294600ED53C4 /* AppDelegate.m */; };
6D93CFFC263C294600ED53C4 /* SceneDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D93CFFB263C294600ED53C4 /* SceneDelegate.m */; };
6D93CFFF263C294600ED53C4 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D93CFFE263C294600ED53C4 /* ViewController.m */; };
6D93D002263C294600ED53C4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6D93D000263C294600ED53C4 /* Main.storyboard */; };
6D93D004263C294900ED53C4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6D93D003263C294900ED53C4 /* Assets.xcassets */; };
6D93D007263C294900ED53C4 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6D93D005263C294900ED53C4 /* LaunchScreen.storyboard */; };
6D93D00A263C294900ED53C4 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D93D009263C294900ED53C4 /* main.m */; };
6DC890F2263C29EF003DA2AB /* themis in Frameworks */ = {isa = PBXBuildFile; productRef = 6DC890F1263C29EF003DA2AB /* themis */; };
6DC890FA263C2AF6003DA2AB /* server.priv in Resources */ = {isa = PBXBuildFile; fileRef = 6DC890F6263C2AF6003DA2AB /* server.priv */; };
6DC890FB263C2AF6003DA2AB /* client.pub in Resources */ = {isa = PBXBuildFile; fileRef = 6DC890F7263C2AF6003DA2AB /* client.pub */; };
6DC890FC263C2AF6003DA2AB /* server.pub in Resources */ = {isa = PBXBuildFile; fileRef = 6DC890F8263C2AF6003DA2AB /* server.pub */; };
Expand Down Expand Up @@ -45,7 +45,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
6DC890F2263C29EF003DA2AB /* themis in Frameworks */,
1D0749F228D10B6A00EAF77F /* themis in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -115,7 +115,7 @@
);
name = ThemisTest;
packageProductDependencies = (
6DC890F1263C29EF003DA2AB /* themis */,
1D0749F128D10B6A00EAF77F /* themis */,
);
productName = ThemisTest;
productReference = 6D93CFF4263C294600ED53C4 /* ThemisTest.app */;
Expand Down Expand Up @@ -144,7 +144,7 @@
);
mainGroup = 6D93CFEB263C294600ED53C4;
packageReferences = (
6DC890F0263C29EF003DA2AB /* XCRemoteSwiftPackageReference "themis" */,
1D0749F028D10B6A00EAF77F /* XCRemoteSwiftPackageReference "themis" */,
);
productRefGroup = 6D93CFF5263C294600ED53C4 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -324,13 +324,15 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
CURRENT_PROJECT_VERSION = 2021122301;
INFOPLIST_FILE = ThemisTest/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.cossacklabs.themis.spm2.ThemisTest;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -344,13 +346,15 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
CURRENT_PROJECT_VERSION = 2021122301;
INFOPLIST_FILE = ThemisTest/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.cossacklabs.themis.spm2.ThemisTest;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -382,20 +386,20 @@
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
6DC890F0263C29EF003DA2AB /* XCRemoteSwiftPackageReference "themis" */ = {
1D0749F028D10B6A00EAF77F /* XCRemoteSwiftPackageReference "themis" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/cossacklabs/themis";
requirement = {
kind = exactVersion;
version = 0.14.0;
version = 0.14.9;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
6DC890F1263C29EF003DA2AB /* themis */ = {
1D0749F128D10B6A00EAF77F /* themis */ = {
isa = XCSwiftPackageProductDependency;
package = 6DC890F0263C29EF003DA2AB /* XCRemoteSwiftPackageReference "themis" */;
package = 1D0749F028D10B6A00EAF77F /* XCRemoteSwiftPackageReference "themis" */;
productName = themis;
};
/* End XCSwiftPackageProductDependency section */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"object": {
"pins": [
{
"package": "themis",
"repositoryURL": "https://github.com/cossacklabs/themis",
"state": {
"branch": null,
"revision": "5d21527e76222b1e001b643aec77ff23e8c7478d",
"version": "0.14.0"
}
"pins" : [
{
"identity" : "themis",
"kind" : "remoteSourceControl",
"location" : "https://github.com/cossacklabs/themis",
"state" : {
"revision" : "b573ad970462e5ccc9dbafe5d954e57dcc386ba8",
"version" : "0.14.9"
}
]
},
"version": 1
}
],
"version" : 2
}
18 changes: 10 additions & 8 deletions docs/examples/objc/macOS-SPM/ThemisTest.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
objects = {

/* Begin PBXBuildFile section */
1DC9905A28D10F9800179131 /* themis in Frameworks */ = {isa = PBXBuildFile; productRef = 1DC9905928D10F9800179131 /* themis */; };
6D445235263C2B4C00871215 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D445234263C2B4C00871215 /* AppDelegate.m */; };
6D445238263C2B4C00871215 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D445237263C2B4C00871215 /* ViewController.m */; };
6D44523A263C2B4E00871215 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6D445239263C2B4E00871215 /* Assets.xcassets */; };
6D44523D263C2B4E00871215 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6D44523B263C2B4E00871215 /* Main.storyboard */; };
6D445240263C2B4E00871215 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D44523F263C2B4E00871215 /* main.m */; };
6D44524A263C2BA500871215 /* themis in Frameworks */ = {isa = PBXBuildFile; productRef = 6D445249263C2BA500871215 /* themis */; };
6D445251263C2BAE00871215 /* server.priv in Resources */ = {isa = PBXBuildFile; fileRef = 6D44524D263C2BAE00871215 /* server.priv */; };
6D445252263C2BAE00871215 /* client.pub in Resources */ = {isa = PBXBuildFile; fileRef = 6D44524E263C2BAE00871215 /* client.pub */; };
6D445253263C2BAE00871215 /* server.pub in Resources */ = {isa = PBXBuildFile; fileRef = 6D44524F263C2BAE00871215 /* server.pub */; };
Expand Down Expand Up @@ -41,7 +41,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
6D44524A263C2BA500871215 /* themis in Frameworks */,
1DC9905A28D10F9800179131 /* themis in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -109,7 +109,7 @@
);
name = ThemisTest;
packageProductDependencies = (
6D445249263C2BA500871215 /* themis */,
1DC9905928D10F9800179131 /* themis */,
);
productName = ThemisTest;
productReference = 6D445230263C2B4C00871215 /* ThemisTest.app */;
Expand Down Expand Up @@ -138,7 +138,7 @@
);
mainGroup = 6D445227263C2B4C00871215;
packageReferences = (
6D445248263C2BA500871215 /* XCRemoteSwiftPackageReference "themis" */,
1DC9905828D10F9800179131 /* XCRemoteSwiftPackageReference "themis" */,
);
productRefGroup = 6D445231263C2B4C00871215 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -309,6 +309,7 @@
CODE_SIGN_ENTITLEMENTS = ThemisTest/ThemisTest.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = ThemisTest/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -327,6 +328,7 @@
CODE_SIGN_ENTITLEMENTS = ThemisTest/ThemisTest.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = ThemisTest/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -361,20 +363,20 @@
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
6D445248263C2BA500871215 /* XCRemoteSwiftPackageReference "themis" */ = {
1DC9905828D10F9800179131 /* XCRemoteSwiftPackageReference "themis" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/cossacklabs/themis";
requirement = {
kind = exactVersion;
version = 0.14.0;
version = 0.14.9;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
6D445249263C2BA500871215 /* themis */ = {
1DC9905928D10F9800179131 /* themis */ = {
isa = XCSwiftPackageProductDependency;
package = 6D445248263C2BA500871215 /* XCRemoteSwiftPackageReference "themis" */;
package = 1DC9905828D10F9800179131 /* XCRemoteSwiftPackageReference "themis" */;
productName = themis;
};
/* End XCSwiftPackageProductDependency section */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"object": {
"pins": [
{
"package": "themis",
"repositoryURL": "https://github.com/cossacklabs/themis",
"state": {
"branch": null,
"revision": "68b485b8017098fce723e0839ecb9543d32463f6",
"version": "0.13.7"
}
"pins" : [
{
"identity" : "themis",
"kind" : "remoteSourceControl",
"location" : "https://github.com/cossacklabs/themis",
"state" : {
"revision" : "b573ad970462e5ccc9dbafe5d954e57dcc386ba8",
"version" : "0.14.9"
}
]
},
"version": 1
}
],
"version" : 2
}
2 changes: 1 addition & 1 deletion docs/examples/swift/iOS-CocoaPods/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 768444a6e78d64a8fa6d40159a19487b6c95f7f1

COCOAPODS: 1.11.2
COCOAPODS: 1.11.3
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@
TargetAttributes = {
739981161CC42C880095138F = {
CreatedOnToolsVersion = 7.3;
DevelopmentTeam = X6X7AHQ2D4;
LastSwiftMigration = 0910;
ProvisioningStyle = Automatic;
};
Expand Down Expand Up @@ -419,9 +418,9 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2021122301;
DEVELOPMENT_TEAM = X6X7AHQ2D4;
ENABLE_BITCODE = YES;
CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "$(SRCROOT)/ThemisSwift/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
Expand All @@ -444,9 +443,9 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2021122301;
DEVELOPMENT_TEAM = X6X7AHQ2D4;
ENABLE_BITCODE = YES;
CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "$(SRCROOT)/ThemisSwift/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
Expand Down
18 changes: 10 additions & 8 deletions docs/examples/swift/iOS-SPM/ThemisTest.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
objects = {

/* Begin PBXBuildFile section */
1DEB1C2428D0B13A00663915 /* themis in Frameworks */ = {isa = PBXBuildFile; productRef = 1DEB1C2328D0B13A00663915 /* themis */; };
6D445264263C2D1600871215 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D445263263C2D1600871215 /* AppDelegate.swift */; };
6D445266263C2D1600871215 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D445265263C2D1600871215 /* SceneDelegate.swift */; };
6D445268263C2D1600871215 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D445267263C2D1600871215 /* ViewController.swift */; };
6D44526B263C2D1600871215 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6D445269263C2D1600871215 /* Main.storyboard */; };
6D44526D263C2D1800871215 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6D44526C263C2D1800871215 /* Assets.xcassets */; };
6D445270263C2D1800871215 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6D44526E263C2D1800871215 /* LaunchScreen.storyboard */; };
6D44527A263C2D5600871215 /* themis in Frameworks */ = {isa = PBXBuildFile; productRef = 6D445279263C2D5600871215 /* themis */; };
6D445281263C2D6100871215 /* server.priv in Resources */ = {isa = PBXBuildFile; fileRef = 6D44527D263C2D6100871215 /* server.priv */; };
6D445282263C2D6100871215 /* client.pub in Resources */ = {isa = PBXBuildFile; fileRef = 6D44527E263C2D6100871215 /* client.pub */; };
6D445283263C2D6100871215 /* server.pub in Resources */ = {isa = PBXBuildFile; fileRef = 6D44527F263C2D6100871215 /* server.pub */; };
Expand All @@ -40,7 +40,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
6D44527A263C2D5600871215 /* themis in Frameworks */,
1DEB1C2428D0B13A00663915 /* themis in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -106,7 +106,7 @@
);
name = ThemisTest;
packageProductDependencies = (
6D445279263C2D5600871215 /* themis */,
1DEB1C2328D0B13A00663915 /* themis */,
);
productName = ThemisTest;
productReference = 6D445260263C2D1600871215 /* ThemisTest.app */;
Expand Down Expand Up @@ -136,7 +136,7 @@
);
mainGroup = 6D445257263C2D1600871215;
packageReferences = (
6D445278263C2D5600871215 /* XCRemoteSwiftPackageReference "themis" */,
1DEB1C2228D0B13A00663915 /* XCRemoteSwiftPackageReference "themis" */,
);
productRefGroup = 6D445261263C2D1600871215 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -326,6 +326,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.cossacklabs.themis.spm1.swift.ThemisTest;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -346,6 +347,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.cossacklabs.themis.spm1.swift.ThemisTest;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -377,20 +379,20 @@
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
6D445278263C2D5600871215 /* XCRemoteSwiftPackageReference "themis" */ = {
1DEB1C2228D0B13A00663915 /* XCRemoteSwiftPackageReference "themis" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/cossacklabs/themis";
requirement = {
kind = exactVersion;
version = 0.14.0;
version = 0.14.9;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
6D445279263C2D5600871215 /* themis */ = {
1DEB1C2328D0B13A00663915 /* themis */ = {
isa = XCSwiftPackageProductDependency;
package = 6D445278263C2D5600871215 /* XCRemoteSwiftPackageReference "themis" */;
package = 1DEB1C2228D0B13A00663915 /* XCRemoteSwiftPackageReference "themis" */;
productName = themis;
};
/* End XCSwiftPackageProductDependency section */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"object": {
"pins": [
{
"package": "themis",
"repositoryURL": "https://github.com/cossacklabs/themis",
"state": {
"branch": null,
"revision": "5d21527e76222b1e001b643aec77ff23e8c7478d",
"version": "0.14.0"
}
"pins" : [
{
"identity" : "themis",
"kind" : "remoteSourceControl",
"location" : "https://github.com/cossacklabs/themis",
"state" : {
"revision" : "b573ad970462e5ccc9dbafe5d954e57dcc386ba8",
"version" : "0.14.9"
}
]
},
"version": 1
}
],
"version" : 2
}
Loading

0 comments on commit 5d4a0b7

Please sign in to comment.