From bb86c3c3320d5ae727382a8cf6edf20956d3b886 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Sat, 3 Aug 2019 17:58:25 +0800 Subject: [PATCH] add server --- Android/app/build.gradle | 1 + Android/app/src/main/AndroidManifest.xml | 2 +- .../penfeizhou/doricdemo/LocalServer.java | 40 +++++++++++++++++++ .../penfeizhou/doricdemo/MainActivity.java | 10 +++++ js-framework/demo.ts | 4 +- 5 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 Android/app/src/main/java/com/github/penfeizhou/doricdemo/LocalServer.java diff --git a/Android/app/build.gradle b/Android/app/build.gradle index 21194703..95261a33 100644 --- a/Android/app/build.gradle +++ b/Android/app/build.gradle @@ -28,4 +28,5 @@ dependencies { implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' implementation project(':doric') + implementation 'org.nanohttpd:nanohttpd:2.3.1' } diff --git a/Android/app/src/main/AndroidManifest.xml b/Android/app/src/main/AndroidManifest.xml index b0b496b6..e56409b3 100644 --- a/Android/app/src/main/AndroidManifest.xml +++ b/Android/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ - +