<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Cangol-appcoreAndroid 應(yīng)用開發(fā)框架|核心庫

          聯(lián)合創(chuàng)作 · 2023-09-25 03:09

            codecov Join the chat at https://gitter.im/Cangol/Cangol-appcore

          這是一個Android 應(yīng)用核心庫,將應(yīng)用的常用功能模塊化,以便提高開發(fā)效率。 詳細文檔

          引用方式

          Maven

          <dependency>
               <groupId>mobi.cangol.mobile</groupId>
               <artifactId>appcore</artifactId>
               <version>1.0.4/version>
               <type>pom</type>
           </dependency>

          Gradle

          compile 'mobi.cangol.mobile:appcore:1.0.4@jar'

          CoreApplication

              核心Application 提供整個庫的初始化和一些方法, 詳細文檔

          AppService

              應(yīng)用服務(wù):實現(xiàn)方式為依賴注入,這是整個框架的核心內(nèi)容

              使用方式

          //獲取方式類似系統(tǒng)SystemService
          ConfigService configService = (ConfigService) getAppService(AppService.CONFIG_SERVICE);
          //可修改屬性
          ServiceProperty p=configService.getServiceProperty();
          p.putString(ConfigService.APP_DIR, Constants.APP_DIR);
          p.putString(ConfigService.SHARED_NAME, Constants.SHARED);

          數(shù)據(jù)庫ORM

          • 實現(xiàn)數(shù)據(jù)庫的orm

          • 數(shù)據(jù)表的創(chuàng)建刪除在無需SQL

          • 對數(shù)據(jù)對象的CRUD均無需SQL語句,并支持復(fù)雜條件租車查詢。

          日志Log

              封裝并重寫部分方法,是的日志輸出更格式化,并提供可控制“開發(fā)”和”發(fā)布“模式的開關(guān)。 詳細文檔

          數(shù)據(jù)解析

              利用注解和反射實現(xiàn)對XML和JSON對象化數(shù)據(jù)解析
          輕量級解析庫,無需引入fastjson或gson,比這些更輕量級,而且同樣支持xml的解析。

          安全模塊

              提供三種方式的工具類

          網(wǎng)絡(luò)Http請求

              修正AsyncHttpClient的部分bug,優(yōu)化請求參數(shù)配置,擴展超時自動重試機制,增加gzip的支持。并擴展:

          WebService請求

              使用此類需要ksoap2-android-assembly-3.0.0-jar-with-dependencies.jar 對Soap進行異步封裝。詳細文檔

          Utils工具類

          瀏覽 18
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  在线无码视频蜜桃 | 亚洲天堂网中文字幕 | 久久国产乱子伦免费精品 | 成人婷婷五月 | 留学生苏琪和外国男友第二季 |