Installation
This guide explains how to install the Wepin Compose Multiplatform Widget SDK.
Requirements
Android: API version 21 or higher
iOS: version 13.0 or higher
Update the
platform :iosversion to 13.0 in your Compose Multiplatform project'sios/Podfile, and verify and modify theios/Podfileas needed.
Installation
The Wepin Compose Multiplatform Login Library is published on Maven Central, and you can install it by adding the following dependency in your app's build.gradle.kt
Add to dependencies in
build.gradle.kt:
val commonMain by getting {
api("io.wepin:wepin-compose-sdk-widget-v1:0.0.2")
}iOS
You need to install iOS-dependent libraries using CocoaPods.
After adding the CocoaPods plugin to the
build.gradlefile and entering the information for theAppAuth,secp256k1, andJFBCryptlibraries, click "Sync Project with Gradle Files," and ashared.podspecfile will be generated.You should add a
Podfilein theiosAppfolder.In the
Podfile, make sure to set the minimum iOS version to 13.0.
Configuration
Deep Link Configuration
To enable OAuth login functionality (loginWithOauthProvider), you need to configure the Deep Link scheme.
Deep Link scheme format:
wepin.+Wepin App ID
Android
Add
manifestPlaceholdersto thebuild.gradle (app)file to easily capture all redirects using this custom scheme with the Wepin Widget SDK
iOS
Add the app’s URL scheme to the
Info.plistfile to redirect back to the app after the authentication process.
Last updated
Was this helpful?