Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update iOS and macOS examples to use Themis 0.13.1 and OpenSSL 1.1.1g #701

Merged
merged 2 commits into from
Aug 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ _Code:_

- **Swift**

- Updated Swift examples (iOS and macOS, Carthage and CocoaPods) to showcase usage of the newest Secure Cell API: generating symmetric keys and using Secure Cell with Passphrase ([#688](https://github.com/cossacklabs/themis/pull/688)).
- Updated Swift examples (iOS and macOS, Carthage and CocoaPods) to showcase usage of the newest Secure Cell API: generating symmetric keys and using Secure Cell with Passphrase ([#688](https://github.com/cossacklabs/themis/pull/688)) and to use latest Themis 0.13.1 ([#701](https://github.com/cossacklabs/themis/pull/701)).

- **Objective-C**

- Updated Objective-C examples (iOS and macOS, Carthage and CocoaPods) to showcase usage of the newest Secure Cell API: generating symmetric keys and using Secure Cell with Passphrase ([#688](https://github.com/cossacklabs/themis/pull/688)).
- Updated Objective-C examples (iOS and macOS, Carthage and CocoaPods) to showcase usage of the newest Secure Cell API: generating symmetric keys and using Secure Cell with Passphrase ([#688](https://github.com/cossacklabs/themis/pull/688)) and to use latest Themis 0.13.1 ([#701](https://github.com/cossacklabs/themis/pull/701)).

- **Rust**

Expand Down
2 changes: 1 addition & 1 deletion docs/examples/Themis-server/Obj-C/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ use_frameworks!

target :"WorkingWithThemisServer" do

pod 'themis', '0.13.0'
pod 'themis', '0.13.1'

end
34 changes: 17 additions & 17 deletions docs/examples/Themis-server/Obj-C/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
PODS:
- GRKOpenSSLFramework (1.0.2.18)
- themis (0.13.0):
- themis/themis-openssl (= 0.13.0)
- themis/themis-openssl (0.13.0):
- GRKOpenSSLFramework (= 1.0.2.18)
- themis/themis-openssl/core (= 0.13.0)
- themis/themis-openssl/objcwrapper (= 0.13.0)
- themis/themis-openssl/core (0.13.0):
- GRKOpenSSLFramework (= 1.0.2.18)
- themis/themis-openssl/objcwrapper (0.13.0):
- GRKOpenSSLFramework (= 1.0.2.18)
- themis/themis-openssl/core
- CLOpenSSL (1.1.107.1)
- themis (0.13.1):
- themis/openssl-1.1.1 (= 0.13.1)
- themis/openssl-1.1.1 (0.13.1):
- CLOpenSSL (~> 1.1.107)
- themis/openssl-1.1.1/core (= 0.13.1)
- themis/openssl-1.1.1/objcwrapper (= 0.13.1)
- themis/openssl-1.1.1/core (0.13.1):
- CLOpenSSL (~> 1.1.107)
- themis/openssl-1.1.1/objcwrapper (0.13.1):
- CLOpenSSL (~> 1.1.107)
- themis/openssl-1.1.1/core

DEPENDENCIES:
- themis (= 0.13.0)
- themis (= 0.13.1)

SPEC REPOS:
https://github.com/CocoaPods/Specs.git:
- GRKOpenSSLFramework
- CLOpenSSL
- themis

SPEC CHECKSUMS:
GRKOpenSSLFramework: 1d65e55d569af7b23074373041a92cc8bc768a92
themis: dd1eaa51265a384b20a4cfbac83326cbb3b1b67c
CLOpenSSL: e57362f6522670f6dc727d19bd6dcd98c23d7cf5
themis: ccc8859adda9668dc4fd584bbb2390bf6c696de5

PODFILE CHECKSUM: 5a28afa13f7293eb555ebf751d8ca8dcc162d03b
PODFILE CHECKSUM: c1990926b3115ef550a5921173238889bef305c1

COCOAPODS: 1.9.3
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-WorkingWithThemisServer/Pods-WorkingWithThemisServer-frameworks.sh",
"${PODS_ROOT}/GRKOpenSSLFramework/OpenSSL-iOS/bin/openssl.framework",
"${PODS_ROOT}/CLOpenSSL/openssl-dynamic-iPhone.zip/openssl.framework",
"${BUILT_PRODUCTS_DIR}/themis/themis.framework",
);
name = "[CP] Embed Pods Frameworks";
Expand Down Expand Up @@ -524,7 +524,7 @@
DEVELOPMENT_TEAM = X6X7AHQ2D4;
INFOPLIST_FILE = WorkingWithThemisServer/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.stanfy.WorkingWithThemisServer;
PRODUCT_BUNDLE_IDENTIFIER = com.cl.WorkingWithThemisServer;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well had spelled the full domain name, IMO: com.cossacklabs.<...>

PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTS_MACCATALYST = NO;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -539,7 +539,7 @@
DEVELOPMENT_TEAM = X6X7AHQ2D4;
INFOPLIST_FILE = WorkingWithThemisServer/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.stanfy.WorkingWithThemisServer;
PRODUCT_BUNDLE_IDENTIFIER = com.cl.WorkingWithThemisServer;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTS_MACCATALYST = NO;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14283.14"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand All @@ -22,26 +20,14 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Themis Server Example ObjC" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="YtC-cy-O2u">
<rect key="frame" x="76" y="156" width="223" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Copyright (c) 2015-2019 Cossack Labs. All rights reserved." textAlignment="center" lineBreakMode="wordWrap" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tSF-Q5-9YO">
<rect key="frame" x="43" y="547" width="289" height="57"/>
<constraints>
<constraint firstAttribute="height" constant="57" id="y18-5p-OEg"/>
</constraints>
<rect key="frame" x="76" y="136" width="223" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="xb3-aO-Qok" firstAttribute="top" secondItem="tSF-Q5-9YO" secondAttribute="bottom" constant="63" id="5CW-sO-PYk"/>
<constraint firstItem="tSF-Q5-9YO" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="5q6-10-B6f"/>
<constraint firstItem="tSF-Q5-9YO" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leadingMargin" constant="27" id="99g-sJ-ieZ"/>
<constraint firstItem="YtC-cy-O2u" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="Ze5-6b-2t3" secondAttribute="leadingMargin" id="W6S-R8-04m"/>
<constraint firstItem="YtC-cy-O2u" firstAttribute="top" secondItem="Llm-lL-Icb" secondAttribute="bottom" constant="136" id="X5K-1R-N4Z"/>
<constraint firstItem="YtC-cy-O2u" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="mcB-VR-VyY"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10116" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
Expand All @@ -14,20 +16,20 @@
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Open console" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KTK-Ta-BV8">
<rect key="frame" x="183" y="286" width="234" height="29"/>
<rect key="frame" x="90" y="433.5" width="234" height="29"/>
<constraints>
<constraint firstAttribute="width" constant="234" id="hsF-pW-Ppw"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="24"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="KTK-Ta-BV8" firstAttribute="centerY" secondItem="8bC-Xf-vdC" secondAttribute="centerY" id="Jeo-Wf-2o8"/>
<constraint firstItem="KTK-Ta-BV8" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="X92-Yd-qm8"/>
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/Themis-server/swift/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ use_frameworks!

target :"SwiftThemisServerExample" do

pod 'themis', '0.13.0'
pod 'themis', '0.13.1'

end
34 changes: 17 additions & 17 deletions docs/examples/Themis-server/swift/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
PODS:
- GRKOpenSSLFramework (1.0.2.18)
- themis (0.13.0):
- themis/themis-openssl (= 0.13.0)
- themis/themis-openssl (0.13.0):
- GRKOpenSSLFramework (= 1.0.2.18)
- themis/themis-openssl/core (= 0.13.0)
- themis/themis-openssl/objcwrapper (= 0.13.0)
- themis/themis-openssl/core (0.13.0):
- GRKOpenSSLFramework (= 1.0.2.18)
- themis/themis-openssl/objcwrapper (0.13.0):
- GRKOpenSSLFramework (= 1.0.2.18)
- themis/themis-openssl/core
- CLOpenSSL (1.1.107.1)
- themis (0.13.1):
- themis/openssl-1.1.1 (= 0.13.1)
- themis/openssl-1.1.1 (0.13.1):
- CLOpenSSL (~> 1.1.107)
- themis/openssl-1.1.1/core (= 0.13.1)
- themis/openssl-1.1.1/objcwrapper (= 0.13.1)
- themis/openssl-1.1.1/core (0.13.1):
- CLOpenSSL (~> 1.1.107)
- themis/openssl-1.1.1/objcwrapper (0.13.1):
- CLOpenSSL (~> 1.1.107)
- themis/openssl-1.1.1/core

DEPENDENCIES:
- themis (= 0.13.0)
- themis (= 0.13.1)

SPEC REPOS:
https://github.com/CocoaPods/Specs.git:
- GRKOpenSSLFramework
- CLOpenSSL
- themis

SPEC CHECKSUMS:
GRKOpenSSLFramework: 1d65e55d569af7b23074373041a92cc8bc768a92
themis: dd1eaa51265a384b20a4cfbac83326cbb3b1b67c
CLOpenSSL: e57362f6522670f6dc727d19bd6dcd98c23d7cf5
themis: ccc8859adda9668dc4fd584bbb2390bf6c696de5

PODFILE CHECKSUM: 676d314076224e843e834ed3b41c08a10b072a2c
PODFILE CHECKSUM: 467f141f0cc7f02726ed8d83f1ed28ac32238ee5

COCOAPODS: 1.9.3
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-SwiftThemisServerExample/Pods-SwiftThemisServerExample-frameworks.sh",
"${PODS_ROOT}/GRKOpenSSLFramework/OpenSSL-iOS/bin/openssl.framework",
"${PODS_ROOT}/CLOpenSSL/openssl-dynamic-iPhone.zip/openssl.framework",
"${BUILT_PRODUCTS_DIR}/themis/themis.framework",
);
name = "[CP] Embed Pods Frameworks";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14283.14"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand All @@ -21,30 +19,16 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Themis Server Example Swift" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hyi-62-rC2">
<rect key="frame" x="41" y="99" width="293" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Copyright (c) 2015-2019 Cossack Labs. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="EAS-Rf-BOf">
<rect key="frame" x="41" y="548" width="293" height="68"/>
<constraints>
<constraint firstAttribute="height" constant="68" id="gMf-Mk-NiC"/>
</constraints>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Themis Server Example Swift" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hyi-62-rC2">
<rect key="frame" x="41" y="79" width="293" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="EAS-Rf-BOf" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leadingMargin" constant="25" id="28g-sU-btK"/>
<constraint firstItem="EAS-Rf-BOf" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="BK7-oT-QGr"/>
<constraint firstItem="xb3-aO-Qok" firstAttribute="top" secondItem="EAS-Rf-BOf" secondAttribute="bottom" constant="51" id="HOe-ov-5ls"/>
<constraint firstItem="hyi-62-rC2" firstAttribute="top" secondItem="Llm-lL-Icb" secondAttribute="bottom" constant="79" id="U21-8B-qr8"/>
<constraint firstItem="EAS-Rf-BOf" firstAttribute="leading" secondItem="hyi-62-rC2" secondAttribute="leading" id="atZ-Sb-PlU"/>
<constraint firstItem="EAS-Rf-BOf" firstAttribute="trailing" secondItem="hyi-62-rC2" secondAttribute="trailing" id="g7m-0K-Uhs"/>
</constraints>
</view>
</viewController>
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/objc/iOS-Carthage/Cartfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "cossacklabs/themis" ~> 0.13.0
github "cossacklabs/themis" ~> 0.13.1
5 changes: 3 additions & 2 deletions docs/examples/objc/iOS-Carthage/Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
github "cossacklabs/themis" "gothemis/v0.13.0"
github "krzyzanowskim/OpenSSL" "990bd88219da80d7a77289aeae245b3eb400d834"
binary "https://raw.githubusercontent.com/cossacklabs/openssl-apple/cossacklabs/carthage/openssl-static-MacOSX.json" "1.1.107"
binary "https://raw.githubusercontent.com/cossacklabs/openssl-apple/cossacklabs/carthage/openssl-static-iPhone.json" "1.1.107"
github "cossacklabs/themis" "gothemis/v0.13.1"
2 changes: 1 addition & 1 deletion docs/examples/objc/iOS-CocoaPods/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ use_frameworks!

target :"ThemisTest" do

pod 'themis', '0.13.0'
pod 'themis', '0.13.1'

end
Loading