Installation
This guide explains how to install the Wepin Compose Multiplatform Login Library.
Last updated
Was this helpful?
This guide explains how to install the Wepin Compose Multiplatform Login Library.
Last updated
Was this helpful?
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's ios/Podfile
, and verify and modify the ios/Podfile
as needed.
If you want to use OAuth login functionality (e.g., loginWithOauthProvider), you need to set up OAuth login providers. To do this, you must first register your OAuth login provider information in the Navigate to the Login tap under the Developer Tools menu, click the App or Set Login Provider button in the Login Provider section, and complete the registration.
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 the AppAuth
, secp256k1
, and JFBCrypt
libraries, click "Sync Project with Gradle Files," and a shared.podspec
file will be generated.
You should add a Podfile
in the iosApp
folder.
In the Podfile
, make sure to set the minimum iOS version to 13.0.
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 the build.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.