Skip to content

Commit 158920b

Browse files
committed
Release v6.5.0
1 parent 23ca634 commit 158920b

Some content is hidden

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

52 files changed

+108
-2497
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.swift-version
2+
.swiftpm

CHANGELOG.MD

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 6.5.0
2+
### Fix
3+
- Fixes crash under iOS 13, after dismissing campaign, and rotating device
4+
### Update
5+
- Build with Xcode 12.0 to support swift package
6+
- Added Swift Package Support ( Binary Target - xcframework)
7+
18
## 6.4.7
29
### Fix
310
- Fixes crash under iOS 13, after dismissing campaign, and rotating device

Package.swift

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// swift-tools-version:5.3
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let version = "6.5.0"
7+
let checksum = "9d9fd7e178ea82c05593dd5a037a8d166a7825ccedf11a5046c8c19badb82f24"
8+
let url = "https://github.com/usabilla/usabilla-u4a-ios-swift-sdk/releases/download/v\(version)/Usabilla.xcframework.zip"
9+
10+
let package = Package(
11+
name: "Usabilla",
12+
platforms: [.iOS(.v9)],
13+
products: [
14+
.library(
15+
name: "Usabilla",
16+
targets: ["Usabilla"]),
17+
],
18+
targets: [
19+
.binaryTarget(
20+
name: "Usabilla",
21+
url: url,
22+
checksum: checksum)
23+
]
24+
)

Readme.MD

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Note :
1010
* * *
1111

1212
- [Usabilla for Apps - iOS SDK](#usabilla-for-apps---ios-sdk)
13-
- [- UI Customisations](#ui-customisations)
1413
- [Requirements](#requirements)
1514
- [Installation](#installation)
15+
- [Swift Package Manager](#SPM)
1616
- [CocoaPods](#cocoapods)
1717
- [Carthage](#carthage)
1818
- [Manual](#manual)
@@ -50,27 +50,6 @@ Note :
5050
- [String file contents](#string-file-contents)
5151
- [Permissions](#permissions)
5252
- [Integration with Obj-C applications](#integration-with-obj-c-applications)
53-
- [Masking Private Identifiable Information](#masking-data)
54-
- [Custom variables](#custom-variables)
55-
- [App Store rating](#app-store-rating)
56-
- [Force specific interface orientation](#Force-specific-interface-orientation)
57-
- [UI Customisations](#ui-customisations)
58-
- [Masking Private Identifiable Information](#masking-private-identifiable-information)
59-
- [Custom variables](#custom-variables)
60-
- [App Store rating](#app-store-rating)
61-
- [Programmatically remove a Form or a Campaign](#programmatically-remove-a-form-or-a-campaign)
62-
- [Force specific interface orientation](#force-specific-interface-orientation)
63-
- [UI Customisations](#ui-customisations)
64-
- [Custom Emoticons Rating](#custom-emoticons-rating)
65-
- [Provide only the selected version](#provide-only-the-selected-version)
66-
- [Provide both the selected and unselected version](#provide-both-the-selected-and-unselected-version)
67-
- [Custom Star Rating](#custom-star-rating)
68-
- [Custom Fonts](#custom-fonts)
69-
- [Custom colors](#custom-colors)
70-
- [Localization](#localization)
71-
- [String file contents](#string-file-contents)
72-
- [Permissions](#permissions)
73-
- [Integration with Obj-C applications](#integration-with-obj-c-applications)
7453

7554
* * *
7655

@@ -86,6 +65,9 @@ You can install the Usabilla SDK using Cocoapods, Carthage or manually.
8665
This release is build with Xcode 11.3.1 and with Module Format Stability (as of 6.4.3). It should compile and run with any version of Xcode 11+
8766
Previous versions are available at our git-repository. For Carthage please check the Carthage section
8867

68+
### SPM
69+
Instructions for [Swift Package Manager](https://swift.org/package-manager/) support can be found at [SwiftPackageManager.md](SwiftPackageManager.MD).
70+
8971
### CocoaPods
9072

9173
The Usabilla SDK is available on [CocoaPods](http://cocoapods.org). You can install CocoaPods the following way:
@@ -101,7 +83,7 @@ use_frameworks!
10183

10284
target 'YourProjectTarget' do
10385

104-
pod 'Usabilla', '~> 6.4.7'
86+
pod 'Usabilla', '~> 6.5.0'
10587

10688
End
10789
```
@@ -125,18 +107,20 @@ And add this line to your `Cartfile`:
125107
```yaml
126108
binary "https://raw.githubusercontent.com/usabilla/usabilla-u4a-ios-swift-sdk/master/Usabilla.json"
127109
```
128-
The release in master is build for Xcode 11.3.1.
110+
The release in master is build for Xcode 12.0
129111

130112
For other Xcode version, use:
131113

132114
```yaml
133-
binary "https://raw.githubusercontent.com/usabilla/usabilla-u4a-ios-swift-sdk/Xcode-11.4.1/Usabilla.json"
115+
binary "https://raw.githubusercontent.com/usabilla/usabilla-u4a-ios-swift-sdk/Xcode-x.y.z/Usabilla.json"
134116
```
135-
replace Xcode-11.4.1 with the required version eg. Xcode-10
117+
replace Xcode-x.y.z with the required version eg. Xcode-10
118+
119+
**Compilation issue:** Update Carthage to `v0.35.0` and above.
136120

137121
### Manual
138122

139-
You can download the latest version of the repository and add **Usabilla.framework** to your app’s embedded frameworks.
123+
You can download the latest version of the repository from [releases](https://github.com/usabilla/usabilla-u4a-ios-swift-sdk/releases/) and extract **Pods.framework.zip** or **Usabilla.xcframework.zip**. Then add **Usabilla.framework** or **Usabilla.xcframework** to your app’s embedded frameworks.
140124

141125
In doing so, you might encounter a problem while submitting your app to the App Store. This is due to a [bug in the App Store](http://www.openradar.me/radar?id=6409498411401216) itself.
142126

@@ -457,12 +441,7 @@ Usabilla.defaultDataMasks
457441
You can pass along custom variables that will be attached to the feedback users send.
458442
Custom variables are held in a dictionary object, in the public interface of the SDK, called `customVariables`.
459443

460-
You can set custom variables using the public method
461-
```swift
462-
Usabilla.setCustomVariable(value: Any?, forKey: String)
463-
```
464-
465-
or by simply modifying the dictionary object
444+
You can set custom variables by simply modifying the dictionary object
466445

467446
```swift
468447
Usabilla.customVariables["key"] = "value"

SwiftPackageManager.MD

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Swift Package Manager for Usabilla
2+
3+
## Introduction
4+
5+
Starting with the 6.5.0 release, Usabilla supports installation via [Swift
6+
Package Manager](https://swift.org/package-manager/).
7+
8+
9+
## Limitations
10+
11+
- Requires Xcode 12.
12+
- iOS support is only available.
13+
14+
## Installation
15+
16+
If you've previously used CocoaPods, remove them from the project with `pod deintegrate`.
17+
18+
### In Xcode
19+
20+
Install Usabilla via Swift Package Manager:
21+
22+
<img width="720" alt="Install" src="https://user-images.githubusercontent.com/42991157/94566222-64735100-026a-11eb-9471-b95a52f2a68b.png">
23+
24+
Select the Usabilla GitHub repository - `https://github.com/usabilla/usabilla-u4a-ios-swift-sdk.git`:
25+
26+
<img width="720" alt="Select Repository" src="https://user-images.githubusercontent.com/42991157/94566514-b61bdb80-026a-11eb-8610-a38ef3a79e8a.png">
27+
28+
Select the version.
29+
30+
Note: Starting with the 6.5.0 release.
31+
32+
<img width="720" alt="Select Version" src="https://user-images.githubusercontent.com/42991157/94566638-dcda1200-026a-11eb-80ee-42e2f97f700a.png">
33+
34+
Choose the Usabilla product to be installed in your app.
35+
36+
<img width="720" alt="Select Usabilla" src="https://user-images.githubusercontent.com/42991157/94566811-14e15500-026b-11eb-8e42-00bd648f2623.png">
37+
38+
### Alternatively, add Usabilla to a `Package.swift` manifest
39+
40+
To integrate via a `Package.swift` manifest instead of Xcode, you can add
41+
Usabilla to your dependencies array of your package with:
42+
43+
```
44+
dependencies: [
45+
.package(name: "Usabilla",
46+
url: "https://github.com/usabilla/usabilla-u4a-ios-swift-sdk.git",
47+
from: "X.Y.Z")
48+
],
49+
```
50+
51+
Then in any target that depends on a Usabilla product, add it to the `dependencies`
52+
array of that target:
53+
54+
```
55+
.target(
56+
name: "YourProjectTarget",
57+
dependencies: [
58+
.product(name: "Usabilla", package: "Usabilla"),
59+
]
60+
),
61+
```

Usabilla.framework.dSYM/Contents/Info.plist

Lines changed: 0 additions & 20 deletions
This file was deleted.
Binary file not shown.

Usabilla.framework/Assets.car

-469 KB
Binary file not shown.

0 commit comments

Comments
 (0)