mirror of
https://github.com/RxReader/tencent_kit.git
synced 2025-07-15 03:02:09 +08:00
升级 Android SDK & 适配 Android Q 本地分享(targetSdkVersion >= 29,且不豁免外部存储沙箱限制)
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
## 1.0.3 - 2019.12.05
|
||||
|
||||
* 升级 Android SDK
|
||||
* 适配 Android Q 本地分享(targetSdkVersion >= 29,且不豁免外部存储沙箱限制)
|
||||
|
||||
## 1.0.2 - 2019.12.02
|
||||
|
||||
* 优化
|
||||
|
@ -1,5 +1,5 @@
|
||||
group 'io.github.v7lin.tencent_kit'
|
||||
version '1.0.2'
|
||||
version '1.0.3'
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
@ -25,6 +25,8 @@ apply from: './quality.gradle'
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
|
||||
resourcePrefix 'tencent_kit'
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 16
|
||||
|
||||
|
Binary file not shown.
@ -6,6 +6,7 @@
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
||||
<!--<uses-permission android:name="android.permission.WRITE_APN_SETTINGS"/>-->
|
||||
|
||||
<!-- 不建议使用 android:requestLegacyExternalStorage="true" 豁免 Android Q 的外部存储沙箱限制 -->
|
||||
<application android:usesCleartextTraffic="true">
|
||||
<uses-library
|
||||
android:name="org.apache.http.legacy"
|
||||
@ -27,8 +28,21 @@
|
||||
|
||||
<activity
|
||||
android:name="com.tencent.connect.common.AssistActivity"
|
||||
android:configChanges="orientation|keyboardHidden"
|
||||
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||
android:screenOrientation="behind"
|
||||
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
|
||||
|
||||
<!-- Android Q 的外部存储沙箱限制 -->
|
||||
<!-- 腾讯有毒吧,文档都不写 -->
|
||||
<provider
|
||||
android:name=".content.TencentKitFileProvider"
|
||||
android:authorities="com.tencent.tauth.fileprovider"
|
||||
android:exported="false"
|
||||
android:grantUriPermissions="true">
|
||||
|
||||
<meta-data
|
||||
android:name="android.support.FILE_PROVIDER_PATHS"
|
||||
android:resource="@xml/tencent_kit_file_paths" />
|
||||
</provider>
|
||||
</application>
|
||||
</manifest>
|
||||
|
@ -0,0 +1,6 @@
|
||||
package io.github.v7lin.tencent_kit.content;
|
||||
|
||||
import androidx.core.content.FileProvider;
|
||||
|
||||
public final class TencentKitFileProvider extends FileProvider {
|
||||
}
|
11
android/src/main/res/xml/tencent_kit_file_paths.xml
Normal file
11
android/src/main/res/xml/tencent_kit_file_paths.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--suppress AndroidDomInspection -->
|
||||
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<root-path name="root" path="" />
|
||||
<files-path name="files" path="" />
|
||||
<cache-path name="cache" path="" />
|
||||
<external-path name="external" path="" />
|
||||
<external-files-path name="external_files" path="" />
|
||||
<external-cache-path name="external_cache" path="" />
|
||||
<external-media-path name="external_media" path="" />
|
||||
</paths>
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'tencent_kit'
|
||||
s.version = '1.0.2'
|
||||
s.version = '1.0.3'
|
||||
s.summary = 'A powerful Flutter plugin allowing developers to share with natvie android & iOS Tencent SDKs.'
|
||||
s.description = <<-DESC
|
||||
A powerful Flutter plugin allowing developers to share with natvie android & iOS Tencent SDKs.
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: tencent_kit
|
||||
description: A powerful Flutter plugin allowing developers to share or authorize with natvie android & iOS Tencent SDKs.
|
||||
version: 1.0.2
|
||||
version: 1.0.3
|
||||
author: v7lin <v7lin@qq.com>
|
||||
homepage: https://github.com/v7lin/fake_tencent
|
||||
|
||||
|
Reference in New Issue
Block a user