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 :ios
version to 13.0 in your Compose Multiplatform project'sios/Podfile
, and verify and modify theios/Podfile
as needed.
This package is only available for Android and iOS environments. It is not supported on Web, macOS, Windows, or Linux environments.
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
:
iOS
You need to install iOS-dependent libraries using CocoaPods.
After adding the CocoaPods plugin to the
build.gradle
file and entering the information for theAppAuth
,secp256k1
, andJFBCrypt
libraries, click "Sync Project with Gradle Files," and ashared.podspec
file will be generated.You should add a
Podfile
in theiosApp
folder.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
manifestPlaceholders
to 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.plist
file to redirect back to the app after the authentication process.
Last updated