Browse Source

1.添加获取moca试题库module

王鹏鹏 2 years ago
parent
commit
5c4e1d80a5

+ 1 - 0
.idea/gradle.xml

@@ -18,6 +18,7 @@
             <option value="$PROJECT_DIR$/livebroadcast" />
             <option value="$PROJECT_DIR$/login" />
             <option value="$PROJECT_DIR$/mmse" />
+            <option value="$PROJECT_DIR$/moca" />
             <option value="$PROJECT_DIR$/personalcenter" />
             <option value="$PROJECT_DIR$/push" />
             <option value="$PROJECT_DIR$/superplayerkit" />

+ 1 - 0
.idea/misc.xml

@@ -119,6 +119,7 @@
         <entry key="..\:/workspace/hcp-pad/mmse/src/main/res/layout/item_number.xml" value="0.23697916666666666" />
         <entry key="..\:/workspace/hcp-pad/mmse/src/main/res/layout/item_selected_item.xml" value="0.536" />
         <entry key="..\:/workspace/hcp-pad/mmse/src/main/res/layout/item_year.xml" value="1.0" />
+        <entry key="..\:/workspace/hcp-pad/moca/src/main/res/layout/activity_main.xml" value="0.23697916666666666" />
         <entry key="..\:/workspace/hcp-pad/personalcenter/src/main/res/drawable/bg_center.xml" value="0.219" />
         <entry key="..\:/workspace/hcp-pad/personalcenter/src/main/res/drawable/bg_common_head_layout.xml" value="0.219" />
         <entry key="..\:/workspace/hcp-pad/personalcenter/src/main/res/drawable/bg_personal_center.xml" value="0.219" />

+ 1 - 0
app/build.gradle

@@ -104,6 +104,7 @@ dependencies {
     implementation project(path: ':push')
     implementation project(path: ':home')
     implementation project(path: ':mmse')
+    implementation project(path: ':moca')
 
     implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
     implementation(rootProject.ext.androidx.kotlin_lib)

+ 1 - 0
moca/.gitignore

@@ -0,0 +1 @@
+/build

+ 23 - 0
moca/build.gradle

@@ -0,0 +1,23 @@
+apply from: "../module.build.gradle"
+apply plugin: 'kotlin-android'
+apply plugin: 'kotlin-kapt'
+
+android {
+    defaultConfig {
+        // 如果是独立模块,则使用当前组件的包名
+        if (singleModule.toBoolean()) {
+            applicationId "com.yingyangfly.moca"
+        }
+    }
+    // 统一资源前缀,规范资源引用
+    resourcePrefix "moca_"
+}
+
+dependencies {
+    implementation project(path: ':baselib')
+    implementation(rootProject.ext.androidx.kotlin_lib)
+    implementation(rootProject.ext.androidx.kotlin_core)
+    implementation(rootProject.ext.androidx.appcompat)
+    implementation(rootProject.ext.androidx.material)
+    implementation(rootProject.ext.androidx.constraintlayout)
+}

+ 21 - 0
moca/proguard-rules.pro

@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+#   http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+#   public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile

+ 8 - 0
moca/src/main/AndroidManifest.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest package="com.yingyangfly.moca">
+
+    <application>
+
+    </application>
+
+</manifest>

+ 11 - 0
moca/src/main/java/com/yingyangfly/moca/MainActivity.kt

@@ -0,0 +1,11 @@
+package com.yingyangfly.moca
+
+import androidx.appcompat.app.AppCompatActivity
+import android.os.Bundle
+
+class MainActivity : AppCompatActivity() {
+    override fun onCreate(savedInstanceState: Bundle?) {
+        super.onCreate(savedInstanceState)
+        setContentView(R.layout.activity_main)
+    }
+}

+ 8 - 0
moca/src/main/manifest/AndroidManifest.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest package="com.yingyang.moca">
+
+    <application>
+
+    </application>
+
+</manifest>

+ 6 - 0
moca/src/main/res/layout/activity_main.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent">
+
+</androidx.constraintlayout.widget.ConstraintLayout>

+ 4 - 0
moca/src/main/res/values/colors.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+</resources>

+ 3 - 0
moca/src/main/res/values/strings.xml

@@ -0,0 +1,3 @@
+<resources>
+
+</resources>

+ 1 - 0
settings.gradle

@@ -11,3 +11,4 @@ include ':home'
 include ':superplayerkit'
 include ':common'
 include ':mmse'
+include ':moca'