- Use Xcode 14 or higher
- Target iOS SDK level 13 or higher
- Use Rakuten IDSDK or Use built-in Login
Version | Minimum OS | Compile OS |
---|---|---|
1.0.0 | 9 | 13 |
1.1.0 | 9 | 13 |
1.0.2 | 9 | 13 |
1.0.3 | 9 | 13 |
1.0.4 | 9 | 14 |
2.0.0 | 9 | 14 |
2.1.0 | 9 | 14 |
2.1.1 | 9 | 14 |
2.2.0 | 9 | 14 |
2.2.1 | 9 | 14 |
2.3.0 | 9 | 14 |
2.3.1 | 9 | 14 |
3.0.0 | 9 | 15 |
3.0.1 | 9 | 15 |
3.0.2 | 9 | 15 |
3.1.0 | 9 | 15 |
3.2.0 | 9 | 15 |
3.3.0 | 11 | 15 |
3.3.1 | 11 | 15 |
3.3.2 | 11 | 15 |
3.4.0 | 11 | 15 |
3.4.1 | 11 | 15 |
3.4.2 | 11 | 15 |
3.4.3 | 11 | 15 |
3.4.4 | 11 | 15 |
3.4.5 | 11 | 15 |
3.5.0 | 11 | 15 |
3.5.1 | 11 | 15 |
3.5.2 | 11 | 15 |
3.6.0 | 11 | 15 |
3.6.1 | 11 | 15 |
4.0.0 | 11 | 16 |
4.1.0 | 11 | 16 |
5.0.0 | 11 | 16 |
5.1.0 | 11 | 16 |
6.0.0 | 11 | 17 |
6.1.0 | 11 | 17 |
6.2.0 | 12 | 17 |
6.3.0 | 12 | 17 |
6.4.0 | 12 | 17 |
7.0.0 | 13 | 17 |
7.1.0 | 13 | 17 |
7.2.0 | 13 | 17 |
8.0.0 | 13 | 18 |
8.1.0 | 13 | 18 |
8.2.0 | 13 | 18 |
- M1 (arm64 simulator arch) is supported starting from version 3.4.3
Import Framework (RakutenRewardNativeSDK-{version}.framework) into your project
Please choose "Embed and sign" and disable bitcode
For using traditional universal framework .framework , please include the following script at the end of Build phase
# This script loops through the SDK embedded in the application and removes simulator's architectures.
# Output environment variables
env > env.txt
# SDK search path for project source directory
APP_PATH_SRC="${PROJECT_DIR}"
# SDK search path for build destination directory
APP_PATH_DST="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
echo "APP_PATH_SRC: $APP_PATH_SRC"
echo "APP_PATH_DST: $APP_PATH_DST"
# Search SDK from destination path first. If not found, search from source path.
find "$APP_PATH_DST" "$APP_PATH_SRC" -name 'RakutenRewardNativeSDK.framework' -type d | while read -r FRAMEWORK
do
echo "FRAMEWORK: $FRAMEWORK"
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable)
FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME"
echo "Executable is $FRAMEWORK_EXECUTABLE_PATH"
EXTRACTED_ARCHS=()
for ARCH in $ARCHS
do
echo "Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME"
lipo -extract "$ARCH" "$FRAMEWORK_EXECUTABLE_PATH" -o "$FRAMEWORK_EXECUTABLE_PATH-$ARCH"
EXTRACTED_ARCHS+=("$FRAMEWORK_EXECUTABLE_PATH-$ARCH")
done
echo "Merging extracted architectures: ${ARCHS}"
lipo -o "$FRAMEWORK_EXECUTABLE_PATH-merged" -create "${EXTRACTED_ARCHS[@]}"
rm "${EXTRACTED_ARCHS[@]}"
echo "Replacing original executable with thinned version"
rm "$FRAMEWORK_EXECUTABLE_PATH"
mv "$FRAMEWORK_EXECUTABLE_PATH-merged" "$FRAMEWORK_EXECUTABLE_PATH"
# If SDK was found in the first loop (destination path), no need to proceed to next loop.
break
done
Import Framework (RakutenRewardNativeSDK-{version}.xcframework) into your project
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/rakuten-ads/Rakuten-Reward-Native-iOS.git'
target '' do
pod 'RakutenRewardNativeSDK', '8.2.0'
end
Add the dependency value below
dependencies: [
.package(url: "https://github.com/rakuten-ads/Rakuten-Reward-Native-iOS-SPM", .exact("8.2.0")),
]
Open your project's Cartfile and add Reward Native SDK dependency
binary "https://raw.githubusercontent.com/rakuten-ads/Rakuten-Reward-Native-iOS/master/CarthageSpec.json" == 8.2.0
Then run carthage update with XCFramework to download Reward Native SDK
carthage update --platform ios --use-xcframeworks
Open your app's project or workspace
Drag the binaries from Carthage/Build into the Frameworks, Libraries, and Embedded Content section of your target
Basic Guide
API Reference
User Consent
SPS
Migration From version 1
FAQ
Basic Guide (Objective-c)
API Reference (Objective-c)
FAQ (Objective-c)
LANGUAGE :
OPEN SOURCE:
KeychainSwiftWrapper
This product includes software developed by the "Marcin Krzyzanowski" (http://krzyzanowskim.com/).