diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f0c5069 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +*.iml +.gradle +/.idea +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild +.cxx +local.properties diff --git a/account/.gitignore b/account/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/account/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/account/build.gradle b/account/build.gradle new file mode 100644 index 0000000..278b600 --- /dev/null +++ b/account/build.gradle @@ -0,0 +1,2 @@ +apply from: "${rootProject.rootDir}/assembly.gradle" +project.ext.setAppOrLibDefaultConfig project \ No newline at end of file diff --git a/account/consumer-rules.pro b/account/consumer-rules.pro new file mode 100644 index 0000000..e69de29 diff --git a/account/proguard-rules.pro b/account/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/account/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 \ No newline at end of file diff --git a/account/src/androidTest/java/com/abner/account/ExampleInstrumentedTest.kt b/account/src/androidTest/java/com/abner/account/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..3a2cfa6 --- /dev/null +++ b/account/src/androidTest/java/com/abner/account/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.abner.account + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.abner.account.test", appContext.packageName) + } +} \ No newline at end of file diff --git a/account/src/main/AndroidManifest.xml b/account/src/main/AndroidManifest.xml new file mode 100644 index 0000000..54fa484 --- /dev/null +++ b/account/src/main/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/account/src/main/java/com/abner/account/AccountActivity.kt b/account/src/main/java/com/abner/account/AccountActivity.kt new file mode 100644 index 0000000..44d7d3f --- /dev/null +++ b/account/src/main/java/com/abner/account/AccountActivity.kt @@ -0,0 +1,52 @@ +package com.abner.account + +import android.os.Bundle +import android.widget.Button +import android.widget.Toast +import androidx.appcompat.app.AppCompatActivity +import com.abner.common.router.CommonRouterConstant +import com.abner.common.router.CommonRouterManger +import com.abner.common.utils.CommonUserUtils +import com.alibaba.android.arouter.facade.annotation.Route + +/** + *AUTHOR:AbnerMing + *DATE:2022/9/8 + *INTRODUCE:Account页面 + */ +@Route(path = CommonRouterConstant.ACCOUNT) +class AccountActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_account) + + //普通页面跳转 + findViewById