• Stars
    star
    299
  • Rank 134,291 (Top 3 %)
  • Language
    Java
  • Created over 9 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

(Deprecated) SAF(Simple Android Framework)是一个简单的android框架,它为开发Android app提供了基础性组件。

SAF

@Tony沈哲 on weibo Build Status Codacy Badge License

SAF(Simple Android Framework)最早的定位是一个简单的Android框架,现在它可以为Android App开发提供一系列基础性的组件。这个项目第一次提交到google code是2012年的3月26号,我已经断断续续做了5年多了。

SAF曾经在多个项目中使用,包括今夜酒店特价app、锦江之星app、京东内部的多个app(京东众包、京明管家、众包商户端、众包运作主管)等等。 目前google code上的工程早已暂停维护,全部迁移到github上。SAF目前文档版本是1.1.19,下一个版本会是1.2.0。1.2.0发布在即,会有很多新的变化和特性。

遇到任何问题欢迎跟我联系,玩得开心:)

除了SAF自带的demo app外,魔窗的android demo app也使用了SAF,而且也是开源的

主要功能

SAF子项目

SAF已经拆分成多个子项目,每个子项目都可以单独使用,没有任何的依赖关系。

  • 日志框架:https://github.com/fengzhizi715/SAF-Kotlin-log

    下载:

    compile 'com.safframework.log:saf-log:1.5.5'
  • Activity路由框架:https://github.com/fengzhizi715/SAF-Kotlin-Router

    下载:

    dependencies {
       implementation 'com.safframework.router:saf-router:1.2.1'
       implementation 'com.safframework.router:saf-router-annotation:1.2.0'
       annotationProcessor 'com.safframework.router:saf-router-compiler:1.2.0'
       ...
    }
  • 依赖注入框架:https://github.com/fengzhizi715/SAF-Kotlin-InjectView

    下载:

    dependencies {
        implementation 'com.safframework.injectview:saf-injectview:1.1.1'
        implementation 'com.safframework.injectview:saf-injectview-annotation:1.1.1'
        annotationProcessor 'com.safframework.injectview:saf-injectview-compiler:1.1.1'
        ...
    }
  • AOP框架:https://github.com/fengzhizi715/SAF-AOP

    下载:

    compile 'com.safframework:saf-aop:1.3.0'
  • 缓存框架:在saf项目中,并未单独拆分成独立的项目

    下载:

    compile 'com.safframework:saf-cache:1.1.1'
  • 消息队列框架:在saf项目中,并未单独拆分成独立的项目

    下载:

    compile 'com.safframework:saf-queue:1.0.1'
  • 权限框架:在saf项目中,并未单独拆分成独立的项目

    下载:

    compile 'com.safframework:saf-permission:1.1.0'
  • RxLifecycle:在saf项目中,并未单独拆分成独立的项目

    下载:

    compile 'com.safframework:saf-rxlifecycle:1.1.2'

ChangeLog

版本更新记录

Author

联系方式

Blog: http://www.jianshu.com/users/4f2c483c12d8/

Github: https://github.com/fengzhizi715

E-mail:[email protected]

Wechat:fengzhizi715

Contributors

  1. frankswu 完善老版本的Inject框架和Router框架
  2. ymcao 增加AsyncTask替换android系统的AsyncTask
  3. aaron 修改build.gradle,支持多个module合并到一个jar包。

TODO

  1. Utils 全部用Kotlin重写
  2. 优化Router框架

License

Copyright (C) 2012 - present, Tony Shen.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

More Repositories

1

NetDiscovery

NetDiscovery 是一款基于 Vert.x、RxJava 2 等框架实现的通用爬虫框架/中间件。
Java
635
star
2

ProxyPool

给爬虫使用的代理IP池
Java
548
star
3

SAF-Kotlin-log

完全基于 Kotlin 开发的 Android 日志框架,提供极简的 API
Kotlin
269
star
4

SAF-AOP

android的AOP框架,支持android studio、gradle最新版本
Java
262
star
5

user-agent-list

常用浏览器的user-agent列表
Java
234
star
6

SAF-Kotlin-Utils

用 Kolin 做的 Android Utils 库,包括 utils 和 extension
Kotlin
187
star
7

AnalysisApp

一个快速分析某个app使用哪些sdk的小工具
Groovy
163
star
8

AndroidServer

基于 Kotlin + Netty 开发,为 Android App 提供 Server 的功能,包括 Http、TCP、WebSocket 服务
Kotlin
140
star
9

RxCache

A local reactive cache for Java and Android. Now, it supports heap memory、off-heap memory and disk cache.
Java
136
star
10

RxJavaInAction

《RxJava2.x 实战》一书中包含的例子。
Java
120
star
11

saf-logginginterceptor

Android项目中,OKHttp的日志的拦截器
Java
87
star
12

kotlin_tutorial

掘金的小册《Android 进阶:基于 Kotlin 的 Android App 开发实践》中的相关的例子
Kotlin
59
star
13

Tess-TwoDemo

Java
56
star
14

PicCrawler

使用RxJava2 和 Java 8的特性开发的图片爬虫
Java
55
star
15

Netty4Android

Kotlin + Netty 在 Android 上实现 Socket 的服务端 demo
Kotlin
53
star
16

Lifecycle-Coroutines-Extension

AAC 的 Lifecycle 结合 Kotlin Coroutines 进行使用
Kotlin
49
star
17

SAF-Object-Delegate

基于 Kotlin 的委托机制实现对 Extra、SharedPreferences 的封装。已经适配 AndroidX
Kotlin
46
star
18

TFLite-MnistDemo

Kotlin
46
star
19

adbd-connector

Kotlin
43
star
20

bytekit

Java 字节操作的工具库(不是字节码的工具库)
Java
39
star
21

EventBus

使用 Kotlin Coroutine 开发的 EventBus
Kotlin
39
star
22

RxCache4a

RxCache(https://github.com/fengzhizi715/RxCache) for Android
Java
35
star
23

okhttp-extension

okhttp-extension 是针对 okhttp 3 增强的网络框架。使用 Kotlin 特性编写,提供便捷的 DSL 方式创建网络请求,支持协程、响应式编程等等。
Kotlin
35
star
24

blockchain_study

Java
33
star
25

SAF-Kotlin-Router

android路由框架,支持模块化架构
Java
32
star
26

NetDiagnose

Android 网络诊断工具,使用 Kotlin + LiveData + MVVM + Coroutines 开发
Kotlin
26
star
27

KStateMachine

使用 Kotlin 特性实现的有限状态机 (FSM) 框架,基于事件驱动。
Kotlin
24
star
28

kotlin-spring-demo

Kotlin 整合 Spring Boot 2的例子
Kotlin
19
star
29

kvalidation

基于 Kotlin 特性实现的验证框架
Kotlin
17
star
30

LiveDataExtension

Kotlin
16
star
31

Kotlin-Coroutines-Utils

Kotlin Coroutines 的工具类库
Kotlin
16
star
32

RxJava-Utils

在日常开发实践中,本人所积累的 RxJava 相关的工具类
Kotlin
12
star
33

RxConditions

Java
11
star
34

SAF-Kotlin-InjectView

用Kotlin打造的简化版本的ButterKnife
Kotlin
8
star
35

okhttp-logging-interceptor

支持 Android、桌面、后端项目使用的 okhttp 日志拦截器
Kotlin
7
star
36

tony-common

个人java 后台项目中总结的常用类
Java
7
star
37

MLogCat

Java
6
star
38

kcommand

kcommand 是基于 Kotlin 特性实现的执行 Linux/Windows 命令的库
Kotlin
6
star
39

Advance-Kotlin-Tutorials

Kotlin
5
star
40

PubSub

使用 Kotlin Coroutines 实现的 Local Pub/Sub、Event Bus、Message Bus
Kotlin
5
star
41

kotlin-spring-reactive-coroutine-demo

Kotlin 使用 WebFlux、RxJava2 以及 coroutines 的例子
Kotlin
4
star
42

Vertxs

对Vert.x框架的封装
Java
3
star
43

FXHParser

抓取非小号数字货币
Java
2
star
44

NetDiscovery-Admin

Java
2
star
45

multi-level-cache

A multi-level cache framework implemented by RxCache(local cache) and Redis(remote cache).
1
star
46

websocket-demo

Kotlin
1
star
47

kjdbc

Kotlin
1
star
48

retrofit-SAF

saf 的 retrofit 框架,去掉gson和appengin以及okhttp依赖,使用saf中的fastjson和restclient替代
Java
1
star