update doric project template

This commit is contained in:
pengfei.zhou 2020-03-14 17:40:53 +08:00 committed by osborn
parent 7c2ba30bd5
commit 80b9565f96
5 changed files with 5 additions and 8 deletions

View File

@ -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",

View File

@ -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"
}
}

View File

@ -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();
}

View File

@ -18,9 +18,6 @@ allprojects {
repositories {
google()
jcenter()
maven {
url "https://dl.bintray.com/osborn/Android"
}
maven { url 'https://jitpack.io' }
}
}

View File

@ -6,5 +6,5 @@ target 'Example' do
use_frameworks!
# Pods for Example
pod 'DoricCore', '~>0.2.3'
pod 'DoricCore', '~>0.3.8'
end