Skip to content

Commit fb53789

Browse files
authored
Merge pull request #290 from apptentive/branch_5.3.1
Release 5.3.1
2 parents 3a5e3b7 + 699c545 commit fb53789

File tree

11 files changed

+42
-39
lines changed

11 files changed

+42
-39
lines changed

Apptentive/Apptentive/Apptentive.h Apptentive/Apptentive.h

-5
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@
99
#ifndef Apptentive_h
1010
#define Apptentive_h
1111

12-
#ifdef NO_USE_FRAMEWORKS
13-
#import <ApptentiveMain.h>
14-
#import <ApptentiveStyleSheet.h>
15-
#else
1612
#import <Apptentive/ApptentiveMain.h>
1713
#import <Apptentive/ApptentiveStyleSheet.h>
18-
#endif
1914

2015
#endif /* Apptentive_h */

Apptentive/Apptentive.modulemap

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
framework module Apptentive {
2+
umbrella header "Apptentive.h"
3+
4+
export *
5+
module * { export * }
6+
}

Apptentive/Apptentive.xcodeproj/project.pbxproj

+10-8
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
01201AD31FC637BE00EB3593 /* CodePointAndInteractionTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 01201AD21FC637BD00EB3593 /* CodePointAndInteractionTests.m */; };
2121
01216C501EBBB53E0062BD0D /* RequestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01216C4F1EBBB53E0062BD0D /* RequestTests.swift */; };
2222
0123005F20531698000EC3C3 /* ClauseTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 0123005E20531698000EC3C3 /* ClauseTests.m */; };
23-
012B96C325118349008A56CC /* Apptentive.h in Headers */ = {isa = PBXBuildFile; fileRef = 012B96C22511832D008A56CC /* Apptentive.h */; };
23+
012B96C325118349008A56CC /* Apptentive.h in Headers */ = {isa = PBXBuildFile; fileRef = 012B96C22511832D008A56CC /* Apptentive.h */; settings = {ATTRIBUTES = (Public, ); }; };
2424
012ED9292072F33F003D87F3 /* ApptentiveRetryPolicy.h in Headers */ = {isa = PBXBuildFile; fileRef = 012ED9272072F33F003D87F3 /* ApptentiveRetryPolicy.h */; };
2525
012ED92A2072F33F003D87F3 /* ApptentiveRetryPolicy.m in Sources */ = {isa = PBXBuildFile; fileRef = 012ED9282072F33F003D87F3 /* ApptentiveRetryPolicy.m */; };
2626
012ED92C2072FABE003D87F3 /* RetryPolicyTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 012ED92B2072FABE003D87F3 /* RetryPolicyTests.swift */; };
@@ -840,6 +840,7 @@
840840
01B9055A2411C83600E2A663 /* ApptentiveArchiver.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ApptentiveArchiver.m; sourceTree = "<group>"; };
841841
01B9057C2416C52B00E2A663 /* ApptentiveURLOpener.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ApptentiveURLOpener.h; sourceTree = "<group>"; };
842842
01B9057D2416C52B00E2A663 /* ApptentiveURLOpener.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ApptentiveURLOpener.m; sourceTree = "<group>"; };
843+
01BEA06D2511E97500DF982D /* Apptentive.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = Apptentive.modulemap; sourceTree = "<group>"; };
843844
01E04F9C1E819CD300D7E849 /* ApptentiveMessageManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ApptentiveMessageManager.h; sourceTree = "<group>"; };
844845
01E04F9D1E819CD300D7E849 /* ApptentiveMessageManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ApptentiveMessageManager.m; sourceTree = "<group>"; };
845846
01E8E2341E6E096D00786738 /* ApptentiveInteractionAppleRatingDialogController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ApptentiveInteractionAppleRatingDialogController.h; sourceTree = "<group>"; };
@@ -999,6 +1000,8 @@
9991000
01A2CF871E49062700C2103A = {
10001001
isa = PBXGroup;
10011002
children = (
1003+
01BEA06D2511E97500DF982D /* Apptentive.modulemap */,
1004+
012B96C22511832D008A56CC /* Apptentive.h */,
10021005
01A2CF931E49062700C2103A /* Apptentive */,
10031006
01A2CF9E1E49062800C2103A /* ApptentiveTests */,
10041007
01A2CF921E49062700C2103A /* Products */,
@@ -1018,7 +1021,6 @@
10181021
01A2CF931E49062700C2103A /* Apptentive */ = {
10191022
isa = PBXGroup;
10201023
children = (
1021-
012B96C22511832D008A56CC /* Apptentive.h */,
10221024
0168B1AC24AAAFD1006EEF65 /* DebugLogging.cer */,
10231025
EF3FE88720A226EE00A3C9C5 /* Apptimize */,
10241026
01A2CFB01E490A9700C2103A /* Custom Views */,
@@ -2386,7 +2388,6 @@
23862388
01A2CFA31E49062800C2103A /* Debug */ = {
23872389
isa = XCBuildConfiguration;
23882390
buildSettings = {
2389-
ALWAYS_SEARCH_USER_PATHS = NO;
23902391
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
23912392
CLANG_ANALYZER_NONNULL = YES;
23922393
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
@@ -2416,7 +2417,7 @@
24162417
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
24172418
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
24182419
COPY_PHASE_STRIP = NO;
2419-
CURRENT_PROJECT_VERSION = 45;
2420+
CURRENT_PROJECT_VERSION = 46;
24202421
DEBUG_INFORMATION_FORMAT = dwarf;
24212422
ENABLE_STRICT_OBJC_MSGSEND = YES;
24222423
ENABLE_TESTABILITY = YES;
@@ -2445,7 +2446,6 @@
24452446
01A2CFA41E49062800C2103A /* Release */ = {
24462447
isa = XCBuildConfiguration;
24472448
buildSettings = {
2448-
ALWAYS_SEARCH_USER_PATHS = NO;
24492449
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
24502450
CLANG_ANALYZER_NONNULL = YES;
24512451
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
@@ -2475,7 +2475,7 @@
24752475
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
24762476
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
24772477
COPY_PHASE_STRIP = NO;
2478-
CURRENT_PROJECT_VERSION = 45;
2478+
CURRENT_PROJECT_VERSION = 46;
24792479
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
24802480
ENABLE_NS_ASSERTIONS = NO;
24812481
ENABLE_STRICT_OBJC_MSGSEND = YES;
@@ -2507,13 +2507,14 @@
25072507
DEFINES_MODULE = YES;
25082508
DEVELOPMENT_TEAM = 86WML2UN43;
25092509
DYLIB_COMPATIBILITY_VERSION = 1;
2510-
DYLIB_CURRENT_VERSION = 45;
2510+
DYLIB_CURRENT_VERSION = 46;
25112511
DYLIB_INSTALL_NAME_BASE = "@rpath";
25122512
GCC_PREFIX_HEADER = "Apptentive/Misc/ApptentiveConnect-Prefix.pch";
25132513
GCC_PREPROCESSOR_DEFINITIONS = "APPTENTIVE_DEBUG=1";
25142514
INFOPLIST_FILE = Apptentive/Info.plist;
25152515
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
25162516
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
2517+
MODULEMAP_FILE = $SRCROOT/Apptentive.modulemap;
25172518
PRODUCT_BUNDLE_IDENTIFIER = com.apptentive.Apptentive;
25182519
PRODUCT_NAME = "$(TARGET_NAME)";
25192520
SKIP_INSTALL = YES;
@@ -2527,12 +2528,13 @@
25272528
DEFINES_MODULE = YES;
25282529
DEVELOPMENT_TEAM = 86WML2UN43;
25292530
DYLIB_COMPATIBILITY_VERSION = 1;
2530-
DYLIB_CURRENT_VERSION = 45;
2531+
DYLIB_CURRENT_VERSION = 46;
25312532
DYLIB_INSTALL_NAME_BASE = "@rpath";
25322533
GCC_PREFIX_HEADER = "Apptentive/Misc/ApptentiveConnect-Prefix.pch";
25332534
INFOPLIST_FILE = Apptentive/Info.plist;
25342535
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
25352536
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
2537+
MODULEMAP_FILE = $SRCROOT/Apptentive.modulemap;
25362538
PRODUCT_BUNDLE_IDENTIFIER = com.apptentive.Apptentive;
25372539
PRODUCT_NAME = "$(TARGET_NAME)";
25382540
SKIP_INSTALL = YES;

Apptentive/Apptentive/ApptentiveMain.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ FOUNDATION_EXPORT double ApptentiveVersionNumber;
2020
FOUNDATION_EXPORT const unsigned char ApptentiveVersionString[];
2121

2222
/** The version number of the Apptentive SDK. */
23-
#define kApptentiveVersionString @"5.3.0"
23+
#define kApptentiveVersionString @"5.3.1"
2424

2525
/** The version number of the Apptentive API platform. */
2626
#define kApptentiveAPIVersionString @"9"

Apptentive/Apptentive/ApptentiveStyleSheet.h

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// Copyright © 2016 Apptentive, Inc. All rights reserved.
77
//
88

9-
#import "Apptentive.h"
109
#import <UIKit/UIKit.h>
1110

1211
NS_ASSUME_NONNULL_BEGIN

Apptentive/Apptentive/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>5.3.0</string>
18+
<string>5.3.1</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

Apptentive/ApptentiveTests/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>5.3.0</string>
18+
<string>5.3.1</string>
1919
<key>CFBundleVersion</key>
2020
<string>1</string>
2121
</dict>

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# 2020-09-16 - v5.3.1
2+
3+
#### Improvements
4+
5+
* SDK framework now ships as an xcframework that includes simulator and device architectures
6+
* SDK framework now includes a module map for easier imports
7+
8+
#### Bugs Fixed
9+
10+
* Fix issue with framework header imports
11+
112
# 2020-09-15 - v5.3.0
213

314
Version 5.3 adds support for iOS 14 and drops support for iOS versions prior to 10.3.

Example/Podfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- apptentive-ios (5.3.0)
2+
- apptentive-ios (5.3.1)
33

44
DEPENDENCIES:
55
- apptentive-ios (from `..`)
@@ -9,7 +9,7 @@ EXTERNAL SOURCES:
99
:path: ".."
1010

1111
SPEC CHECKSUMS:
12-
apptentive-ios: 9f78b6a860afc3a64ff992bfa7a7a19897eb099b
12+
apptentive-ios: 94a2e90b4759051a3b73e6e2ae85f16361e20b9c
1313

1414
PODFILE CHECKSUM: 785a9d76c0ca2535819b754c6fe8c5c6413dbc30
1515

apptentive-ios.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = 'apptentive-ios'
33
s.module_name = 'Apptentive'
4-
s.version = '5.3.0'
4+
s.version = '5.3.1'
55
s.license = 'BSD'
66
s.summary = 'Apptentive Customer Communications SDK.'
77
s.homepage = 'https://www.apptentive.com/'
@@ -22,5 +22,5 @@ Pod::Spec.new do |s|
2222
s.prefix_header_contents = '#import "ApptentiveLog.h"', '#import "ApptentiveAssert.h"', '#import "ApptentiveSafeCollections.h"'
2323
s.pod_target_xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS[config=Debug]" => "APPTENTIVE_DEBUG=1 APPTENTIVE_COCOAPODS=1",
2424
"GCC_PREPROCESSOR_DEFINITIONS[config=Release]" => "APPTENTIVE_COCOAPODS=1" }
25-
s.public_header_files = 'Apptentive/Apptentive/Apptentive.h', 'Apptentive/Apptentive/ApptentiveMain.h', 'Apptentive/Apptentive/ApptentiveStyleSheet.h'
25+
s.public_header_files = 'Apptentive/Apptentive/ApptentiveMain.h', 'Apptentive/Apptentive/ApptentiveStyleSheet.h'
2626
end

etc/bin/build_framework.sh

+8-18
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,19 @@ BUILD_DIR="/tmp/apptentive_framework_build"
1515
PROJECT_DIR="Apptentive"
1616
OUTPUT_DIR="${BUILD_DIR}/${FRAMEWORK_NAME}-${CONFIGURATION}-iphoneuniversal/"
1717

18-
SIMULATOR_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.framework"
18+
SIMULATOR_ARCHIVE_PATH="${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.xcarchive"
1919

20-
DEVICE_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphoneos/${FRAMEWORK_NAME}.framework"
20+
DEVICE_ARCHIVE_PATH="${BUILD_DIR}/${CONFIGURATION}-iphoneos/${FRAMEWORK_NAME}.xcarchive"
2121

2222
UNIVERSAL_LIBRARY_DIR="${BUILD_DIR}/${CONFIGURATION}-iphoneuniversal"
2323

24-
FRAMEWORK="${UNIVERSAL_LIBRARY_DIR}/${FRAMEWORK_NAME}.framework"
25-
2624
######################
2725
# Build Frameworks
2826
######################
2927

30-
xcodebuild -project ${PROJECT_DIR}/${PROJECT_NAME}.xcodeproj -scheme ${FRAMEWORK_NAME} -sdk iphonesimulator -configuration ${CONFIGURATION} clean build CONFIGURATION_BUILD_DIR=${BUILD_DIR}/${CONFIGURATION}-iphonesimulator ENABLE_BITCODE=YES OTHER_CFLAGS='-fembed-bitcode' GCC_PREPROCESSOR_DEFINITIONS='APPTENTIVE_FRAMEWORK=1' 2>&1
28+
xcodebuild archive -project ${PROJECT_DIR}/${PROJECT_NAME}.xcodeproj -scheme ${FRAMEWORK_NAME} -destination="iOS Simulator" -archivePath "${SIMULATOR_ARCHIVE_PATH}" -sdk iphonesimulator SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
3129

32-
xcodebuild -project ${PROJECT_DIR}/${PROJECT_NAME}.xcodeproj -scheme ${FRAMEWORK_NAME} -sdk iphoneos -configuration ${CONFIGURATION} clean archive CONFIGURATION_BUILD_DIR=${BUILD_DIR}/${CONFIGURATION}-iphoneos ENABLE_BITCODE=YES OTHER_CFLAGS='-fembed-bitcode' GCC_PREPROCESSOR_DEFINITIONS='APPTENTIVE_FRAMEWORK=1' 2>&1
30+
xcodebuild archive -project ${PROJECT_DIR}/${PROJECT_NAME}.xcodeproj -scheme ${FRAMEWORK_NAME} -destination="iOS" -archivePath "${DEVICE_ARCHIVE_PATH}" -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
3331

3432
######################
3533
# Create directory for universal
@@ -39,19 +37,11 @@ rm -rf "${UNIVERSAL_LIBRARY_DIR}"
3937

4038
mkdir "${UNIVERSAL_LIBRARY_DIR}"
4139

42-
mkdir "${FRAMEWORK}"
43-
44-
######################
45-
# Copy files Framework
46-
######################
47-
48-
cp -r "${DEVICE_LIBRARY_PATH}/." "${FRAMEWORK}"
49-
5040
######################
51-
# Make an universal binary
41+
# Make an xcframework
5242
######################
5343

54-
lipo "${SIMULATOR_LIBRARY_PATH}/${FRAMEWORK_NAME}" "${DEVICE_LIBRARY_PATH}/${FRAMEWORK_NAME}" -create -output "${FRAMEWORK}/${FRAMEWORK_NAME}" | echo
44+
xcodebuild -create-xcframework -framework "${SIMULATOR_ARCHIVE_PATH}/Products/Library/Frameworks/${FRAMEWORK_NAME}.framework" -framework "${DEVICE_ARCHIVE_PATH}/Products/Library/Frameworks/${FRAMEWORK_NAME}.framework" -output "${UNIVERSAL_LIBRARY_DIR}/${FRAMEWORK_NAME}.xcframework" | echo
5545

5646
######################
5747
# On Release, copy the result to release directory
@@ -60,12 +50,12 @@ lipo "${SIMULATOR_LIBRARY_PATH}/${FRAMEWORK_NAME}" "${DEVICE_LIBRARY_PATH}/${FRA
6050
rm -rf "$OUTPUT_DIR"
6151
mkdir -p "$OUTPUT_DIR"
6252

63-
cp -r "${FRAMEWORK}" "$OUTPUT_DIR"
53+
cp -r "${UNIVERSAL_LIBRARY_DIR}/${FRAMEWORK_NAME}.xcframework" "$OUTPUT_DIR"
6454
cp "$PROJECT_DIR/../LICENSE.TXT" "$OUTPUT_DIR"
6555
cp "$PROJECT_DIR/../README.md" "$OUTPUT_DIR"
6656
cp "$PROJECT_DIR/../CHANGELOG.md" "$OUTPUT_DIR"
6757

68-
VERSION=`cat Apptentive/Apptentive/Apptentive.h | sed -n -e 's/#define kApptentiveVersionString @"\([^"]*\)"/\1/p'`
58+
VERSION=`cat Apptentive/Apptentive/ApptentiveMain.h | sed -n -e 's/#define kApptentiveVersionString @"\([^"]*\)"/\1/p'`
6959

7060
pushd "$OUTPUT_DIR"
7161
tar -zcv -f "../apptentive_ios_framework-$VERSION.tar.gz" .

0 commit comments

Comments
 (0)