adobe/aepsdk-edgeconsent-ios
The AEP Consent Collection mobile extension enables consent preferences collection from the mobile application when using the Adobe Experience Platform SDK and the Edge Network extension.
About this project
The AEP Consent Collection mobile extension enables consent preferences collection from the mobile application when using the Adobe Experience Platform SDK and the Edge Network extension.
Requirements
- Xcode 15 (or newer)
- Swift 5.1 (or newer)
Installation
These are currently the supported installation options:
CocoaPods
# Podfile
use_frameworks!
# for app development, include all the following pods
target 'YOUR_TARGET_NAME' do
pod 'AEPEdgeConsent'
pod 'AEPCore'
pod 'AEPEdge'
pod 'AEPEdgeIdentity'
end
# for extension development, include AEPCore, AEPEdgeConsent, and their dependencies
target 'YOUR_TARGET_NAME' do
pod 'AEPEdgeConsent'
pod 'AEPCore'
endReplace YOUR_TARGET_NAME and then, in the Podfile directory, type:
$ pod installSwift Package Manager
To add the AEPEdgeConsent Package to your application, from the Xcode menu select:
File > Add Packages...
Note The menu options may vary depending on the version of Xcode being used.
Enter the URL for the AEPEdgeConsent package repository: https://github.com/adobe/aepsdk-edgeconsent-ios.git.
When prompted, make sure you change the branch to main. (Once the repo is public, we will reference specific tags/versions instead of a branch)
Alternatively, if your project has a Package.swift file, you can add AEPEdgeConsent directly to your dependencies:
dependencies: [
.package(url: "https://github.com/adobe/aepsdk-edgeconsent-ios.git", .upToNextMajor(from: "5.0.0"))
],
targets: [
.target(name: "YourTarget",
dependencies: ["AEPEdgeConsent"],
path: "your/path")
]Binaries
To generate an AEPEdgeConsent.xcframework, run the following command:
$ make archiveThis generates the xcframework under the build folder. Drag and drop all the .xcframeworks to your app target in Xcode.
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-installSubsequently, you can make sure your environment is updated by running the following:
make pod-updateOpen the Xcode workspace
Open the workspace in Xcode by running the following command from the root directory of the repository:
make openCommand line integration
You can run all the test suites from command line:
make testContributing
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.
Package Metadata
Repository: adobe/aepsdk-edgeconsent-ios
Default branch: main
README: README.md