├── app ├── .gitignore ├── libs │ ├── x86 │ │ └── liblbs.so │ ├── armeabi │ │ └── liblbs.so │ └── tbs_sdk_thirdapp_v3.6.0.1310_43612_sharewithdownload_withoutGame_obfs_20180706_163319.jar ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── layout │ │ │ │ ├── activity_file_display.xml │ │ │ │ ├── activity_web_browser.xml │ │ │ │ └── activity_main.xml │ │ │ ├── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ │ └── drawable │ │ │ │ └── ic_launcher_background.xml │ │ ├── java │ │ │ └── github │ │ │ │ └── benjamin │ │ │ │ └── tbsreader │ │ │ │ ├── bridge │ │ │ │ ├── CallBackFunction.java │ │ │ │ ├── BridgeHandler.java │ │ │ │ ├── WebViewJavascriptBridge.java │ │ │ │ ├── DefaultHandler.java │ │ │ │ ├── BridgeConfig.java │ │ │ │ ├── BridgeWebViewClientListener.java │ │ │ │ ├── OnWebChromeClientListener.java │ │ │ │ ├── SimpleBridgeWebViewClientListener.java │ │ │ │ ├── Message.java │ │ │ │ ├── WebChromeClientListener.java │ │ │ │ ├── BridgeUtil.java │ │ │ │ ├── BridgeWebViewClient.java │ │ │ │ └── TbsBridgeWebView.java │ │ │ │ ├── utils │ │ │ │ ├── WebViewJavaScriptFunction.java │ │ │ │ └── X5WebView.java │ │ │ │ ├── okgo │ │ │ │ └── Ok.java │ │ │ │ ├── MyAppliction.java │ │ │ │ ├── FileDisplayActivity.java │ │ │ │ ├── MainActivity.java │ │ │ │ └── WebBrowserActivity.java │ │ ├── AndroidManifest.xml │ │ └── assets │ │ │ └── WebViewJavascriptBridge.js │ ├── test │ │ └── java │ │ │ └── github │ │ │ └── benjamin │ │ │ └── tbsreader │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── github │ │ └── benjamin │ │ └── tbsreader │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── Bridge.rar ├── img └── gif.gif ├── .idea ├── caches │ ├── gradle_models.ser │ └── build_file_checksums.ser ├── vcs.xml ├── misc.xml ├── modules.xml ├── runConfigurations.xml ├── gradle.xml ├── inspectionProfiles │ └── Project_Default.xml └── codeStyles │ └── Project.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── README.md ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /Bridge.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/Bridge.rar -------------------------------------------------------------------------------- /img/gif.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/img/gif.gif -------------------------------------------------------------------------------- /app/libs/x86/liblbs.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/app/libs/x86/liblbs.so -------------------------------------------------------------------------------- /app/libs/armeabi/liblbs.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/app/libs/armeabi/liblbs.so -------------------------------------------------------------------------------- /.idea/caches/gradle_models.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/.idea/caches/gradle_models.ser -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | TBSreader 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.idea/caches/build_file_checksums.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/.idea/caches/build_file_checksums.ser -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/java/github/benjamin/tbsreader/bridge/CallBackFunction.java: -------------------------------------------------------------------------------- 1 | package github.benjamin.tbsreader.bridge; 2 | 3 | public interface CallBackFunction { 4 | 5 | void onCallBack(String data); 6 | 7 | } 8 | -------------------------------------------------------------------------------- /app/src/main/java/github/benjamin/tbsreader/bridge/BridgeHandler.java: -------------------------------------------------------------------------------- 1 | package github.benjamin.tbsreader.bridge; 2 | 3 | public interface BridgeHandler { 4 | 5 | void handler(String data, CallBackFunction function); 6 | 7 | } 8 | -------------------------------------------------------------------------------- /app/libs/tbs_sdk_thirdapp_v3.6.0.1310_43612_sharewithdownload_withoutGame_obfs_20180706_163319.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dabinDev/TBSreader/HEAD/app/libs/tbs_sdk_thirdapp_v3.6.0.1310_43612_sharewithdownload_withoutGame_obfs_20180706_163319.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Sep 21 09:40:40 CST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/java/github/benjamin/tbsreader/bridge/WebViewJavascriptBridge.java: -------------------------------------------------------------------------------- 1 | package github.benjamin.tbsreader.bridge; 2 | 3 | 4 | public interface WebViewJavascriptBridge { 5 | 6 | void send(String data); 7 | 8 | void send(String data, CallBackFunction responseCallback); 9 | 10 | } 11 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | #FFFFFF 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/java/github/benjamin/tbsreader/bridge/DefaultHandler.java: -------------------------------------------------------------------------------- 1 | package github.benjamin.tbsreader.bridge; 2 | 3 | public class DefaultHandler implements BridgeHandler { 4 | 5 | String TAG = "DefaultHandler"; 6 | 7 | @Override 8 | public void handler(String data, CallBackFunction function) { 9 | if (function != null) { 10 | function.onCallBack("DefaultHandler response data"); 11 | } 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /app/src/main/java/github/benjamin/tbsreader/bridge/BridgeConfig.java: -------------------------------------------------------------------------------- 1 | package github.benjamin.tbsreader.bridge; 2 | 3 | /** 4 | * 配置文件 5 | */ 6 | public class BridgeConfig { 7 | 8 | public static final String toLoadJs = "WebViewJavascriptBridge.js"; 9 | /** 10 | * 默认桥名 11 | */ 12 | public static final String defaultJs = "WebViewJavascriptBridge"; 13 | /** 14 | * 自定义桥名 15 | */ 16 | public static String customJs = BridgeConfig.defaultJs; 17 | } 18 | -------------------------------------------------------------------------------- /app/src/main/java/github/benjamin/tbsreader/utils/WebViewJavaScriptFunction.java: -------------------------------------------------------------------------------- 1 | package github.benjamin.tbsreader.utils; 2 | /** 3 | * Project : TBSreader. 4 | * Package name: github.benjamin.tbsreader.utils 5 | * Created by : Benjamin. 6 | * Created time: 2018/1/3 10:33 7 | * Changed by : Benjamin. 8 | * Changed time: 2018/1/3 10:33 9 | * Class description: WebViewJavaScriptFunction 10 | */ 11 | 12 | public interface WebViewJavaScriptFunction { 13 | 14 | void onJsFunctionCalled(String tag); 15 | } 16 | -------------------------------------------------------------------------------- /app/src/test/java/github/benjamin/tbsreader/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package github.benjamin.tbsreader; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_file_display.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 17 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 20 | 21 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_web_browser.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 |