From 97acd446278c420aa4ebff4a20859eed6eb2c400 Mon Sep 17 00:00:00 2001 From: marlonlu Date: Fri, 12 Jan 2018 20:10:45 +0800 Subject: [PATCH] Upgrade 2.0.0 release version to 3.0.0-alpha version --- sonic-android/README.md | 2 +- ...onic\346\216\245\345\205\245\346\214\207\345\274\225.md" | 2 +- sonic-android/sample/build.gradle | 4 ++-- sonic-android/sdk/build.gradle | 6 +++--- .../com/tencent/sonic/sdk/download/SonicDownloadEngine.java | 2 ++ sonic-iOS/README.md | 6 +++--- 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/sonic-android/README.md b/sonic-android/README.md index 4add7af..0bb3412 100644 --- a/sonic-android/README.md +++ b/sonic-android/README.md @@ -8,7 +8,7 @@ Add VasSonic gradle plugin as a dependency in your module's build.gradle ```gradle -compile 'com.tencent.sonic:sdk:2.0.0' +compile 'com.tencent.sonic:sdk:3.0.0-alpha' ``` ## Implement sonic interface: diff --git "a/sonic-android/docs/Sonic\346\216\245\345\205\245\346\214\207\345\274\225.md" "b/sonic-android/docs/Sonic\346\216\245\345\205\245\346\214\207\345\274\225.md" index 27abd8a..480824d 100644 --- "a/sonic-android/docs/Sonic\346\216\245\345\205\245\346\214\207\345\274\225.md" +++ "b/sonic-android/docs/Sonic\346\216\245\345\205\245\346\214\207\345\274\225.md" @@ -4,7 +4,7 @@ 在模块的build.gradle文件里面加入 ``` -compile 'com.tencent.sonic:sdk:2.0.0' +compile 'com.tencent.sonic:sdk:3.0.0-alpha' ``` ## 2.代码接入 diff --git a/sonic-android/sample/build.gradle b/sonic-android/sample/build.gradle index bca78e3..97f5402 100644 --- a/sonic-android/sample/build.gradle +++ b/sonic-android/sample/build.gradle @@ -26,10 +26,10 @@ dependencies { }) // compile sdk from jcenter -// compile 'com.tencent.sonic:sdk:2.0.0' + compile 'com.tencent.sonic:sdk:3.0.0-alpha' // compile sonic-sdk from local path - compile project(path: ':sdk') +// compile project(path: ':sdk') compile 'com.android.support:appcompat-v7:25.2.0' compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7' diff --git a/sonic-android/sdk/build.gradle b/sonic-android/sdk/build.gradle index 6214713..43ded2f 100644 --- a/sonic-android/sdk/build.gradle +++ b/sonic-android/sdk/build.gradle @@ -10,8 +10,8 @@ android { defaultConfig { minSdkVersion 9 targetSdkVersion 25 - versionCode 2 - versionName "2.0.0" + versionCode 3 + versionName "3.0.0-alpha" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } @@ -43,7 +43,7 @@ dependencies { // sdk info -version = "2.0.0-beta" // sdk version num +version = "3.0.0-alpha" // sdk version num group = "com.tencent.sonic" // maven group id for the artifact def SITE_URL = "https://github.com/Tencent/VasSonic" // web site url def GIT_URL = "https://github.com/Tencent/VasSonic.git" // git url diff --git a/sonic-android/sdk/src/main/java/com/tencent/sonic/sdk/download/SonicDownloadEngine.java b/sonic-android/sdk/src/main/java/com/tencent/sonic/sdk/download/SonicDownloadEngine.java index 0a638ee..74e7df9 100644 --- a/sonic-android/sdk/src/main/java/com/tencent/sonic/sdk/download/SonicDownloadEngine.java +++ b/sonic-android/sdk/src/main/java/com/tencent/sonic/sdk/download/SonicDownloadEngine.java @@ -218,6 +218,7 @@ public void run() { * When the webview initiates a sub resource interception, the client invokes this method to retrieve the data * * @param url The url of sub resource + * @param session current sonic session * @return Return the data to kernel */ public Object onRequestSubResource(String url, SonicSession session) { @@ -268,6 +269,7 @@ public Object onRequestSubResource(String url, SonicSession session) { /** * preload the sub resource in the "sonic-link" header. + * @param preloadLinks The links which need to be preloaded. */ public void addSubResourcePreloadTask(List preloadLinks) { diff --git a/sonic-iOS/README.md b/sonic-iOS/README.md index 142d29a..b03dee8 100644 --- a/sonic-iOS/README.md +++ b/sonic-iOS/README.md @@ -4,7 +4,7 @@ [![wiki](https://img.shields.io/badge/Wiki-open-brightgreen.svg)](https://github.com/Tencent/VasSonic/wiki) --- -### 2.0.0 support! +### 3.0.0-alpha support! To integrate VasSonic into your Xcode project using CocoaPods, specify it in your Podfile: ```lua @@ -12,7 +12,7 @@ source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' target 'TargetName' do - pod 'VasSonic', '2.0.0' + pod 'VasSonic', '3.0.0-alpha' end ``` @@ -24,7 +24,7 @@ source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' target 'TargetName' do - pod 'VasSonic', '2.0.0' + pod 'VasSonic', '3.0.0-alpha' end ```