浏览代码

hello world ok

allen 4 年之前
父节点
当前提交
2dfbf549b6

+ 1 - 0
app/build.gradle

@@ -97,6 +97,7 @@ dependencies {
         compile project(':shop')      // ===> 店铺模块 店铺列表 详细 等
         compile project(':setting')   // ===> 设置模块 设置 缓存 App分享等
         compile project(':extra')    // ===> 额外的一些页面 比如二维码扫描等一些附加功能
+        compile project(':hello')
     }
     /**
      * JavaShopAndroid 中间件依赖库

+ 1 - 8
app/src/main/AndroidManifest.xml

@@ -35,14 +35,7 @@
         <meta-data
             android:name="design_height_in_dp"
             android:value="640"/>
-        <meta-data
-            android:name="UMENG_APPKEY"
-            android:value="596453f8c895762c7e00028e" >
-        </meta-data>
-        <meta-data
-            android:name="UMENG_MESSAGE_SECRET"
-            android:value="53d15319bc4f06721db8dd3e4813c7df">
-        </meta-data>
+
         <activity android:name="com.wdkl.ncs.android.component.welcome.activity.WelcomeActivity"
             >
             <intent-filter>

+ 2 - 0
app/src/main/code/com/wdkl/app/ncs/application/Application.kt

@@ -44,6 +44,8 @@ class Application : BaseApplication() {
         JRouter.prepare().create("/setting/launch").seek()
         JRouter.prepare().create("/shop/launch").seek()
         JRouter.prepare().create("/extra/launch").seek()
+
+        JRouter.prepare().create("/hello/launch").seek()
     }
 
     /**

+ 11 - 2
hello/build.gradle

@@ -35,8 +35,6 @@ android {
 
     }
 
-
-
     lintOptions {
         abortOnError false
     }
@@ -109,3 +107,14 @@ dependencies {
     compile 'com.android.support.constraint:constraint-layout:1.1.0-beta5'
 }
 
+/**
+ * kawo组件化框架配置
+ */
+if(componentTag){
+    kawo {
+        /**
+         * Aop注解排除Jar
+         */
+        aspectExcludeJarFilter 'com.enation.geamtear.pay','AlipaySdk'
+    }
+}

+ 1 - 10
hello/src/main/AndroidManifest.xml

@@ -1,20 +1,11 @@
-<?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.wdkl.ncs.android.component.hello">
 
     <application
         android:allowBackup="true"
-        android:icon="@mipmap/ic_launcher"
         android:label="@string/app_name"
-        android:roundIcon="@mipmap/ic_launcher_round"
-        android:supportsRtl="true"
-        android:theme="@style/AppTheme">
+        android:supportsRtl="true">
         <activity android:name=".activity.HelloActivity">
-            <intent-filter>
-                <action android:name="android.intent.action.MAIN" />
-
-                <category android:name="android.intent.category.LAUNCHER" />
-            </intent-filter>
         </activity>
     </application>
 

+ 4 - 7
hello/src/main/java/com/wdkl/ncs/android/component/hello/activity/HelloActivity.kt

@@ -1,6 +1,7 @@
 package com.wdkl.ncs.android.component.hello.activity
 
 import android.app.Activity
+import android.graphics.Color
 import android.os.Bundle
 import com.enation.javashop.android.jrouter.external.annotation.Router
 import com.enation.javashop.net.engine.model.NetState
@@ -9,6 +10,7 @@ import com.wdkl.ncs.android.component.hello.databinding.HelloActLayBinding
 import com.wdkl.ncs.android.component.hello.launch.HelloLaunch
 import com.wdkl.ncs.android.lib.base.BaseActivity
 import com.wdkl.ncs.android.lib.base.BaseContract
+import com.wdkl.ncs.android.lib.utils.AppTool
 import com.wdkl.ncs.android.middleware.logic.contract.hello.HelloActivityContract
 import com.wdkl.ncs.android.middleware.logic.presenter.hello.HelloActivityPresenter
 
@@ -23,30 +25,25 @@ class HelloActivity : BaseActivity<HelloActivityPresenter, HelloActLayBinding>()
     }
 
     override fun init() {
-        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
+        AppTool.SystemUI.showNavigationBar(this,false)
+        AppTool.SystemUI.ImmersiveWithBottomBarColor(this, Color.BLACK)
     }
 
     override fun bindEvent() {
-        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
     }
 
     override fun destory() {
-        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
     }
 
     override fun onError(message: String, type: Int) {
-        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
     }
 
     override fun complete(message: String, type: Int) {
-        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
     }
 
     override fun start() {
-        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
     }
 
     override fun networkMonitor(state: NetState) {
-        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
     }
 }

+ 1 - 1
home/src/main/code/com/wdkl/ncs/android/component/home/fragment/HomeFragment.kt

@@ -217,7 +217,7 @@ class HomeFragment : BaseFragment<HomeFragmentPresenter,HomeFragLayBinding>(),Ho
 
     override fun pointMall() {
 //        push("/promotion/pointshop/main")
-        push("/shop/list")
+        push("/hello/main")
     }
 
     override fun secKill() {