Swiftpack.co - adobe/aepsdk-target-ios as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by adobe.
adobe/aepsdk-target-ios 3.2.0
Adobe Experience Platform - Target extension built with Swift
⭐️ 0
🕓 9 weeks ago
iOS
.package(url: "https://github.com/adobe/aepsdk-target-ios.git", from: "3.2.0")

AEPTarget

SPM Target-CI Code Coverage

About this project

The AEPTarget helps test, personalize, and optimize mobile app experiences based on user behavior and mobile context. You can deliver interactions that engage and convert through iterative testing and rules-based and AI-powered personalization.

Requirements

  • Xcode 11.0 (or newer)
  • Swift 5.1 (or newer)

Installation

CocoaPods

# Podfile
use_frameworks!

# for app development, include all the following pods
target 'YOUR_TARGET_NAME' do
    pod 'AEPTarget'
    pod 'AEPCore'
end

Swift Package Manager

To add the AEPTarget Package to your application, from the Xcode menu select:

File > Swift Packages > Add Package Dependency...

Enter the URL for the AEPTarget package repository: https://github.com/adobe/aepsdk-target-ios.git.

When prompted, specify the Version rule using a specific version range or an exact version.

Alternatively, if your project has a Package.swift file, you can add AEPTarget directly to your dependencies:

dependencies: [
    .package(url: "https://github.com/adobe/aepsdk-target-ios.git", .upToNextMajor(from: "3.3.0")),
],
targets: [
    .target(name: "YourTarget",
            dependencies: ["AEPTarget"],
	    path: "your/path")
]

Binaries

Run the following command, from the project root directory, to generate the AEPTarget.xcframework in the build directory. But, first run make pod-install command to ensure the dependencies are installed.

make archive

Development

The first time you clone or download the project, you should run the following from the root directory to setup the environment:

make pod-install

Subsequently, you can make sure your environment is updated by running the following:

make pod-update

Open the Xcode workspace

Open the workspace in Xcode by running the following command from the root directory of the repository:

make open

Command line integration

You can run all the test suites from command line:

make test

Documentation

Additional documentation for API usage can be found under the Documentation directory.

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.

GitHub

link
Stars: 0
Last commit: 5 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Dependencies

Release Notes

v3.2.0
9 weeks ago

Release Notes

Summary

Added getter and setter APIs for Target tnt ID and Target session ID to enable cross-channel sessions. (#118) @swarna04

  • The setSessionId API should be invoked prior to any Target request to prevent the Mobile SDK from generating a session ID locally. The session ID will follow the session expiry as governed by the target.sessionTimeout configuration setting. You can use this API in conjunction with setTntId API to set both of the value in the SDK.

  • The setTntId API, when invoked, also sets the Target edge host value in the SDK by deriving it from the profile location hint supplied in the tnt ID.

  • The getSessionId and getTntId APIs can be used to retrieve the current Target session ID and tnt ID values respectively.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics