Skip to content

Commit 3a8c652

Browse files
authored
Merge pull request #19 from alibaba/fix/h5-auth
fix:h5 auth auto_login
2 parents a74998b + 1271829 commit 3a8c652

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This is the open-source SDK for Aliyunpan-Android OpenAPI.
1111

1212
```
1313
dependencies {
14-
implementation 'com.github.alibaba:aliyunpan-android-sdk:v0.2.1'
14+
implementation 'com.github.alibaba:aliyunpan-android-sdk:v0.2.2'
1515
}
1616
```
1717

app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ android {
6666

6767
dependencies {
6868
implementation project(":opensdk")
69-
// implementation 'com.github.alibaba:aliyunpan-android-sdk:v0.1.9'
69+
// implementation 'com.github.alibaba:aliyunpan-android-sdk:v0.2.2'
7070
implementation "com.squareup.okhttp3:okhttp:4.11.0"
7171
implementation 'com.github.bumptech.glide:glide:4.14.2'
7272

app/src/callback/java/com/alicloud/databox/demo/AliyunpanApp.kt

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ object AliyunpanApp {
1616
val config = AliyunpanClientConfig.Builder(context, BuildConfig.APP_ID)
1717
// 云盘上传文件 需要写权限
1818
.appendScope(AliyunpanClientConfig.SCOPE_FILE_WRITE)
19+
.autoLogin()
1920
.downFolder(
2021
File(
2122
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),

opensdk/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ android {
1919

2020
consumerProguardFiles "consumer-rules.pro"
2121

22-
buildConfigField 'String', 'VERSION', '"' + localProperties.getProperty('sdk_version', "0.0.0") + '"'
22+
buildConfigField 'String', 'VERSION', '"' + localProperties.getProperty('sdk_version', "0.2.2") + '"'
2323
buildConfigField 'String', 'BASE_URL', '"' + localProperties.getProperty('app_url', "openapi.alipan.com") + '"'
2424
}
2525

opensdk/src/main/java/com/alicloud/databox/opensdk/AliyunpanClient.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class AliyunpanClient private constructor(private val config: AliyunpanClientCon
123123

124124
val requestQuery = mutableMapOf("source" to if (installApp) "app" else "appLink")
125125

126-
if (installApp && config.autoLogin) {
126+
if (!installApp && config.autoLogin) {
127127
requestQuery["auto_login"] = "true"
128128
}
129129

0 commit comments

Comments
 (0)