├── app ├── .gitignore └── src │ ├── vdev │ └── java │ │ └── com │ │ └── xiaochen │ │ └── module │ │ └── ApiConstants.java │ └── vtest │ └── java │ └── com.xiaochen.emvp │ └── ApiConstants.java ├── README.md ├── argus-apm-main ├── .gitignore ├── libs │ ├── argus-apm-cloud.jar │ └── argus-apm-cloud-dummy-impl.jar ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── argusapm │ │ │ └── android │ │ │ ├── debug │ │ │ ├── callback │ │ │ │ └── IDebugCallback.java │ │ │ ├── tasks │ │ │ │ ├── IParser.java │ │ │ │ ├── MonitorParseTask.java │ │ │ │ └── MemoryParseTask.java │ │ │ ├── storage │ │ │ │ └── StorageManager.java │ │ │ ├── config │ │ │ │ └── DebugConfig.java │ │ │ └── output │ │ │ │ └── OutputProxy.java │ │ │ ├── core │ │ │ ├── storage │ │ │ │ ├── ITable.java │ │ │ │ └── IStorage.java │ │ │ ├── job │ │ │ │ ├── watchDog │ │ │ │ │ └── WatchDogInfo.java │ │ │ │ ├── webview │ │ │ │ │ ├── AopWebTrace.java │ │ │ │ │ └── WebTask.java │ │ │ │ ├── net │ │ │ │ │ ├── i │ │ │ │ │ │ ├── IStreamCompleteListener.java │ │ │ │ │ │ ├── QURL.java │ │ │ │ │ │ └── QOKHttp.java │ │ │ │ │ └── NetTask.java │ │ │ │ ├── func │ │ │ │ │ ├── FuncTask.java │ │ │ │ │ ├── AopFuncTrace.java │ │ │ │ │ └── FuncTable.java │ │ │ │ ├── appstart │ │ │ │ │ ├── AppStartTask.java │ │ │ │ │ └── AppStartTable.java │ │ │ │ └── activity │ │ │ │ │ └── ActivityHelper.java │ │ │ ├── tasks │ │ │ │ └── ITask.java │ │ │ ├── IInfo.java │ │ │ └── StorageConfig.java │ │ │ ├── api │ │ │ ├── IExtraDataCallback.java │ │ │ └── ExtraDataType.java │ │ │ ├── network │ │ │ ├── UploadConfig.java │ │ │ └── UploadInfoField.java │ │ │ ├── utils │ │ │ ├── AspectjUtils.java │ │ │ ├── FloatWindowUtils.java │ │ │ └── RootHelper.java │ │ │ ├── aop │ │ │ ├── IAopTraceHelper.java │ │ │ └── IActivityHelper.java │ │ │ ├── cloudconfig │ │ │ ├── Constant.java │ │ │ └── data │ │ │ │ └── ArgusApmConfigCore.java │ │ │ └── Env.java │ │ └── res │ │ └── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── colors.xml └── sdk_utils.gradle ├── module ├── module_apm │ ├── consumer-rules.pro │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── xiaochen │ │ │ │ └── module │ │ │ │ └── apm │ │ │ │ ├── MainActivity.java │ │ │ │ └── ApmApplication.java │ │ │ └── res │ │ │ └── layout │ │ │ └── apm_activity_main.xml │ ├── build.gradle │ └── proguard-rules.pro ├── module_app │ ├── consumer-rules.pro │ ├── .gitignore │ ├── src │ │ └── main │ │ │ └── AndroidManifest.xml │ ├── build.gradle │ └── proguard-rules.pro ├── module_mvp │ ├── consumer-rules.pro │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── xiaochen │ │ │ │ └── module │ │ │ │ └── mvp │ │ │ │ ├── view │ │ │ │ └── ITestView.java │ │ │ │ ├── response │ │ │ │ └── HomeArticleRespVO.java │ │ │ │ ├── MvpApplication.java │ │ │ │ ├── api │ │ │ │ └── IServiceApi.java │ │ │ │ └── MvpInfoServiceImpl.java │ │ │ └── res │ │ │ └── layout │ │ │ └── mvp_activity_main.xml │ ├── build.gradle │ └── proguard-rules.pro ├── module_mvvm │ ├── consumer-rules.pro │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── xiaochen │ │ │ │ └── module │ │ │ │ └── mvvm │ │ │ │ ├── response │ │ │ │ └── HomeArticleRespVO.kt │ │ │ │ ├── MvvmApplication.java │ │ │ │ ├── api │ │ │ │ └── IServiceApi.kt │ │ │ │ ├── MvvmInfoServiceImpl.java │ │ │ │ ├── repository │ │ │ │ └── TestRepository.kt │ │ │ │ └── viewmodel │ │ │ │ └── TestViewModel.kt │ │ │ └── res │ │ │ └── layout │ │ │ └── mvvm_activity_main.xml │ ├── build.gradle │ └── proguard-rules.pro ├── module_aop │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── res │ │ │ ├── values │ │ │ │ └── strings.xml │ │ │ └── layout │ │ │ │ └── layout_aop.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── xiaochen │ │ │ │ └── module │ │ │ │ └── aop │ │ │ │ ├── annotation │ │ │ │ ├── Test.java │ │ │ │ └── Msg.java │ │ │ │ ├── DebugLog.java │ │ │ │ ├── DebugTrace.java │ │ │ │ ├── MainActivity.java │ │ │ │ └── StopWatch.java │ │ │ └── AndroidManifest.xml │ ├── build.gradle │ └── proguard-rules.pro ├── module_bluetooth │ ├── consumer-rules.pro │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── xiaochen │ │ │ └── module │ │ │ └── bluetooth │ │ │ ├── device │ │ │ ├── StethoscopeDevice.kt │ │ │ └── BangleDevice.kt │ │ │ ├── constant │ │ │ └── CmdConstants.kt │ │ │ └── BluetoothInfoServiceImpl.java │ ├── build.gradle │ └── proguard-rules.pro ├── module_dagger2 │ ├── .gitignore │ ├── consumer-rules.pro │ ├── src │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── xiaochen │ │ │ │ └── module │ │ │ │ └── dagger2 │ │ │ │ ├── scope │ │ │ │ ├── AScope.java │ │ │ │ └── PersonScope.java │ │ │ │ ├── Person1.java │ │ │ │ ├── module │ │ │ │ ├── ApplicationModule.java │ │ │ │ ├── PersonModule.java │ │ │ │ ├── MainModule.java │ │ │ │ └── AModule.java │ │ │ │ ├── PersonQualifier.java │ │ │ │ ├── component │ │ │ │ ├── AComponent.java │ │ │ │ ├── ApplicationComponent.java │ │ │ │ └── MainComponent.java │ │ │ │ ├── Person.java │ │ │ │ └── Dagger2InfoServiceImpl.java │ │ │ └── res │ │ │ └── layout │ │ │ └── dagger2_activity_main.xml │ ├── build.gradle │ └── proguard-rules.pro ├── module_router1 │ ├── .gitignore │ ├── consumer-rules.pro │ ├── src │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── xiaochen │ │ │ └── module │ │ │ └── router1 │ │ │ ├── ArouterInfoServiceImpl.java │ │ │ ├── JsonServiceImpl.java │ │ │ └── UserInfo.java │ ├── build.gradle │ └── proguard-rules.pro ├── module_router2 │ ├── .gitignore │ ├── consumer-rules.pro │ ├── build.gradle │ ├── src │ │ └── main │ │ │ ├── assets │ │ │ └── test.html │ │ │ ├── res │ │ │ └── layout │ │ │ │ ├── router2_fragment_test.xml │ │ │ │ ├── router2_activity_test.xml │ │ │ │ └── router2_activity_main2.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── xiaochen │ │ │ │ └── module │ │ │ │ └── router2 │ │ │ │ ├── TestFragment.java │ │ │ │ └── UserInterceptor.java │ │ │ └── AndroidManifest.xml │ └── proguard-rules.pro ├── module_widget │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── styles.xml │ │ │ │ └── colors.xml │ │ │ ├── drawable-xhdpi │ │ │ │ ├── icon1.png │ │ │ │ ├── icon2.png │ │ │ │ ├── red_bg.9.png │ │ │ │ ├── icon1_selected.png │ │ │ │ └── icon2_selected.png │ │ │ ├── color │ │ │ │ └── btn_text_selector.xml │ │ │ ├── layout │ │ │ │ ├── drag_img.xml │ │ │ │ ├── fragment_cobweb.xml │ │ │ │ ├── fragment_smile_face.xml │ │ │ │ ├── fragment_olympic.xml │ │ │ │ ├── fragment_range_seekbar.xml │ │ │ │ ├── fragment_piechart.xml │ │ │ │ ├── fragment_toggle.xml │ │ │ │ ├── fragment_circle_progress.xml │ │ │ │ ├── fragment_drag_stick.xml │ │ │ │ ├── fragment_clock.xml │ │ │ │ ├── fragment_view.xml │ │ │ │ └── fragment_viewgroup.xml │ │ │ └── drawable │ │ │ │ ├── btn1_selector.xml │ │ │ │ ├── btn2_selector.xml │ │ │ │ ├── flag_01.xml │ │ │ │ └── out_anim.xml │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── xiaochen │ │ │ └── module │ │ │ └── widget │ │ │ └── ui │ │ │ ├── bean │ │ │ └── PointBean.java │ │ │ ├── fragment │ │ │ ├── ToggleFragment.java │ │ │ ├── ClockFragment.java │ │ │ ├── CobwebFragment.java │ │ │ ├── FlowLayoutFragment.java │ │ │ ├── MyLayoutFragment.java │ │ │ ├── OlymicRingsFragment.java │ │ │ ├── DragStickFragment.java │ │ │ ├── SmileFaceFragment.java │ │ │ ├── RangeSeekBarFragment.java │ │ │ ├── PieChartFragment.java │ │ │ └── CircleProgressFragment.java │ │ │ ├── WidgetInfoServiceImpl.java │ │ │ └── adapter │ │ │ ├── MyPagerAdapter.java │ │ │ └── MyPagerAdapter1.java │ ├── build.gradle │ └── proguard-rules.pro └── module_jetpack │ ├── src │ └── main │ │ ├── res │ │ ├── values │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.xml │ │ ├── color │ │ │ └── bottom_text_color.xml │ │ ├── layout │ │ │ ├── fragment_home.xml │ │ │ ├── fragment_my.xml │ │ │ ├── fragment_setting.xml │ │ │ ├── recyclerview_item.xml │ │ │ ├── activity_paging.xml │ │ │ └── activity_lifecycle.xml │ │ └── drawable │ │ │ └── ic_home.xml │ │ ├── java │ │ └── com │ │ │ └── xiaochen │ │ │ └── module │ │ │ └── jetpack │ │ │ ├── room │ │ │ ├── Address.java │ │ │ ├── Book.java │ │ │ ├── User.java │ │ │ ├── UserDao.java │ │ │ └── AppDataBase.java │ │ │ ├── MyViewModel.java │ │ │ ├── fragment │ │ │ ├── HomeFragment.java │ │ │ └── SettingFragment.java │ │ │ ├── JetpackInfoServiceImpl.java │ │ │ └── ConstraintLayoutActivity.java │ │ └── AndroidManifest.xml │ ├── proguard-rules.pro │ └── build.gradle ├── app_shell ├── app_aop │ ├── .gitignore │ ├── build.gradle │ └── AndroidManifest.xml ├── app_apm │ ├── .gitignore │ └── build.gradle ├── app_arouter │ ├── .gitignore │ ├── build.gradle │ └── AndroidManifest.xml ├── app_dagger2 │ ├── .gitignore │ ├── build.gradle │ ├── AndroidManifest.xml │ └── proguard-rules.pro ├── app_jetpack │ ├── .gitignore │ ├── build.gradle │ └── AndroidManifest.xml ├── app_mvp │ ├── .gitignore │ ├── build.gradle │ └── AndroidManifest.xml ├── app_widget │ ├── .gitignore │ ├── build.gradle │ └── AndroidManifest.xml └── app_bluetooth │ ├── .gitignore │ ├── build.gradle │ └── AndroidManifest.xml ├── component ├── common_base │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── xiaochen │ │ │ └── common │ │ │ └── base │ │ │ ├── BaseEvent.java │ │ │ ├── MyAppGlideModule.java │ │ │ ├── BaseApplication.java │ │ │ └── AppUtil.java │ └── build.gradle ├── common_data │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── xiaochen │ │ │ └── common │ │ │ └── data │ │ │ ├── BaseInfo.java │ │ │ ├── BaseRequest.java │ │ │ ├── BaseResponse.java │ │ │ ├── BaseResponseCallBack.java │ │ │ ├── ApiManager.java │ │ │ └── interceptor │ │ │ └── CommonHeaderInterceptor.java │ └── build.gradle ├── common_mvp │ ├── .gitignore │ ├── consumer-rules.pro │ ├── src │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── xiaochen │ │ │ └── common │ │ │ └── mvp │ │ │ ├── BaseModel.java │ │ │ ├── IBaseView.java │ │ │ └── BasePresenter.java │ ├── build.gradle │ └── proguard-rules.pro ├── common_mvvm │ ├── .gitignore │ ├── consumer-rules.pro │ ├── src │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── xiaochen │ │ │ └── common │ │ │ └── mvvm │ │ │ ├── BaseException.kt │ │ │ └── BaseResult.kt │ ├── build.gradle │ └── proguard-rules.pro ├── common_sdk │ ├── .gitignore │ ├── consumer-rules.pro │ ├── src │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── xiaochen │ │ │ └── common │ │ │ └── sdk │ │ │ └── BusManager.kt │ ├── build.gradle │ └── proguard-rules.pro ├── common_service │ ├── consumer-rules.pro │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── xiaochen │ │ │ └── common │ │ │ └── service │ │ │ └── CommonNameService.java │ ├── build.gradle │ └── proguard-rules.pro ├── common_utils │ ├── consumer-rules.pro │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── xiaochen │ │ │ └── common │ │ │ └── utils │ │ │ ├── AppLogger.java │ │ │ └── PermissionUtil.java │ ├── build.gradle │ └── proguard-rules.pro ├── common_widget │ ├── consumer-rules.pro │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── res │ │ │ ├── drawable-xhdpi │ │ │ ├── pop1.png │ │ │ ├── pop2.png │ │ │ ├── pop3.png │ │ │ ├── pop4.png │ │ │ ├── pop5.png │ │ │ ├── ring_dot.png │ │ │ ├── rod_place_icon.png │ │ │ └── rod_handshank_butten.png │ │ │ └── values │ │ │ └── colors.xml │ ├── build.gradle │ └── proguard-rules.pro ├── common_bluetooth │ ├── .gitignore │ ├── consumer-rules.pro │ ├── src │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── xiaochen │ │ │ │ └── common │ │ │ │ └── bluetooth │ │ │ │ ├── classicble │ │ │ │ ├── DeviceContants.kt │ │ │ │ └── ConnectState.kt │ │ │ │ └── fastble │ │ │ │ ├── service │ │ │ │ └── BleConnectEvent.java │ │ │ │ └── constant │ │ │ │ ├── DeviceConstants.java │ │ │ │ ├── UUIDConstants.java │ │ │ │ └── CmdConstants.kt │ │ │ └── AndroidManifest.xml │ ├── build.gradle │ └── proguard-rules.pro └── common_resource │ ├── .gitignore │ ├── src │ └── main │ │ ├── res │ │ ├── values │ │ │ ├── attrs.xml │ │ │ └── strings.xml │ │ ├── drawable-xhdpi │ │ │ ├── loading.gif │ │ │ └── common_back.png │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── xml │ │ │ ├── file_paths.xml │ │ │ └── public_network_security_config.xml │ │ ├── drawable │ │ │ ├── common_dialog_shape.xml │ │ │ ├── common_dialog_confirm_shape.xml │ │ │ └── common_dialog_cancel_shape.xml │ │ └── layout │ │ │ ├── layout_common_loading_dialog.xml │ │ │ ├── layout_common_right_text.xml │ │ │ └── layout_common_head_title.xml │ │ └── AndroidManifest.xml │ └── build.gradle ├── image └── image.gif ├── .gitignore ├── common_component.gradle ├── gradle.properties └── settings.gradle /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # easy-component项目 2 | -------------------------------------------------------------------------------- /argus-apm-main/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /module/module_apm/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /module/module_app/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /module/module_mvp/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /module/module_mvvm/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app_shell/app_aop/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app_shell/app_apm/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app_shell/app_arouter/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app_shell/app_dagger2/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app_shell/app_jetpack/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app_shell/app_mvp/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app_shell/app_widget/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /component/common_base/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /component/common_data/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /component/common_mvp/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /component/common_mvp/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /component/common_mvvm/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /component/common_mvvm/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /component/common_sdk/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /component/common_sdk/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /component/common_service/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /component/common_utils/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /component/common_widget/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /module/module_aop/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /module/module_apm/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /module/module_app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /module/module_bluetooth/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /module/module_dagger2/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /module/module_dagger2/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /module/module_mvp/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /module/module_mvvm/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /module/module_router1/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /module/module_router1/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /module/module_router2/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /module/module_router2/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /module/module_widget/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app_shell/app_bluetooth/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /component/common_bluetooth/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /component/common_bluetooth/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /component/common_resource/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /component/common_service/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /component/common_utils/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /component/common_widget/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /module/module_bluetooth/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /image/image.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/image/image.gif -------------------------------------------------------------------------------- /component/common_base/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /component/common_resource/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /argus-apm-main/libs/argus-apm-cloud.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/argus-apm-main/libs/argus-apm-cloud.jar -------------------------------------------------------------------------------- /module/module_aop/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | aop_module 3 | 4 | -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | aacmodule 3 | 4 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | cwidget 3 | 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | gradle 4 | build 5 | /local.properties 6 | /.idea 7 | .DS_Store 8 | /build 9 | /captures 10 | .externalNativeBuild 11 | -------------------------------------------------------------------------------- /argus-apm-main/libs/argus-apm-cloud-dummy-impl.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/argus-apm-main/libs/argus-apm-cloud-dummy-impl.jar -------------------------------------------------------------------------------- /component/common_mvp/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /component/common_sdk/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /module/module_app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /component/common_data/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /component/common_mvvm/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /component/common_utils/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /component/common_widget/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /component/common_service/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/drawable-xhdpi/icon1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/module/module_widget/src/main/res/drawable-xhdpi/icon1.png -------------------------------------------------------------------------------- /module/module_widget/src/main/res/drawable-xhdpi/icon2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/module/module_widget/src/main/res/drawable-xhdpi/icon2.png -------------------------------------------------------------------------------- /component/common_data/src/main/java/com/xiaochen/common/data/BaseInfo.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.common.data; 2 | 3 | /** 4 | * 所有实体类的父类 5 | */ 6 | public class BaseInfo { 7 | } 8 | -------------------------------------------------------------------------------- /component/common_widget/src/main/res/drawable-xhdpi/pop1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/component/common_widget/src/main/res/drawable-xhdpi/pop1.png -------------------------------------------------------------------------------- /component/common_widget/src/main/res/drawable-xhdpi/pop2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/component/common_widget/src/main/res/drawable-xhdpi/pop2.png -------------------------------------------------------------------------------- /component/common_widget/src/main/res/drawable-xhdpi/pop3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/component/common_widget/src/main/res/drawable-xhdpi/pop3.png -------------------------------------------------------------------------------- /component/common_widget/src/main/res/drawable-xhdpi/pop4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/component/common_widget/src/main/res/drawable-xhdpi/pop4.png -------------------------------------------------------------------------------- /component/common_widget/src/main/res/drawable-xhdpi/pop5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/component/common_widget/src/main/res/drawable-xhdpi/pop5.png -------------------------------------------------------------------------------- /module/module_widget/src/main/res/drawable-xhdpi/red_bg.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/module/module_widget/src/main/res/drawable-xhdpi/red_bg.9.png -------------------------------------------------------------------------------- /component/common_data/src/main/java/com/xiaochen/common/data/BaseRequest.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.common.data; 2 | 3 | public class BaseRequest { 4 | public String token; 5 | } 6 | -------------------------------------------------------------------------------- /component/common_widget/src/main/res/drawable-xhdpi/ring_dot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/component/common_widget/src/main/res/drawable-xhdpi/ring_dot.png -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/module/module_jetpack/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/module/module_jetpack/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/module/module_jetpack/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/module/module_jetpack/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /component/common_resource/src/main/res/drawable-xhdpi/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/component/common_resource/src/main/res/drawable-xhdpi/loading.gif -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/module/module_jetpack/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /component/common_resource/src/main/res/drawable-xhdpi/common_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/component/common_resource/src/main/res/drawable-xhdpi/common_back.png -------------------------------------------------------------------------------- /component/common_resource/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/component/common_resource/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /component/common_resource/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/component/common_resource/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/module/module_jetpack/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/module/module_jetpack/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/module/module_jetpack/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /module/module_widget/src/main/res/drawable-xhdpi/icon1_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/module/module_widget/src/main/res/drawable-xhdpi/icon1_selected.png -------------------------------------------------------------------------------- /module/module_widget/src/main/res/drawable-xhdpi/icon2_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/module/module_widget/src/main/res/drawable-xhdpi/icon2_selected.png -------------------------------------------------------------------------------- /component/common_widget/src/main/res/drawable-xhdpi/rod_place_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/component/common_widget/src/main/res/drawable-xhdpi/rod_place_icon.png -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/module/module_jetpack/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/module/module_jetpack/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /component/common_service/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_component.gradle" 2 | def thirdDependencies = rootProject.ext.thirdDependencies 3 | dependencies { 4 | api thirdDependencies.arouter 5 | } 6 | -------------------------------------------------------------------------------- /component/common_widget/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_component.gradle" 2 | 3 | dependencies { 4 | api project(':component:common_resource') 5 | api project(':component:common_base') 6 | } 7 | -------------------------------------------------------------------------------- /component/common_widget/src/main/res/drawable-xhdpi/rod_handshank_butten.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlc921022/easy_component/HEAD/component/common_widget/src/main/res/drawable-xhdpi/rod_handshank_butten.png -------------------------------------------------------------------------------- /module/module_apm/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /component/common_mvp/src/main/java/com/xiaochen/common/mvp/BaseModel.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.common.mvp; 2 | 3 | /** 4 | *

model基类

5 | * 6 | * @author zhenglecheng 7 | * @date 2020/4/16 8 | */ 9 | public class BaseModel { 10 | } 11 | -------------------------------------------------------------------------------- /component/common_base/src/main/java/com/xiaochen/common/base/BaseEvent.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.common.base; 2 | 3 | /** 4 | * @author zlc 5 | * email : zlc921022@163.com 6 | * desc : eventbus类的基类 7 | */ 8 | public class BaseEvent { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /app_shell/app_mvp/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_shell.gradle" 2 | 3 | dependencies { 4 | implementation project(":component:common_resource") 5 | implementation project(":component:common_base") 6 | runtimeOnly project(':module:module_mvvm') 7 | } 8 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/debug/callback/IDebugCallback.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.debug.callback; 2 | 3 | /** 4 | * Debug模块回调接口 5 | * 6 | * @author ArgusAPM Team 7 | */ 8 | public interface IDebugCallback { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /app_shell/app_aop/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_shell.gradle" 2 | 3 | dependencies { 4 | implementation project(':component:common_resource') 5 | implementation project(':component:common_base') 6 | runtimeOnly project(':module:module_aop') 7 | } 8 | 9 | -------------------------------------------------------------------------------- /app_shell/app_widget/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_shell.gradle" 2 | 3 | dependencies { 4 | implementation project(':component:common_resource') 5 | implementation project(':component:common_base') 6 | runtimeOnly project(':module:module_widget') 7 | } 8 | -------------------------------------------------------------------------------- /app_shell/app_jetpack/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_shell.gradle" 2 | 3 | dependencies { 4 | implementation project(':component:common_resource') 5 | implementation project(':component:common_base') 6 | runtimeOnly project(':module:module_jetpack') 7 | } 8 | -------------------------------------------------------------------------------- /app_shell/app_bluetooth/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_shell.gradle" 2 | 3 | dependencies { 4 | implementation project(':component:common_resource') 5 | implementation project(':component:common_base') 6 | runtimeOnly project(':module:module_bluetooth') 7 | } 8 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/core/storage/ITable.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.core.storage; 2 | 3 | /** 4 | * @author ArgusAPM Team 5 | */ 6 | public interface ITable { 7 | 8 | String createSql(); 9 | 10 | String getTableName(); 11 | 12 | } -------------------------------------------------------------------------------- /component/common_resource/src/main/res/xml/file_paths.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | -------------------------------------------------------------------------------- /component/common_data/src/main/java/com/xiaochen/common/data/BaseResponse.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.common.data; 2 | 3 | /** 4 | * @author admin 5 | */ 6 | public class BaseResponse { 7 | public int errorCode; 8 | public String errorMsg; 9 | public T data; 10 | } 11 | -------------------------------------------------------------------------------- /module/module_aop/src/main/java/com/xiaochen/module/aop/annotation/Test.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.aop.annotation; 2 | 3 | /** 4 | *

{d}

5 | * 6 | * @author zhenglecheng 7 | * @date 2020-02-28 8 | */ 9 | @Msg(msg = "zlchahahaha") 10 | public class Test { 11 | } 12 | -------------------------------------------------------------------------------- /app/src/vdev/java/com/xiaochen/module/ApiConstants.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module; 2 | 3 | /** 4 | * @类描述: 5 | * @作者: zhenglecheng 6 | * @创建时间: 2019/10/9 16:22 7 | */ 8 | public class ApiConstants { 9 | public static final String BASE_URL = "https://www.wanandroid.com"; 10 | } 11 | -------------------------------------------------------------------------------- /app/src/vtest/java/com.xiaochen.emvp/ApiConstants.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module; 2 | 3 | /** 4 | * @类描述: 5 | * @作者: zhenglecheng 6 | * @创建时间: 2019/10/9 16:22 7 | */ 8 | public class ApiConstants { 9 | public static final String BASE_URL = "https://www.wanandroid.com"; 10 | } 11 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/debug/tasks/IParser.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.debug.tasks; 2 | 3 | import com.argusapm.android.core.IInfo; 4 | 5 | /** 6 | * @author ArgusAPM Team 7 | */ 8 | public interface IParser { 9 | boolean parse(IInfo info); 10 | } 11 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/color/btn_text_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /component/common_mvvm/src/main/java/com/xiaochen/common/mvvm/BaseException.kt: -------------------------------------------------------------------------------- 1 | package com.xiaochen.common.mvvm 2 | 3 | import java.lang.Exception 4 | 5 | /** 6 | *

异常处理

7 | * @author zhenglecheng 8 | * @date 2020/4/16 9 | */ 10 | class BaseException(e : Exception) { 11 | } -------------------------------------------------------------------------------- /module/module_widget/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module/module_widget/src/main/java/com/xiaochen/module/widget/ui/bean/PointBean.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.widget.ui.bean; 2 | 3 | /** 4 | * @author zlc 5 | * @created 27/07/2018 6 | * @desc 7 | */ 8 | public class PointBean { 9 | public String msgNum; 10 | public String position; 11 | } 12 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/layout/drag_img.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /module/module_router1/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app_shell/app_dagger2/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_shell.gradle" 2 | 3 | dependencies { 4 | implementation project(':component:common_resource') 5 | implementation project(':component:common_base') 6 | runtimeOnly project(':module:module_dagger2') 7 | runtimeOnly project(':module:module_widget') 8 | } 9 | -------------------------------------------------------------------------------- /component/common_resource/src/main/res/xml/public_network_security_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /app_shell/app_arouter/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_shell.gradle" 2 | 3 | dependencies { 4 | implementation project(":component:common_resource") 5 | implementation project(":component:common_base") 6 | runtimeOnly project(':module:module_router1') 7 | runtimeOnly project(':module:module_router2') 8 | } 9 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/api/IExtraDataCallback.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.api; 2 | 3 | /** 4 | * 该接口用于sdk读取外部数据 5 | * 第一个参数(int):代表类型 6 | * 其余参数,根据类型确定 7 | * 8 | * @author ArgusAPM Team 9 | */ 10 | public interface IExtraDataCallback { 11 | Object parse(Object... args); 12 | } 13 | -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /module/module_mvp/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/core/job/watchDog/WatchDogInfo.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.core.job.watchDog; 2 | 3 | import com.argusapm.android.core.job.block.BlockInfo; 4 | 5 | /** 6 | * @author ArgusAPM Team 7 | */ 8 | public class WatchDogInfo extends BlockInfo { 9 | private final String SUB_TAG = "WachDogInfo"; 10 | } 11 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18dp 4 | 10dp 5 | @dimen/dp_10 6 | 7 | 12dp 8 | 1dp 9 | 10 | 11 | -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/color/bottom_text_color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module/module_mvvm/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app_shell/app_apm/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_shell.gradle" 2 | apply plugin: 'argusapm' 3 | android{ 4 | useLibrary('org.apache.http.legacy') 5 | } 6 | dependencies { 7 | implementation project(':component:common_resource') 8 | implementation project(':component:common_base') 9 | runtimeOnly project(':module:module_apm') 10 | } 11 | 12 | -------------------------------------------------------------------------------- /module/module_router2/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_module.gradle" 2 | 3 | android { 4 | resourcePrefix "router2_" //给 Module 内的资源名增加前缀, 避免资源名冲突 5 | } 6 | 7 | dependencies { 8 | implementation project(':component:common_base') 9 | implementation project(':component:common_sdk') 10 | implementation project(':component:common_utils') 11 | } 12 | -------------------------------------------------------------------------------- /module/module_widget/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_module.gradle" 2 | 3 | android { 4 | resourcePrefix "widget_" //给 Module 内的资源名增加前缀, 避免资源名冲突 5 | } 6 | 7 | dependencies { 8 | implementation project(':component:common_widget') 9 | implementation project(':component:common_sdk') 10 | implementation project(':component:common_service') 11 | } 12 | -------------------------------------------------------------------------------- /module/module_mvvm/src/main/java/com/xiaochen/module/mvvm/response/HomeArticleRespVO.kt: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.mvvm.response 2 | 3 | import com.xiaochen.common.data.BaseResponse 4 | 5 | /** 6 | *

7 | * @author zhenglecheng 8 | * @date 2019/12/19 9 | */ 10 | class HomeArticleRespVO : BaseResponse(){ 11 | class Data 12 | } -------------------------------------------------------------------------------- /component/common_utils/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_component.gradle" 2 | // 扩展库 3 | def supportDependencies = rootProject.ext.supportDependencies 4 | // 第三库 5 | def thirdDependencies = rootProject.ext.thirdDependencies 6 | dependencies { 7 | api supportDependencies.supportAnnotations 8 | api thirdDependencies.timber 9 | api thirdDependencies.gson 10 | } 11 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/drawable/btn1_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/drawable/btn2_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /module/module_app/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_module.gradle" 2 | android { 3 | resourcePrefix "app_" //给 Module 内的资源名增加前缀, 避免资源名冲突 4 | } 5 | 6 | dependencies { 7 | implementation project(':component:common_base') 8 | implementation project(':component:common_resource') 9 | implementation project(':component:common_sdk') 10 | implementation project(':component:common_service') 11 | } -------------------------------------------------------------------------------- /module/module_dagger2/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /module/module_mvp/src/main/java/com/xiaochen/module/mvp/view/ITestView.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.mvp.view; 2 | 3 | import com.xiaochen.common.mvp.IBaseView; 4 | import com.xiaochen.module.mvp.response.HomeArticleRespVO; 5 | 6 | /** 7 | *

测试

8 | * 9 | * @author zhenglecheng 10 | * @date 2019/12/26 11 | */ 12 | public interface ITestView extends IBaseView { 13 | } 14 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/core/job/webview/AopWebTrace.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.core.job.webview; 2 | 3 | import org.json.JSONObject; 4 | 5 | /** 6 | * 通过AOP切面调用,不要轻易更改文件所有的包路径和类名 7 | * 8 | * @author ArgusAPM Team 9 | */ 10 | public class AopWebTrace { 11 | public static void dispatch(JSONObject jsonObject) { 12 | WebTrace.dispatch(jsonObject); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /component/common_resource/src/main/res/drawable/common_dialog_shape.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /module/module_aop/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /module/module_mvp/src/main/java/com/xiaochen/module/mvp/response/HomeArticleRespVO.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.mvp.response; 2 | 3 | import com.xiaochen.common.data.BaseResponse; 4 | 5 | /** 6 | *

7 | * 8 | * @author zhenglecheng 9 | * @date 2019/12/27 10 | */ 11 | public class HomeArticleRespVO extends BaseResponse { 12 | public static class Data{ 13 | 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /component/common_base/src/main/java/com/xiaochen/common/base/MyAppGlideModule.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.common.base; 2 | 3 | import com.bumptech.glide.annotation.GlideModule; 4 | import com.bumptech.glide.module.AppGlideModule; 5 | 6 | /** 7 | *

自定义AppGlideModule

8 | * 9 | * @author zhenglecheng 10 | * @date 2019/12/6 11 | */ 12 | @GlideModule 13 | public class MyAppGlideModule extends AppGlideModule { 14 | } 15 | -------------------------------------------------------------------------------- /component/common_resource/src/main/res/drawable/common_dialog_confirm_shape.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /module/module_aop/src/main/java/com/xiaochen/module/aop/DebugLog.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.aop; 2 | 3 | import android.util.Log; 4 | 5 | /** 6 | *

{d}

7 | * 8 | * @author zhenglecheng 9 | * @date 2020-02-28 10 | */ 11 | public class DebugLog { 12 | private DebugLog() { 13 | } 14 | 15 | public static void log(String tag, String message) { 16 | Log.e(tag, message); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/api/ExtraDataType.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.api; 2 | 3 | /** 4 | * @author ArgusAPM Team 5 | */ 6 | public class ExtraDataType { 7 | public static final int TYPE_GET_PLUGIN_NAME = 0; 8 | public static final int TYPE_GET_PLUGIN_VERSION = 1; 9 | public static final int TYPE_GET_MAIN_VERSION = 2; 10 | public static final int TYPE_RECV_V5_UPDATE = 3; 11 | } 12 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/drawable/flag_01.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 13 | 14 | -------------------------------------------------------------------------------- /module/module_dagger2/src/main/java/com/xiaochen/module/dagger2/scope/AScope.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.dagger2.scope; 2 | 3 | import java.lang.annotation.Retention; 4 | import java.lang.annotation.RetentionPolicy; 5 | 6 | import javax.inject.Scope; 7 | 8 | /** 9 | *

10 | * 11 | * @author zhenglecheng 12 | * @date 2020/4/28 13 | */ 14 | @Scope 15 | @Retention(RetentionPolicy.RUNTIME) 16 | public @interface AScope { 17 | } 18 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/core/job/net/i/IStreamCompleteListener.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.core.job.net.i; 2 | 3 | /** 4 | * @author ArgusAPM Team 5 | */ 6 | public interface IStreamCompleteListener { 7 | 8 | void onInputstreamComplete(long size); 9 | 10 | void onOutputstreamComplete(long size); 11 | 12 | void onInputstreamError(long size); 13 | 14 | void onOutputstreamError(long size); 15 | } 16 | -------------------------------------------------------------------------------- /module/module_jetpack/src/main/java/com/xiaochen/module/jetpack/room/Address.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.jetpack.room; 2 | 3 | import androidx.room.ColumnInfo; 4 | 5 | /** 6 | * @类描述: 7 | * @作者: zhenglecheng 8 | * @创建时间: 2019/10/17 17:19 9 | */ 10 | public class Address { 11 | public String street; 12 | public String state; 13 | public String city; 14 | @ColumnInfo(name = "post_code") 15 | public String postCode; 16 | } 17 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/network/UploadConfig.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.network; 2 | 3 | /** 4 | * ArgusAPM相关配置 5 | * 6 | * @author ArgusAPM Team 7 | */ 8 | public class UploadConfig { 9 | public static final long UPLOAD_INTERVAL = 1 * 60 * 60 * 1000; //数据上传时间间隔 10 | public static final long UPLOAD_MIN_INTERVAL = 5 * 60 * 1000; //数据上传最小时间间隔 11 | public static final int RETRY_COUNT = 3; //上传失败重试次数 12 | } 13 | -------------------------------------------------------------------------------- /module/module_bluetooth/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /module/module_bluetooth/src/main/java/com/xiaochen/module/bluetooth/device/StethoscopeDevice.kt: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.bluetooth.device 2 | 3 | import com.xiaochen.common.bluetooth.fastble.device.AbsBaseBleDevice 4 | 5 | /** 6 | *

听诊仪

7 | * @author zhenglecheng 8 | * @date 2020/4/13 9 | */ 10 | object StethoscopeDevice : AbsBaseBleDevice() { 11 | 12 | override fun getDeviceName(): String { 13 | return "" 14 | } 15 | } -------------------------------------------------------------------------------- /module/module_dagger2/src/main/java/com/xiaochen/module/dagger2/scope/PersonScope.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.dagger2.scope; 2 | 3 | import java.lang.annotation.Retention; 4 | import java.lang.annotation.RetentionPolicy; 5 | 6 | import javax.inject.Scope; 7 | 8 | /** 9 | *

10 | * 11 | * @author zhenglecheng 12 | * @date 2020/4/28 13 | */ 14 | @Scope 15 | @Retention(RetentionPolicy.RUNTIME) 16 | public @interface PersonScope { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /module/module_jetpack/src/main/java/com/xiaochen/module/jetpack/room/Book.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.jetpack.room; 2 | 3 | import androidx.room.ColumnInfo; 4 | import androidx.room.PrimaryKey; 5 | 6 | /** 7 | * @类描述: 8 | * @作者: zhenglecheng 9 | * @创建时间: 2019/10/17 17:15 10 | */ 11 | public class Book { 12 | @PrimaryKey 13 | private String bookId; 14 | private String title; 15 | @ColumnInfo(name = "user_id") 16 | private String userId; 17 | } 18 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/core/tasks/ITask.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.core.tasks; 2 | 3 | import com.argusapm.android.core.IInfo; 4 | 5 | /** 6 | * ArgusAPM任务接口 7 | * 8 | * @author ArgusAPM Team 9 | */ 10 | public interface ITask { 11 | String getTaskName(); 12 | 13 | void start(); 14 | 15 | boolean isCanWork(); 16 | 17 | void setCanWork(boolean value); 18 | 19 | boolean save(IInfo info); 20 | 21 | void stop(); 22 | } -------------------------------------------------------------------------------- /component/common_bluetooth/src/main/java/com/xiaochen/common/bluetooth/classicble/DeviceContants.kt: -------------------------------------------------------------------------------- 1 | package com.xiaochen.common.bluetooth.classicble; 2 | 3 | import java.util.* 4 | 5 | /** 6 | *

设备信息

7 | * @author zhenglecheng 8 | * @date 2020/4/13 9 | */ 10 | class DeviceConstants { 11 | companion object { 12 | const val device_name = "" 13 | val service_uuid: UUID = UUID.fromString("00001108-0000-1000-8000-00805F9B34FB") 14 | } 15 | } -------------------------------------------------------------------------------- /component/common_mvvm/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_component.gradle" 2 | apply plugin: 'kotlin-android' 3 | apply plugin: 'kotlin-android-extensions' 4 | dependencies { 5 | 6 | api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 7 | 8 | api project(':component:common_data') 9 | 10 | api thirdDependencies.lifecycle 11 | api thirdDependencies.livedata 12 | api thirdDependencies.viewmodel 13 | api thirdDependencies.viewModelKtx 14 | } 15 | -------------------------------------------------------------------------------- /module/module_apm/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_module.gradle" 2 | apply plugin: 'argusapm' 3 | android { 4 | useLibrary('org.apache.http.legacy') 5 | resourcePrefix "apm_" //给 Module 内的资源名增加前缀, 避免资源名冲突 6 | } 7 | 8 | dependencies { 9 | implementation project(':component:common_base') 10 | implementation project(':component:common_resource') 11 | implementation project(':component:common_sdk') 12 | implementation project(':component:common_service') 13 | } -------------------------------------------------------------------------------- /module/module_router1/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_module.gradle" 2 | 3 | def thirdDependencies = rootProject.ext.thirdDependencies 4 | 5 | android { 6 | resourcePrefix "router1_" //给 Module 内的资源名增加前缀, 避免资源名冲突 7 | } 8 | 9 | dependencies { 10 | implementation project(':component:common_base') 11 | implementation project(':component:common_sdk') 12 | implementation project(':component:common_utils') 13 | implementation project(':component:common_service') 14 | } 15 | -------------------------------------------------------------------------------- /module/module_widget/src/main/java/com/xiaochen/module/widget/ui/fragment/ToggleFragment.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.widget.ui.fragment; 2 | 3 | 4 | import com.xiaochen.module.widget.R; 5 | 6 | /** 7 | * Created by zlc on 2018/7/16. 8 | */ 9 | public class ToggleFragment extends BaseFragment{ 10 | @Override 11 | protected int getLayoutId() { 12 | return R.layout.fragment_toggle; 13 | } 14 | 15 | @Override 16 | protected void initData() { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | -------------------------------------------------------------------------------- /module/module_widget/src/main/java/com/xiaochen/module/widget/ui/fragment/ClockFragment.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.widget.ui.fragment; 2 | 3 | 4 | import com.xiaochen.module.widget.R; 5 | 6 | /** 7 | * Created by zlc on 2018/7/16. 8 | */ 9 | 10 | public class ClockFragment extends BaseFragment { 11 | @Override 12 | protected int getLayoutId() { 13 | return R.layout.fragment_clock; 14 | } 15 | 16 | @Override 17 | protected void initData() { 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /module/module_widget/src/main/java/com/xiaochen/module/widget/ui/fragment/CobwebFragment.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.widget.ui.fragment; 2 | 3 | 4 | import com.xiaochen.module.widget.R; 5 | 6 | /** 7 | * Created by zlc on 2018/7/16. 8 | */ 9 | 10 | public class CobwebFragment extends BaseFragment{ 11 | @Override 12 | protected int getLayoutId() { 13 | return R.layout.fragment_cobweb; 14 | } 15 | 16 | @Override 17 | protected void initData() { 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /component/common_service/src/main/java/com/xiaochen/common/service/CommonNameService.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.common.service; 2 | 3 | import android.content.Context; 4 | 5 | import com.alibaba.android.arouter.facade.template.IProvider; 6 | 7 | /** 8 | *

9 | * 10 | * @author zhenglecheng 11 | * @date 2020/4/29 12 | */ 13 | public interface CommonNameService extends IProvider { 14 | /** 15 | * 获取模块名字 16 | * @return 模块名字 17 | */ 18 | String getModuleName(); 19 | } 20 | -------------------------------------------------------------------------------- /component/common_resource/src/main/res/drawable/common_dialog_cancel_shape.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /module/module_widget/src/main/java/com/xiaochen/module/widget/ui/fragment/FlowLayoutFragment.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.widget.ui.fragment; 2 | 3 | 4 | import com.xiaochen.module.widget.R; 5 | 6 | /** 7 | * Created by zlc on 2018/7/16. 8 | */ 9 | 10 | public class FlowLayoutFragment extends BaseFragment{ 11 | @Override 12 | protected int getLayoutId() { 13 | return R.layout.fragment_flow; 14 | } 15 | 16 | @Override 17 | protected void initData() { 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /module/module_widget/src/main/java/com/xiaochen/module/widget/ui/fragment/MyLayoutFragment.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.widget.ui.fragment; 2 | 3 | 4 | import com.xiaochen.module.widget.R; 5 | 6 | /** 7 | * Created by zlc on 2018/7/16. 8 | */ 9 | 10 | public class MyLayoutFragment extends BaseFragment{ 11 | @Override 12 | protected int getLayoutId() { 13 | return R.layout.fragment_my_layout; 14 | } 15 | 16 | @Override 17 | protected void initData() { 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /component/common_resource/src/main/res/layout/layout_common_loading_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /module/module_widget/src/main/java/com/xiaochen/module/widget/ui/fragment/OlymicRingsFragment.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.widget.ui.fragment; 2 | 3 | 4 | import com.xiaochen.module.widget.R; 5 | 6 | /** 7 | * Created by zlc on 2018/7/16. 8 | */ 9 | 10 | public class OlymicRingsFragment extends BaseFragment{ 11 | @Override 12 | protected int getLayoutId() { 13 | return R.layout.fragment_olympic; 14 | } 15 | 16 | @Override 17 | protected void initData() { 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/layout/fragment_cobweb.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /component/common_bluetooth/src/main/java/com/xiaochen/common/bluetooth/fastble/service/BleConnectEvent.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.common.bluetooth.fastble.service; 2 | 3 | /** 4 | * @author zlc 5 | * email : zlc921022@163.com 6 | * desc : 蓝牙连接 7 | */ 8 | public class BleConnectEvent { 9 | private boolean isSuccess; 10 | 11 | public BleConnectEvent(boolean isSuccess) { 12 | this.isSuccess = isSuccess; 13 | } 14 | 15 | public boolean isSuccess() { 16 | return isSuccess; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/debug/storage/StorageManager.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.debug.storage; 2 | 3 | import com.argusapm.android.Env; 4 | import com.argusapm.android.utils.LogX; 5 | 6 | /** 7 | * 日志数据存储管理类 8 | * 9 | * @author ArgusAPM Team 10 | */ 11 | public class StorageManager { 12 | /** 13 | * 按行保存到文本文件 14 | * 15 | * @param line 16 | */ 17 | public static void saveToFile(String line) { 18 | TraceWriter.log(Env.TAG, line); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /module/module_aop/src/main/java/com/xiaochen/module/aop/DebugTrace.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.aop; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | /** 9 | *

{d}

10 | * 11 | * @author zhenglecheng 12 | * @date 2020-02-28 13 | */ 14 | @Retention(RetentionPolicy.CLASS) 15 | @Target({ElementType.CONSTRUCTOR, ElementType.METHOD}) 16 | public @interface DebugTrace { 17 | } 18 | -------------------------------------------------------------------------------- /module/module_aop/src/main/res/layout/layout_aop.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | mobile 3 | com.apm.mobile 4 | 5 | 内存 6 | total: 7 | dalvik: 8 | native: 9 | other: 10 | M 11 | 12 | 帧率: 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /module/module_dagger2/src/main/java/com/xiaochen/module/dagger2/Person1.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.dagger2; 2 | 3 | 4 | /** 5 | *

6 | * 7 | * @author zhenglecheng 8 | * @date 2020/4/28 9 | */ 10 | public class Person1 { 11 | private String name; 12 | 13 | public Person1(String name) { 14 | this.name = name; 15 | } 16 | 17 | public String getName() { 18 | return name; 19 | } 20 | 21 | public void setName(String name) { 22 | this.name = name; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /component/common_bluetooth/src/main/java/com/xiaochen/common/bluetooth/classicble/ConnectState.kt: -------------------------------------------------------------------------------- 1 | package com.xiaochen.common.bluetooth.classicble 2 | /** 3 | *

蓝牙连接状态类

4 | * @author zhenglecheng 5 | * @date 2020/4/8 6 | */ 7 | object ConnectState { 8 | // 初始状态 9 | const val STATE_NONE = 0 10 | // 服务端监听状态 11 | const val STATE_LISTEN = 1 12 | // 连接状态 13 | const val STATE_CONNECTING = 2 14 | // 连接成功状态 15 | const val STATE_CONNECTED = 3 16 | // 状态 17 | var mState = STATE_NONE 18 | } -------------------------------------------------------------------------------- /component/common_bluetooth/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_component.gradle" 2 | apply plugin: 'kotlin-android' 3 | apply plugin: 'kotlin-android-extensions' 4 | // 扩展库 5 | def thirdDependencies = rootProject.ext.thirdDependencies 6 | def supportDependencies = rootProject.ext.supportDependencies 7 | 8 | dependencies { 9 | api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 10 | api thirdDependencies.fastble 11 | implementation supportDependencies.supportAnnotations 12 | implementation thirdDependencies.timber 13 | } -------------------------------------------------------------------------------- /component/common_widget/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | @color/colorGrayPrimary 4 | @color/colorGraySecondary 5 | #96d15d 6 | #61c36d 7 | #000000 8 | #e8e8e8 9 | #85f9c4 10 | #ffffff 11 | -------------------------------------------------------------------------------- /module/module_dagger2/src/main/java/com/xiaochen/module/dagger2/module/ApplicationModule.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.dagger2.module; 2 | 3 | import com.google.gson.Gson; 4 | 5 | import javax.inject.Singleton; 6 | 7 | import dagger.Module; 8 | import dagger.Provides; 9 | 10 | /** 11 | *

12 | * 13 | * @author zhenglecheng 14 | * @date 2020/4/28 15 | */ 16 | @Module 17 | public class ApplicationModule { 18 | @Singleton 19 | @Provides 20 | public Gson createGson() { 21 | return new Gson(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /module/module_mvp/src/main/java/com/xiaochen/module/mvp/MvpApplication.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.mvp; 2 | 3 | import com.xiaochen.common.base.BaseApplication; 4 | import com.xiaochen.common.data.HttpManager; 5 | 6 | /** 7 | *

8 | * 9 | * @author zhenglecheng 10 | * @date 2020/4/22 11 | */ 12 | public class MvpApplication extends BaseApplication { 13 | @Override 14 | public void onCreate() { 15 | super.onCreate(); 16 | HttpManager.createManager("https://www.wanandroid.com", isDebug, this); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/utils/AspectjUtils.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.utils; 2 | 3 | /** 4 | * @author ArgusAPM Team 5 | */ 6 | public class AspectjUtils { 7 | public static final String JOINPOINT_KIND_CALL_METHOD = "method-call"; 8 | public static final String JOINPOINT_KIND_EXECUTION_METHOD = "method-execution"; 9 | public static final String JOINPOINT_KIND_CALL_CONSTRUCTOR = "constructor-call"; 10 | public static final String JOINPOINT_KIND_EXECUTION_CONSTRUCTOR = "constructor-execution"; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /module/module_dagger2/src/main/java/com/xiaochen/module/dagger2/PersonQualifier.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.dagger2; 2 | 3 | import java.lang.annotation.Documented; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | 7 | import javax.inject.Qualifier; 8 | 9 | /** 10 | *

11 | * 12 | * @author zhenglecheng 13 | * @date 2020/4/28 14 | */ 15 | @Qualifier 16 | @Documented 17 | @Retention(RetentionPolicy.RUNTIME) 18 | public @interface PersonQualifier { 19 | String value() default ""; 20 | } 21 | -------------------------------------------------------------------------------- /module/module_mvvm/src/main/java/com/xiaochen/module/mvvm/MvvmApplication.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.mvvm; 2 | 3 | import com.xiaochen.common.base.BaseApplication; 4 | import com.xiaochen.common.data.HttpManager; 5 | 6 | /** 7 | *

8 | * 9 | * @author zhenglecheng 10 | * @date 2020/4/22 11 | */ 12 | public class MvvmApplication extends BaseApplication { 13 | @Override 14 | public void onCreate() { 15 | super.onCreate(); 16 | HttpManager.createManager("https://www.wanandroid.com", isDebug, this); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /module/module_mvvm/src/main/java/com/xiaochen/module/mvvm/api/IServiceApi.kt: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.mvvm.api 2 | 3 | import com.xiaochen.module.mvvm.response.HomeArticleRespVO 4 | import retrofit2.http.GET 5 | import retrofit2.http.Path 6 | 7 | /** 8 | * 9 | * 服务器接口{d} 10 | * 11 | * @author zhenglecheng 12 | * @date 2019-12-08 13 | */ 14 | interface IServiceApi { 15 | 16 | /** 17 | * 首页文章列表 18 | */ 19 | @GET("/article/list/{page}/json") 20 | suspend fun getHomeArticles(@Path("page") page: Int): HomeArticleRespVO 21 | } 22 | -------------------------------------------------------------------------------- /component/common_resource/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_component.gradle" 2 | // 扩展库 3 | def thirdDependencies = rootProject.ext.thirdDependencies 4 | def supportDependencies = rootProject.ext.supportDependencies 5 | 6 | dependencies { 7 | // 基础ui 8 | api supportDependencies.supportAppcompat 9 | api supportDependencies.recyclerView 10 | api supportDependencies.suppoutDesign 11 | api supportDependencies.supportAnnotations 12 | api supportDependencies.constraintLayout 13 | // 屏幕适配 14 | api thirdDependencies.autoSize 15 | } 16 | -------------------------------------------------------------------------------- /component/common_utils/src/main/java/com/xiaochen/common/utils/AppLogger.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.common.utils; 2 | 3 | import timber.log.Timber; 4 | 5 | /** 6 | * @author zlc 7 | * email : zlc921022@163.com 8 | * desc : APP日志 9 | */ 10 | public final class AppLogger { 11 | 12 | private AppLogger(){} 13 | /** 14 | * 初始化日志 15 | * @param isDebug 是否是调试模式 16 | */ 17 | public static void init(final boolean isDebug) { 18 | if (isDebug) { 19 | Timber.plant(new Timber.DebugTree()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /module/module_dagger2/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_module.gradle" 2 | 3 | def thirdDependencies = rootProject.ext.thirdDependencies 4 | 5 | android { 6 | resourcePrefix "dagger2_" //给 Module 内的资源名增加前缀, 避免资源名冲突 7 | } 8 | 9 | dependencies { 10 | implementation project(':component:common_base') 11 | implementation project(':component:common_utils') 12 | implementation project(':component:common_sdk') 13 | implementation project(':component:common_service') 14 | 15 | annotationProcessor thirdDependencies.dagger2Compiler 16 | } 17 | -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/layout/fragment_home.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 13 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/layout/fragment_smile_face.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /module/module_router2/src/main/assets/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |

跳转测试

10 |

自定义Scheme

11 |

12 | 页面跳转不带参数 13 |

14 |

15 | 页面跳转带参数 16 |

17 | 18 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/layout/fragment_olympic.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /component/common_base/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_component.gradle" 2 | // 扩展库 3 | def supportDependencies = rootProject.ext.supportDependencies 4 | // 第三库 5 | def thirdDependencies = rootProject.ext.thirdDependencies 6 | 7 | //依赖库 8 | dependencies { 9 | 10 | api project(':component:common_resource') 11 | api supportDependencies.multidex 12 | 13 | //其他工具库 14 | api thirdDependencies.statusbarutil 15 | api thirdDependencies.glide 16 | api thirdDependencies.materialDialogs 17 | api thirdDependencies.arouter 18 | api thirdDependencies.timber 19 | } 20 | -------------------------------------------------------------------------------- /module/module_aop/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_module.gradle" 2 | apply plugin: 'android-aspectjx' 3 | android { 4 | aspectjx { 5 | //排除所有package路径中包含`android.support`的class文件及库(jar文件) 6 | exclude 'com.android.support' 7 | exclude 'com.google.gson' 8 | } 9 | resourcePrefix "aop_" //给 Module 内的资源名增加前缀, 避免资源名冲突 10 | } 11 | 12 | dependencies { 13 | implementation fileTree(dir: 'libs', include: ['*.jar']) 14 | 15 | implementation project(':component:common_resource') 16 | // 添加aop依赖 17 | implementation 'org.aspectj:aspectjrt:1.8.9' 18 | } -------------------------------------------------------------------------------- /module/module_dagger2/src/main/java/com/xiaochen/module/dagger2/component/AComponent.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.dagger2.component; 2 | 3 | import com.xiaochen.module.dagger2.Dagger2OtherActivity; 4 | import com.xiaochen.module.dagger2.module.AModule; 5 | import com.xiaochen.module.dagger2.scope.AScope; 6 | 7 | import dagger.Subcomponent; 8 | 9 | /** 10 | *

11 | * 12 | * @author zhenglecheng 13 | * @date 2020/4/28 14 | */ 15 | @AScope 16 | @Subcomponent(modules = AModule.class) 17 | public interface AComponent { 18 | void inject(Dagger2OtherActivity activity); 19 | } 20 | -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/layout/fragment_my.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 14 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/aop/IAopTraceHelper.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.aop; 2 | 3 | /** 4 | * @author ArgusAPM Team 5 | */ 6 | public interface IAopTraceHelper { 7 | void dispatch(long startTime, 8 | String kind, 9 | String sign, 10 | Object[] args, 11 | Object target, 12 | Object thiz, 13 | String location, 14 | String staticPartStr, 15 | String methodName, 16 | Object result 17 | ); 18 | } 19 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/cloudconfig/Constant.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.cloudconfig; 2 | 3 | /** 4 | * 云控逻辑常量配置类 5 | * 6 | * @author ArgusAPM Team 7 | */ 8 | public class Constant { 9 | // 配置请求的最小时间间隔 10 | public static final long INTERVAL = 1 * 60 * 60 * 1000; 11 | public static final long APP_START_CLOUD_MAX_DELAY_TIME = 10 * 1000;//APP(进程)启动候,云控请求最大延迟 12 | public static final long CLOUD_MIN_INTERVAL = 5 * 60 * 1000; //云规则请求的最小时间间隔 13 | public static final String CLOUD_RULE_UPDATE_ACTION = "com.apm.mobile.action.cloud.rule.update"; 14 | } 15 | -------------------------------------------------------------------------------- /module/module_jetpack/src/main/res/layout/fragment_setting.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 14 | -------------------------------------------------------------------------------- /module/module_mvp/src/main/java/com/xiaochen/module/mvp/api/IServiceApi.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.mvp.api; 2 | import com.xiaochen.module.mvp.response.HomeArticleRespVO; 3 | 4 | import io.reactivex.Observable; 5 | import retrofit2.http.GET; 6 | import retrofit2.http.Path; 7 | 8 | /** 9 | *

服务器接口{d}

10 | * 11 | * @author zhenglecheng 12 | * @date 2019-12-08 13 | */ 14 | public interface IServiceApi { 15 | 16 | /** 17 | * 首页文章列表 18 | */ 19 | @GET("article/list/{page}/json") 20 | Observable getHomeArticles(@Path("page") int page); 21 | } 22 | -------------------------------------------------------------------------------- /module/module_router2/src/main/res/layout/router2_fragment_test.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 14 | 15 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/core/job/func/FuncTask.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.core.job.func; 2 | 3 | import com.argusapm.android.api.ApmTask; 4 | import com.argusapm.android.core.storage.IStorage; 5 | import com.argusapm.android.core.tasks.BaseTask; 6 | 7 | /** 8 | * @author ArgusAPM Team 9 | */ 10 | public class FuncTask extends BaseTask { 11 | @Override 12 | protected IStorage getStorage() { 13 | return new FuncStorage(); 14 | } 15 | 16 | @Override 17 | public String getTaskName() { 18 | return ApmTask.TASK_FUNC; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/core/job/net/NetTask.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.core.job.net; 2 | 3 | import com.argusapm.android.api.ApmTask; 4 | import com.argusapm.android.core.storage.IStorage; 5 | import com.argusapm.android.core.tasks.BaseTask; 6 | 7 | /** 8 | * @author ArgusAPM Team 9 | */ 10 | public class NetTask extends BaseTask { 11 | 12 | @Override 13 | protected IStorage getStorage() { 14 | return new NetStorage(); 15 | } 16 | 17 | @Override 18 | public String getTaskName() { 19 | return ApmTask.TASK_NET; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /component/common_data/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_component.gradle" 2 | 3 | // 第三库 4 | def thirdDependencies = rootProject.ext.thirdDependencies 5 | 6 | dependencies { 7 | //网络请求 8 | api thirdDependencies.retrofit 9 | api thirdDependencies.gson 10 | api (thirdDependencies.retrofitConverterGson){ 11 | exclude group : 'com.google.code.gson' 12 | exclude group : 'com.squareup.retrofit2' 13 | } 14 | api (thirdDependencies.okhttpLoggingInterceptor){ 15 | exclude group : 'com.squareup.okhttp3' 16 | } 17 | api thirdDependencies.timber 18 | } 19 | -------------------------------------------------------------------------------- /module/module_aop/src/main/java/com/xiaochen/module/aop/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.aop; 2 | 3 | import android.os.Bundle; 4 | 5 | import androidx.annotation.Nullable; 6 | import androidx.appcompat.app.AppCompatActivity; 7 | 8 | /** 9 | *

10 | * 11 | * @author zhenglecheng 12 | * @date 2020/4/14 13 | */ 14 | public class MainActivity extends AppCompatActivity { 15 | @Override 16 | protected void onCreate(@Nullable Bundle savedInstanceState) { 17 | super.onCreate(savedInstanceState); 18 | setContentView(R.layout.layout_aop); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/core/job/webview/WebTask.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.core.job.webview; 2 | 3 | import com.argusapm.android.api.ApmTask; 4 | import com.argusapm.android.core.storage.IStorage; 5 | import com.argusapm.android.core.tasks.BaseTask; 6 | 7 | /** 8 | * @author ArgusAPM Team 9 | */ 10 | public class WebTask extends BaseTask { 11 | @Override 12 | protected IStorage getStorage() { 13 | return new WebStorage(); 14 | } 15 | 16 | @Override 17 | public String getTaskName() { 18 | return ApmTask.TASK_WEBVIEW; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /component/common_mvp/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_component.gradle"// 第三库 2 | def supportDependencies = rootProject.ext.supportDependencies 3 | def thirdDependencies = rootProject.ext.thirdDependencies 4 | 5 | dependencies { 6 | api project(':component:common_data') 7 | api supportDependencies.supportAppcompat 8 | api thirdDependencies.statusbarutil 9 | api thirdDependencies.rxJava 10 | api (thirdDependencies.rxJavaAdapter){ 11 | exclude group : 'io.reactivex.rxjava2' 12 | } 13 | api thirdDependencies.rxAndroid 14 | api thirdDependencies.lifecycle 15 | } 16 | -------------------------------------------------------------------------------- /module/module_apm/src/main/java/com/xiaochen/module/apm/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.apm; 2 | 3 | import android.os.Bundle; 4 | 5 | import androidx.annotation.Nullable; 6 | 7 | import com.xiaochen.common.base.BaseActivity; 8 | 9 | /** 10 | *

11 | * 12 | * @author zhenglecheng 13 | * @date 2020/5/12 14 | */ 15 | public class MainActivity extends BaseActivity { 16 | @Override 17 | protected void onCreate(@Nullable Bundle savedInstanceState) { 18 | super.onCreate(savedInstanceState); 19 | setContentView(R.layout.apm_activity_main); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /module/module_mvp/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_module.gradle" 2 | def thirdDependencies = rootProject.ext.thirdDependencies 3 | 4 | android { 5 | resourcePrefix "mvp_" //给 Module 内的资源名增加前缀, 避免资源名冲突 6 | } 7 | 8 | dependencies { 9 | implementation project(':component:common_resource') 10 | implementation project(':component:common_utils') 11 | implementation project(':component:common_mvp') 12 | implementation project(':component:common_sdk') 13 | implementation project(':component:common_base') 14 | implementation project(':component:common_service') 15 | 16 | } 17 | 18 | -------------------------------------------------------------------------------- /component/common_sdk/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_component.gradle" 2 | apply plugin: 'kotlin-android' 3 | apply plugin: 'kotlin-android-extensions' 4 | 5 | 6 | def thirdDependencies = rootProject.ext.thirdDependencies 7 | dependencies { 8 | api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 9 | api thirdDependencies.timber 10 | api thirdDependencies.arouter 11 | api thirdDependencies.glide 12 | api thirdDependencies.eventbus 13 | api thirdDependencies.butterknife 14 | api thirdDependencies.dagger2 15 | annotationProcessor thirdDependencies.butterKnifeCompiler 16 | } 17 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/layout/fragment_range_seekbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 13 | 14 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/core/job/func/AopFuncTrace.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.core.job.func; 2 | 3 | import com.argusapm.android.aop.IAopTraceHelper; 4 | 5 | /** 6 | * @author ArgusAPM Team 7 | */ 8 | public class AopFuncTrace implements IAopTraceHelper { 9 | @Override 10 | public void dispatch(long startTime, String kind, String sign, Object[] args, Object target, Object thiz, String location, String staticPartStr, String methodName, Object result) { 11 | FuncTrace.dispatch(startTime, kind, sign, args, target, thiz, location, staticPartStr, methodName, result); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /module/module_bluetooth/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: "../../common_module.gradle" 2 | apply plugin: 'kotlin-android' 3 | apply plugin: 'kotlin-android-extensions' 4 | apply plugin: 'kotlin-kapt' 5 | 6 | def thirdDependencies = rootProject.ext.thirdDependencies 7 | 8 | dependencies { 9 | implementation project(':component:common_base') 10 | implementation project(':component:common_utils') 11 | implementation project(':component:common_bluetooth') 12 | implementation project(':component:common_sdk') 13 | implementation project(':component:common_service') 14 | 15 | kapt thirdDependencies.arouterCompiler 16 | } 17 | -------------------------------------------------------------------------------- /module/module_jetpack/src/main/java/com/xiaochen/module/jetpack/MyViewModel.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.jetpack; 2 | 3 | import androidx.lifecycle.MutableLiveData; 4 | import androidx.lifecycle.ViewModel; 5 | 6 | /** 7 | * @类描述: 8 | * @作者: zhenglecheng 9 | * @创建时间: 2019/10/14 18:25 10 | */ 11 | public class MyViewModel extends ViewModel { 12 | // public String name = "zlc"; 13 | private MutableLiveData mLiveData; 14 | 15 | MutableLiveData getLiveData() { 16 | if(mLiveData == null){ 17 | mLiveData = new MutableLiveData<>(); 18 | } 19 | return mLiveData; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/core/job/appstart/AppStartTask.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.core.job.appstart; 2 | 3 | import com.argusapm.android.api.ApmTask; 4 | import com.argusapm.android.core.storage.IStorage; 5 | import com.argusapm.android.core.tasks.BaseTask; 6 | 7 | /** 8 | * 应用启动Task 9 | * 10 | * @author ArgusAPM Team 11 | */ 12 | public class AppStartTask extends BaseTask { 13 | 14 | @Override 15 | protected IStorage getStorage() { 16 | return new AppStartStorage(); 17 | } 18 | 19 | @Override 20 | public String getTaskName() { 21 | return ApmTask.TASK_APP_START; 22 | } 23 | } -------------------------------------------------------------------------------- /module/module_dagger2/src/main/java/com/xiaochen/module/dagger2/Person.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.dagger2; 2 | 3 | 4 | import javax.inject.Inject; 5 | 6 | /** 7 | *

8 | * 9 | * @author zhenglecheng 10 | * @date 2020/4/28 11 | */ 12 | public class Person { 13 | private String name; 14 | 15 | @Inject 16 | public Person() { 17 | name = "郑乐成"; 18 | } 19 | 20 | public Person(String name) { 21 | this.name = name; 22 | } 23 | 24 | public String getName() { 25 | return name; 26 | } 27 | 28 | public void setName(String name) { 29 | this.name = name; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/aop/IActivityHelper.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.aop; 2 | 3 | import android.app.Activity; 4 | import android.content.Context; 5 | 6 | /** 7 | * @author ArgusAPM Team 8 | */ 9 | public interface IActivityHelper { 10 | // activity的生命周期处理 11 | void invoke(Activity activity, long startTime, String lifeCycle, Object... args); 12 | 13 | // application的onCreate处理 14 | void applicationOnCreate(Context context); 15 | 16 | // application的attachBaseContext处理 17 | void applicationAttachBaseContext(Context context); 18 | 19 | // 扩展用 20 | Object parse(Object... args); 21 | } 22 | -------------------------------------------------------------------------------- /module/module_router2/src/main/res/layout/router2_activity_test.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/layout/fragment_piechart.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | 14 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/layout/fragment_toggle.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | 14 | -------------------------------------------------------------------------------- /argus-apm-main/src/main/java/com/argusapm/android/core/IInfo.java: -------------------------------------------------------------------------------- 1 | package com.argusapm.android.core; 2 | 3 | import android.content.ContentValues; 4 | 5 | import org.json.JSONException; 6 | import org.json.JSONObject; 7 | 8 | import java.io.Serializable; 9 | 10 | /** 11 | * 通用基本数据接口 12 | * 13 | * @author ArgusAPM Team 14 | */ 15 | public interface IInfo extends Serializable { 16 | // 目前是数据库自增字段 17 | int getId(); 18 | 19 | JSONObject toJson() throws JSONException; 20 | 21 | void parserJsonStr(String json) throws JSONException; 22 | 23 | void parserJson(JSONObject json) throws JSONException; 24 | 25 | ContentValues toContentValues(); 26 | 27 | } -------------------------------------------------------------------------------- /component/common_data/src/main/java/com/xiaochen/common/data/BaseResponseCallBack.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.common.data; 2 | 3 | /** 4 | * 服务数据接口回调 5 | * @author admin 6 | */ 7 | public interface BaseResponseCallBack { 8 | 9 | /** 10 | * 开始请求 11 | */ 12 | void onStart(); 13 | 14 | /** 15 | * 请求成功 16 | * 17 | * @param data 对象 18 | */ 19 | void onSuccess(T data); 20 | 21 | /** 22 | * 请求失败 23 | * 24 | * @param code 错误码 25 | * @param errMessage 错误信息 26 | */ 27 | void onFailure(String code, String errMessage); 28 | 29 | /** 30 | * 请求结束 31 | */ 32 | void onEnd(); 33 | } 34 | -------------------------------------------------------------------------------- /module/module_bluetooth/src/main/java/com/xiaochen/module/bluetooth/constant/CmdConstants.kt: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.bluetooth.constant 2 | 3 | /** 4 | *

透传蓝牙-常用命令{d}

5 | * @author zhenglecheng 6 | * @date 2020/4/2 7 | */ 8 | class CmdConstants { 9 | companion object { 10 | // 指令开头 11 | private const val start = "" 12 | const val num_cmd = "" 13 | const val mode_cmd = "" 14 | const val heart_cmd = "" 15 | const val lung_cmd = "" 16 | const val common_cmd = "" 17 | const val search_cmd = "" 18 | const val voice_add_cmd = "" 19 | const val voice_sub_cmd = "" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /component/common_mvvm/src/main/java/com/xiaochen/common/mvvm/BaseResult.kt: -------------------------------------------------------------------------------- 1 | package com.xiaochen.common.mvvm 2 | 3 | /** 4 | *

1

5 | * @author zhenglecheng 6 | */ 7 | sealed class BaseResult { 8 | 9 | /** 10 | * 请求成功返回 11 | */ 12 | data class Success(val data: T?) : BaseResult() 13 | 14 | /** 15 | * 请求失败返回 16 | */ 17 | data class Error(val exception: Exception) : BaseResult() 18 | 19 | override fun toString(): String { 20 | return when (this) { 21 | is Success -> "Success[data=$data]" 22 | is Error -> "Error[exception=$exception]" 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /module/module_router2/src/main/res/layout/router2_activity_main2.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 16 | 17 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/layout/fragment_circle_progress.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 15 | 16 | -------------------------------------------------------------------------------- /component/common_resource/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /component/common_resource/src/main/res/layout/layout_common_right_text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15 | 16 | -------------------------------------------------------------------------------- /component/common_bluetooth/src/main/java/com/xiaochen/common/bluetooth/fastble/constant/DeviceConstants.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.common.bluetooth.fastble.constant; 2 | 3 | /** 4 | * @author zlc 5 | * email : zlc921022@163.com 6 | * desc : 切换蓝牙操作方式类 7 | */ 8 | public final class DeviceConstants { 9 | /** 10 | * 用服务形式操作蓝牙 11 | */ 12 | public static final int SERVICE = 0; 13 | /** 14 | * fastble库操作蓝牙 15 | */ 16 | public static final int FAST_BLE = 1; 17 | /** 18 | * 指令直接间隔发送时间 19 | */ 20 | public static final long SLEEP_TIME = 100; 21 | /** 22 | * 扫描时间 23 | */ 24 | public static final long SCAN_TIME_OUT = 60 * 1000; 25 | } 26 | -------------------------------------------------------------------------------- /module/module_dagger2/src/main/java/com/xiaochen/module/dagger2/module/PersonModule.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.dagger2.module; 2 | 3 | import com.xiaochen.module.dagger2.Person; 4 | import com.xiaochen.module.dagger2.scope.PersonScope; 5 | 6 | import dagger.Module; 7 | import dagger.Provides; 8 | 9 | /** 10 | *

11 | * 12 | * @author zhenglecheng 13 | * @date 2020/4/28 14 | */ 15 | 16 | @Module 17 | public class PersonModule { 18 | 19 | @PersonScope 20 | @Provides 21 | public Person createPerson(String name) { 22 | return new Person(name); 23 | } 24 | 25 | @Provides 26 | public String createName() { 27 | return "小成"; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /module/module_aop/src/main/java/com/xiaochen/module/aop/annotation/Msg.java: -------------------------------------------------------------------------------- 1 | package com.xiaochen.module.aop.annotation; 2 | 3 | import java.lang.annotation.Documented; 4 | import java.lang.annotation.ElementType; 5 | import java.lang.annotation.Inherited; 6 | import java.lang.annotation.Retention; 7 | import java.lang.annotation.RetentionPolicy; 8 | import java.lang.annotation.Target; 9 | 10 | /** 11 | *

{d}

12 | * 13 | * @author zhenglecheng 14 | * @date 2020-02-28 15 | */ 16 | @Target(ElementType.TYPE) 17 | @Retention(RetentionPolicy.RUNTIME) 18 | @Inherited 19 | @Documented 20 | public @interface Msg { 21 | String DEFAULT_MSG = "msg"; 22 | String msg() default DEFAULT_MSG; 23 | } 24 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/layout/fragment_drag_stick.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 16 | 17 | -------------------------------------------------------------------------------- /module/module_widget/src/main/res/drawable/out_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 11 | 14 | 17 | 20 | 21 | -------------------------------------------------------------------------------- /module/module_mvp/src/main/res/layout/mvp_activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 |