rename hego to doric

This commit is contained in:
pengfei.zhou
2019-07-19 10:27:09 +08:00
parent 6bcc9ffe49
commit 51c8924c2a
48 changed files with 340 additions and 424 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.github.pengfeizhou.hegodemo">
package="com.github.pengfeizhou.doricdemo">
<application
android:name=".MyApplication"
@@ -10,7 +10,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.github.pengfeizhou.hegodemo.MainActivity">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@@ -1,10 +1,10 @@
package com.github.pengfeizhou.hegodemo;
package com.github.pengfeizhou.doricdemo;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.github.pengfeizhou.hego.HegoContext;
import com.github.pengfeizhou.hego.utils.HegoUtils;
import com.github.pengfeizhou.doric.DoricContext;
import com.github.pengfeizhou.doric.utils.DoricUtils;
public class MainActivity extends AppCompatActivity {
@@ -12,7 +12,7 @@ public class MainActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
HegoContext hegoContext = HegoContext.createContext(HegoUtils.readAssetFile("demo.js"), "demo");
hegoContext.callEntity("log");
DoricContext doricContext = DoricContext.createContext(DoricUtils.readAssetFile("demo.js"), "demo");
doricContext.callEntity("log");
}
}

View File

@@ -1,11 +1,11 @@
package com.github.pengfeizhou.hegodemo;
package com.github.pengfeizhou.doricdemo;
import android.app.Application;
import com.github.pengfeizhou.hego.Hego;
import com.github.pengfeizhou.doric.Doric;
/**
* @Description: Hego
* @Description: Doric
* @Author: pengfei.zhou
* @CreateDate: 2019-07-18
*/
@@ -13,6 +13,6 @@ public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
Hego.init(this);
Doric.init(this);
}
}

View File

@@ -1,3 +1,3 @@
<resources>
<string name="app_name">HEGO</string>
<string name="app_name">Doric</string>
</resources>