Skip to content

Commit

Permalink
Merge pull request #151 from lovekidan/dev
Browse files Browse the repository at this point in the history
fix code style
  • Loading branch information
vasdeveloper authored Nov 6, 2017
2 parents 6936720 + 1ad7f39 commit 865e16a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion sonic-android/sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies {
})

// compile sdk from jcenter
compile 'com.tencent.sonic:sdk:2.0.0'
compile 'com.tencent.sonic:sdk:2.0.0-alpha'

// compile sonic-sdk from local path
// compile project(path: ':sdk')
Expand Down
6 changes: 3 additions & 3 deletions sonic-android/sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion 9
targetSdkVersion 25
versionCode 1
versionName "2.0.0"
versionCode 2
versionName "2.0.0-alpha"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand All @@ -36,7 +36,7 @@ dependencies {


// sdk info
version = "2.0.0" // sdk version num
version = "2.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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ public void disconnect() {
* return response headers which contains response headers from server and custom response headers from
* {@code com.tencent.sonic.sdk.SonicSessionConfig}
* note: server response headers have high priority than custom headers!
* @return a Map of header fields
*/
public Map<String, List<String>> getResponseHeaderFields() {
if (null == cachedResponseHeaders) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ protected void handleFlow_Connection(String cacheHtml) {

/**
* Handle template update {@link SonicSession#SONIC_RESULT_CODE_TEMPLATE_CHANGE} logic.
* @param newHtml new Html string from web-server
*/
protected abstract void handleFlow_TemplateChange(String newHtml);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,29 +119,29 @@ public abstract class SonicSessionConnection {
public final static String HTTP_HEAD_FILED_SET_COOKIE = "Set-Cookie";

/**
* HTTP Header : Cache-Control. <br/>
* HTTP Header : Cache-Control. <br>
* This header represents the strategy of cache control.
*/
public final static String HTTP_HEAD_FIELD_CACHE_CONTROL = "Cache-Control";

/**
* HTTP Header : Expires. <br/>
* HTTP Header : Expires. <br>
*/
public final static String HTTP_HEAD_FIELD_EXPIRES = "Expires";

/**
* HTTP 1.0 Header : Pragma. <br/>
* HTTP 1.0 Header : Pragma. <br>
* This old header represents the old strategy of cache control.
*/
public final static String HTTP_HEAD_FIELD_PRAGMA = "Pragma"; //1.0

/**
* HTTP Header : Content-Type. </br>
* HTTP Header : Content-Type. <br>
*/
public final static String HTTP_HEAD_FIELD_CONTENT_TYPE = "Content-Type";

/**
* HTTP Request Header : Cookie. </br>
* HTTP Request Header : Cookie. <br>
*/
public final static String HTTP_HEAD_FIELD_COOKIE = "Cookie";

Expand Down

0 comments on commit 865e16a

Please sign in to comment.