升级 Android SDK & 适配 Android Q 本地分享(targetSdkVersion >= 29,且不豁免外部存储沙箱限制)

This commit is contained in:
v7lin
2019-12-05 12:11:55 +08:00
parent 9a33b3520d
commit b65b2be51d
8 changed files with 42 additions and 4 deletions

View File

@ -1,3 +1,8 @@
## 1.0.3 - 2019.12.05
* Android SDK
* Android Q targetSdkVersion >= 29
## 1.0.2 - 2019.12.02
*

View File

@ -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

View File

@ -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>

View File

@ -0,0 +1,6 @@
package io.github.v7lin.tencent_kit.content;
import androidx.core.content.FileProvider;
public final class TencentKitFileProvider extends FileProvider {
}

View 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>

View File

@ -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.

View File

@ -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