v1.4.0 to v2.2.0
Runtime compatibility
Appfigurate app 2.2.0 is backwardly runtime compatible with apps and app extensions linked against Appfigurate library 1.4.0.
Source compatibility
Appfigurate 2.2.0 is mostly source compatible with 1.4.0. Some minor changes are required:
Info.plist changes
Remove the
APLInstallDelegateMethods
key/value pair if it exists. Appfigurate Library no longer supports swizzlingUIApplicationDelegate
orWKExtensionDelegate
. Instead you must programmatically callAPLApplicationDidFinishLaunchingWithOptions
,APLApplicationDidFinishLaunching
andAPLApplicationOpenURL
at the appropriate times.
Project changes
Appfigurate Library is now distributed as a single static XCFramework rather than separate
libAppfigurateLibrary.a
(iOS) andlibAppfigurateLibraryWatch.a
(watchOS) static libraries.Delete the old
libAppfigurateLibrary.a
and/orlibAppfigurateLibraryWatch.a
files from your project. Remove any search paths that pertain to Appfigurate under theApp target
‣Build Settings
‣Library Search Paths/Header Search Paths
.Add
AppfiguateLibrary.xcframework
to your project by dragging the.xcframework
bundle over the top of the project navigator into your projectsFrameworks
directory. You can also continue to use Swift Package Manager, Cocoapods or Carthage.
Appfigurate Library requires Swift to be linked to your target. If your Objective-C project doesn't currently have any Swift source files, you'll need to create at least one empty
.swift
file.
Objective-C changes
References to
#import "AppfigurateLibrary.h"
need to be changed to@import AppfigurateLibrary;
.The configuration property macros all contain an extra
restart
parameter. Therestart
parameter is after thedescription
parameter in every macro. If your configuration property requires an app restart after changing, set the value to YES.
SDK 1.4.0 examples (before)
SDK 2.2.0 examples (after)
Add an implementation of the C
APLConfigurationClass
function (prototype available inAppfigurate.h
header) to the bottom of yourAPLConfiguration
subclass:
Last updated