From d3e5ebc6ca8170f97e420f2f482680c8e149b471 Mon Sep 17 00:00:00 2001 From: duwen Date: Mon, 5 Feb 2018 18:39:28 +0800 Subject: [PATCH] add to travis-ci --- .travis.yml | 26 +++++++++++++++++++++++++ app/src/main/assets/js-call-native.html | 1 + readme-chs.md | 2 +- readme.md | 2 +- 4 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c17a9b2 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +language: android +jdk: oraclejdk8 +android: + components: + - platform-tools + - tools + + # The BuildTools version used by your project + - build-tools-25.0.0 + + + # The SDK version used to compile your project + - android-23 + + # Support library + - extra-android-support + - extra-android-m2repository + - sys-img-x86_64-android-22 + licenses: + - 'android-sdk-preview-license-52d11cd2' + - 'android-sdk-license-.+' + - 'google-gdk-license-.+' + +script: + - android list target + diff --git a/app/src/main/assets/js-call-native.html b/app/src/main/assets/js-call-native.html index 2cebf69..e59ddc6 100644 --- a/app/src/main/assets/js-call-native.html +++ b/app/src/main/assets/js-call-native.html @@ -92,6 +92,7 @@ function callProgress() { dsBridge.call("callProgress", function (value) { + if(value==0) value=""; document.getElementById("progress").innerText = value }) } diff --git a/readme-chs.md b/readme-chs.md index 44f662b..9999cf4 100644 --- a/readme-chs.md +++ b/readme-chs.md @@ -1,7 +1,7 @@ # DSBridge -[![](https://jitpack.io/v/wendux/DSBridge-Android.svg)](https://jitpack.io/#wendux/DSBridge-Android) [![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/mit-license.php) [![](https://travis-ci.org/wendux/DSBridge-Android.svg?branch=3.0)](https://travis-ci.org/wendux/DSBridge-Android/tree/3.0) +[![](https://jitpack.io/v/wendux/DSBridge-Android.svg)](https://jitpack.io/#wendux/DSBridge-Android) [![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/mit-license.php) [![](https://travis-ci.org/wendux/DSBridge-Android.svg?branch=3.0)](https://travis-ci.org/wendux/DSBridge-Android) > 三端易用的现代跨平台的 Javascript bridge, 通过它,你可以在Javascript和原生之间同步或异步的调用彼此的函数. > diff --git a/readme.md b/readme.md index e9ac7fb..2de2fbb 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,7 @@ # DSBridge -[![](https://jitpack.io/v/wendux/DSBridge-Android.svg)](https://jitpack.io/#wendux/DSBridge-Android) [![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/mit-license.php) [![](https://travis-ci.org/wendux/DSBridge-Android.svg?branch=3.0)](https://travis-ci.org/wendux/DSBridge-Android/tree/3.0) +[![](https://jitpack.io/v/wendux/DSBridge-Android.svg)](https://jitpack.io/#wendux/DSBridge-Android) [![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/mit-license.php) [![](https://travis-ci.org/wendux/DSBridge-Android.svg?branch=3.0)](https://travis-ci.org/wendux/DSBridge-Android) >Modern cross-platform JavaScript bridge, through which you can invoke each other's functions synchronously or asynchronously between JavaScript and native applications. Chinese documentation [中文文档](https://github.com/wendux/DSBridge-Android/blob/master/readme-chs.md)