{"id":16558775,"url":"https://github.com/pengmaster/commonmodule","last_synced_at":"2026-05-29T21:31:05.727Z","repository":{"id":143248473,"uuid":"126947831","full_name":"pengMaster/commonModule","owner":"pengMaster","description":"一款公共Library库,封装设备验证,用户信息,Base类,公共Utils类","archived":false,"fork":false,"pushed_at":"2018-06-13T10:58:43.000Z","size":173,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-15T11:08:27.045Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pengMaster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-27T07:41:27.000Z","updated_at":"2019-04-19T03:26:07.000Z","dependencies_parsed_at":"2023-06-30T06:49:53.357Z","dependency_job_id":null,"html_url":"https://github.com/pengMaster/commonModule","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pengMaster%2FcommonModule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pengMaster%2FcommonModule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pengMaster%2FcommonModule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pengMaster%2FcommonModule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pengMaster","download_url":"https://codeload.github.com/pengMaster/commonModule/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241945526,"owners_count":20046869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T20:23:41.267Z","updated_at":"2025-12-02T23:03:31.808Z","avatar_url":"https://github.com/pengMaster.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e公共库\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://https://github.com/pengMaster/commonModule.git\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/bintray-v2.3.5-brightgreen.svg\" alt=\"Latest Stable Version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/pengMaster\"\u003e\n    \u003cimg src=\"https://travis-ci.org/JessYanCoding/MVPArms.svg?branch=master\" alt=\"Build Status\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/pengMaster\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/API-14%2B-blue.svg?style=flat-square\" alt=\"Min Sdk Version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/pengMaster\"\u003e\n    \u003cimg src=\"http://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square\" alt=\"License\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/pengMaster/commonModule.git\"\u003e\n    \u003cb\u003e开启旅程\u003c/b\u003e\n  \u003c/a\u003e\n\u003c/p\u003e \n\n\n- ## 功能简介\n   - 封装设备验证\n   - 封装用户信息\n   - 封装Base类\n   - 封装常用Utils类\n\n- ## 使用方法\n    ### 1.Add it in your root build.gradle\n    ```java\n    allprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n    ```\n     ### 2.Add it in your App build.gradle \n    ```java\n    dependencies {\n        compile 'com.github.pengMaster:commonModule:v1.1'\n    }\n    ``` \n    \n     ### 3.App下AndroidManifest.xml中添加权限 \n    ```java\n    \u003c!-- 写入扩展存储，向扩展卡写入数据，用于写入离线定位数据 --\u003e\n    \u003cuses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" /\u003e\n    \u003c!-- 访问网络，网络定位需要上网 --\u003e\n    \u003cuses-permission android:name=\"android.permission.INTERNET\" /\u003e\n\n    ```    \n\n     ### 4.在App的Application下初始化 \n    ```java\n        InitApplicationContext.i().initContext(mAppContext);\n    ```    \n\n- ## 功能\n\n    ### 1.获取用户\n    ```java\n        //----------------- 用户1 ---------------\n        User user1 = ConstantUtils.i().getUser1();\n        //----------------- 用户2 ---------------\n        User user2 = ConstantUtils.i().getUser2();\n    ```\n    \n    ### 1.设备验证\n    ```java\n        String baseUrl = \"http://200.200.********/nhis/\";\n        IsDeviceValid.i().isDeviceValid(baseUrl, LoginUtils.LoadMode.FORMAL,\n                MainActivity.this, new ValidCallBack() {\n                    @Override\n                    public void onSuccess(String serverUrl) {\n                        //验证成功\n                        LogUtils.debugInfo(\"onSuccess:\"+serverUrl);\n                    }\n\n                    @Override\n                    public void onError(String error) {\n                        //验证失败\n                        LogUtils.debugInfo(\"onError:\"+error);\n                    }\n                });\n    ```\n    \n    ### 3.Base类以及Utils类直接调取使用\n    \n    \n    ---------------------\n    注: [github地址:https://github.com/pengMaster/commonModule](https://github.com/pengMaster/commonModule)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpengmaster%2Fcommonmodule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpengmaster%2Fcommonmodule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpengmaster%2Fcommonmodule/lists"}