설치
Wepin Compose Multiplatform Widget SDK를 설치하는 방법을 설명합니다.
요구사항
설치하기
val commonMain by getting {
api("io.wepin:wepin-compose-sdk-widget-v1:0.0.4")
}설정하기
Deep Link 설정
Last updated
Was this helpful?
Wepin Compose Multiplatform Widget SDK를 설치하는 방법을 설명합니다.
val commonMain by getting {
api("io.wepin:wepin-compose-sdk-widget-v1:0.0.4")
}Last updated
Was this helpful?
Was this helpful?
//build.gradle.kt(shared)
plugins {
kotlin("native.cocoapods")
}
kotlin {
cocoapods {
summary = "Some description for a Kotlin/Native module"
homepage = "Link to a Kotlin/Native module homepage"
ios.deploymentTarget = "13.0"
version = "0.0.1"
pod("AppAuth") {
version = "~> 1.7.5"
}
pod("secp256k1") {
version = "~> 0.1.0"
}
pod("JFBCrypt") {
version = "~> 0.1"
}
}
}// Podfile
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
end// Deep Link 설정 => 리디렉션 스킴 형식: wepin. + Wepin 앱 ID
android.defaultConfig.manifestPlaceholders = [
'appAuthRedirectScheme': 'wepin.{{YOUR_WEPIN_APPID}}'
]AndroidManifest.xml
<activity
android:name="com.wepin.android.loginlib.RedirectUriReceiverActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="oauth2redirect"
android:scheme="${appAuthRedirectScheme}" />
</intent-filter>
</activity><key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>unique name</string>
<key>CFBundleURLSchemes</key>
<array>
<string>wepin.{{YOUR_WEPIN_APPID}}</string>
</array>
</dict>
</array>