From 80b9565f96c87e07df5a3f7e37f04949b2dc0815 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Sat, 14 Mar 2020 17:40:53 +0800 Subject: [PATCH] update doric project template --- doric-cli/target/_package.json | 2 +- doric-cli/target/android/app/build.gradle | 4 ++-- .../app/src/main/java/pub/doric/example/MainActivity.java | 2 +- doric-cli/target/android/build.gradle | 3 --- doric-cli/target/iOS/Podfile | 2 +- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/doric-cli/target/_package.json b/doric-cli/target/_package.json index 53dcd3ed..dd1b7dbe 100644 --- a/doric-cli/target/_package.json +++ b/doric-cli/target/_package.json @@ -10,7 +10,7 @@ }, "license": "Apache-2.0", "dependencies": { - "doric": "0.2.3", + "doric": "0.3.8", "reflect-metadata": "^0.1.13", "rollup": "^1.27.14", "tslib": "^1.10.0", diff --git a/doric-cli/target/android/app/build.gradle b/doric-cli/target/android/app/build.gradle index 87433c08..d5401283 100644 --- a/doric-cli/target/android/app/build.gradle +++ b/doric-cli/target/android/app/build.gradle @@ -28,8 +28,8 @@ android { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' - implementation "pub.doric:core:0.2.3" - debugImplementation "pub.doric:core:0.2.3" + implementation "pub.doric:core:0.3.8" + debugImplementation "pub.doric:core:0.3.8" } } diff --git a/doric-cli/target/android/app/src/main/java/pub/doric/example/MainActivity.java b/doric-cli/target/android/app/src/main/java/pub/doric/example/MainActivity.java index 2845d8b5..423fb76e 100644 --- a/doric-cli/target/android/app/src/main/java/pub/doric/example/MainActivity.java +++ b/doric-cli/target/android/app/src/main/java/pub/doric/example/MainActivity.java @@ -16,7 +16,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); if (savedInstanceState == null) { String source = "assets://src/" + BUNDLE_NAME + ".js"; - getIntent().putExtra("source", scheme); + getIntent().putExtra("source", source); getIntent().putExtra("alias", BUNDLE_NAME); this.getSupportFragmentManager().beginTransaction().add(R.id.root, new DoricFragment()).commit(); } diff --git a/doric-cli/target/android/build.gradle b/doric-cli/target/android/build.gradle index 0eeaed64..7e23337f 100644 --- a/doric-cli/target/android/build.gradle +++ b/doric-cli/target/android/build.gradle @@ -18,9 +18,6 @@ allprojects { repositories { google() jcenter() - maven { - url "https://dl.bintray.com/osborn/Android" - } maven { url 'https://jitpack.io' } } } diff --git a/doric-cli/target/iOS/Podfile b/doric-cli/target/iOS/Podfile index a1945a8c..23ef7f81 100644 --- a/doric-cli/target/iOS/Podfile +++ b/doric-cli/target/iOS/Podfile @@ -6,5 +6,5 @@ target 'Example' do use_frameworks! # Pods for Example - pod 'DoricCore', '~>0.2.3' + pod 'DoricCore', '~>0.3.8' end