Latest 0.5.6
Homepage https://github.com/liangtongdev/LTxCore
License MIT
Platforms ios 9.0
Dependencies MBProgressHUD, MJRefresh, DZNEmptyDataSet, AFNetworking, SSZipArchive, LTxCategories, FMDBExtension
Frameworks Foundation, UIKit
Authors

LTxCore

组件化管理(构建)移动应用

使用例子

程序主体颜色等配置

根据需要配置,如果不需要,则忽略即可

    //程序主色调。导航栏颜色等
    [LTxCoreConfig sharedInstance].skinColor = [UIColor brownColor];
    [[LTxCoreConfig sharedInstance] appSetup];

    //文件系统,数据库初始化 - 如果用到断点下载等功能,需要配置
    [LTxCoreFileManager fileManagerInit];
    [LTxCoreDatabase tablesInit];

容器

@interface MainTableViewController : LTxCoreBaseTableViewController
@end

[self addPullDownRefresh:^{
        //下拉刷新
    } andPullUpRefresh:^{
        //上拉加载更多
    }];

文件预览

LTxCore

        LTxCoreFilePreviewViewController* previewVC = [[LTxCoreFilePreviewViewController alloc] init];
        previewVC.fileURL = [NSURL URLWithString:@"https://developer.apple.com/ibeacon/Getting-Started-with-iBeacon.pdf"];
        previewVC.shareWithOtherApp = YES;
        previewVC.needToDownload = YES;
        previewVC.preferCache = YES;
        [self.navigationController pushViewController:previewVC animated:YES];

配置文件<部分摘取>

“`Info.plist

type

<string>debug</string>
<key>appId</key>
<string>ebe2ea6b-5974-46d8-b3e2-5e9808889aad</string>
<key>pushId</key>
<string>726566836973cbcd74c5ed54</string>
<key>pageSize</key>
<integer>20</integer>


### 其他

#### 为什么要对项目进行组件化维护?

随着负责的项目数量增加,通用的代码升级(适配)成了问题。

前期虽然对代码做了封装,可不同工程通过代码copy的形式进行维护很容易遗漏甚至出现冲突。

#### 为什么分开维护组件?

+ 保证更新/验证能够快速进行。
+ 目标清晰,快速编译等。

#### 定制化组件?

Master中主要针对共通部分开发,定制化内容在branch中进行,通过建立不同的tag供使用

#### Release Log

+  0.0.1 (2018/07/14)  - 初版发布:基类、工具、程序配置

+  0.0.2   - 文件预览 && 后台下载

+  0.5.0   - Cocoapods-related file bug-fix

+  0.5.2   - 添加ShareHost相关配置

+  0.5.3   - 资源文件更新

+  0.5.4   - 等待框

+  0.5.5   - 抽离NSUserDefaults及FMDB扩展

+  0.5.6   - 空画面API公布

#### Contacts

[email protected]

Latest podspec

{
    "name": "LTxCore",
    "version": "0.5.6",
    "summary": "u7ec4u4ef6u5316u7ba1u7406u6838u5fc3u6a21u5757.",
    "license": "MIT",
    "authors": {
        "liangtong": "[email protected]"
    },
    "homepage": "https://github.com/liangtongdev/LTxCore",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/liangtongdev/LTxCore.git",
        "tag": "0.5.6",
        "submodules": true
    },
    "dependencies": {
        "MBProgressHUD": [],
        "MJRefresh": [
            "~> 3.1.15.3"
        ],
        "DZNEmptyDataSet": [
            "~> 1.8.1"
        ],
        "AFNetworking": [
            "~> 3.2.1"
        ],
        "SSZipArchive": [
            "~> 2.1.3"
        ],
        "LTxCategories": [],
        "FMDBExtension": []
    },
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "subspecs": [
        {
            "name": "Model",
            "source_files": "LTxCore/Model/*.{h,m}",
            "public_header_files": "LTxCore/Model/*.h"
        },
        {
            "name": "Utils",
            "source_files": "LTxCore/Utils/*.{h,m}",
            "public_header_files": "LTxCore/Utils/*.h",
            "dependencies": {
                "LTxCore/Model": []
            }
        },
        {
            "name": "Views",
            "source_files": "LTxCore/Views/*.{h,m}",
            "public_header_files": "LTxCore/Views/*.h",
            "dependencies": {
                "LTxCore/Utils": []
            }
        },
        {
            "name": "ViewModel",
            "source_files": "LTxCore/ViewModel/*.{h,m}",
            "public_header_files": "LTxCore/ViewModel/*.h",
            "dependencies": {
                "LTxCore/Utils": []
            }
        },
        {
            "name": "Controllers",
            "source_files": "LTxCore/Controllers/*.{h,m}",
            "public_header_files": "LTxCore/Controllers/**/*.h",
            "dependencies": {
                "LTxCore/Views": [],
                "LTxCore/ViewModel": []
            }
        },
        {
            "name": "Core",
            "public_header_files": "LTxCore/LTxCore.h",
            "source_files": "LTxCore/LTxCore.h",
            "dependencies": {
                "LTxCore/Controllers": []
            }
        }
    ]
}

Pin It on Pinterest

Share This