AndroidAnnotation
目录(?)[+]
下载地址:Download AndroidAnnotations 3.0
Latest stable release : 3.0 #
Released on December 27, 2013
Important: Non backward compatible changes 不向后兼容的变动
- #369 Renamed groupId and packages from
com.googlecode.androidannotationstoorg.androidannotations - #410 The API helpers are generated at compile time if needed instead of being part of the API jar.
Main changes and bug fixes 主要的变动和bug修复
- #330 Add support of generics on RestTemplate methods
- 新增在RestTemplate方法中支持泛型
- #376 Add
@CustomTitleannotation - 新增
@CustomTitle注解 - #382
@OnActivityResultcan be used within fragments -
@OnActivityResult可以在fragment中使用 - #389 Add
@CheckedChangeannotation - 新增
@CheckedChange注解 - #417 Handle missing manifest or R class
- 处理丢失的manifes或者R类
- #442 Generate public constant for handled extras
- 为处理过的extras生成公共常量
- #459 Add
@FocusChangeand@CheckedChangeannotations - 新增
@FocusChange和@CheckedChange注解 - #469 Extended
@OrmLiteDaosupport for every enhanced components - 扩展
@OrmLiteDao支持 每个优化的组件 - #474 Handle multiple
@OptionsMenuin the class hierarchy - 在class hierarchy中处理多个
@OptionsMenu - #477 A parameter can be used twice in
@Restmethods urls - 一个参数可以在
@Rest方法的urls中使用两次 - #485 Add an
interceptorsfield in@Restannotation - 在
@Rest注解中新增interceptors字段 - #489 Make HierarchyViewer work on any device with
@HierarchyViewerSupport - 使用
@HierarchyViewerSupport使得HierarchyViewer可以在任何设备上使用 - #490 Check that AndroidManifest contains internet permission if
@Restis used - 假如使用
@Rest了,将会检查AndroidManifest文件中是否包含internet权限 - #499 Add a
stop()method for enhanced services - 为优化过的service新增
stop()方法 - #515
@Appnever injects null -
@App永远不会注入null - #522 GreenDroid support is deprecated and will be dropped on the next release.
- GreenDroid支持已经被弃用,并且下个版本中将不再可用
- #525 Add delay field in
@Background - 在
@Background中新增延迟字段 - #526 Otto integration
- 继承Otto
- #554 Expose the shared pref key in
@SharedPreferencegenerated class - 暴露在
@SharedPreference生成类中的shared pref key - #567 Add an
@OptionMenuItemannotation to inject MenuItem - 新增
@OptionMenuItem注解用来注入MenuItem - #569 Handle background tasks cancellation
- 处理后台任务取消
- #581 Resource injection for SharedPreferences
- 为SharedPreferences提供资源注入
- #601 Handle enhanced IntentService. Add
@EIntentServiceand@ServiceActionannotations - 处理优化的IntentService。新增
@EIntentService和@ServiceAction注解 - #602 Handle
getRootUrl()method inRestinterface - 在
Rest接口中处理getRootUrl()方法 - #605 Add check in UIThread generated code to reuse current thread if possible
- 新增在UIThread生成代码中检测是否可以重用当前线程
- #609 Add processor option to specify package of R class
- 为R类的指定包新增处理器选项
- #615 Add
@WindowFeatureannotation - 新增
@WindowFeature注解 - #617 Fix NullPointerException thrown during refactoring
- 修复在重构时的NullPointerException异常抛出
- #629 Handle RuntimeExceptionDao in
@OrmLiteDao - 在
@OrmLiteDao中处理RuntimeExceptionDao - #680 Fix
IntentBuilder.startForResult()for Fragment - 为Fragment修复
IntentBuilder.startForResult() - #710 Inject
android.content.ClipboardManageinstead ofandroid.text.ClipboardManagerwith@SystemService - 使用
@SystemService注解时注入android.content.ClipboardManage代替android.text.ClipboardManager - #579 #711 #748 #818 Add annotations to manage cookies and headers in
@Restinterface - 在
@Rest接口中新增注解来管理cookies和headers - #429 #786 Integration with HoloEverywhere
- 集成HoloEverywhere
- #492 #496 Fix code generation for
@GetHttp Method in the Rest API if params are generics - 修复 假如Rest API中的
@GetHttp方法为泛型时的代码生成
Refactoring 重构
- #424 Changing processing order: ancestors first
- 改变处理顺序:祖先优先
- #453 Use canonical names in AA core instead of harcoded class names
- 在AA核心中使用canonical 名代替harcoded 类名
- #495 Added some tests around rest API
- 为rest API新增一些测试
- #497 Optimize build time by updating the maven-javadoc-plugin
- 更新maven-javadoc-plugin来优化构造时间
- #511 Check for
TypeKind.ERRORin addition to ErrorType in case of errors - #521 Declare supported options in
getSupportedOptions() - 在
getSupportedOptions()中声明支持选项 - #562 Handle objects implementing both Serializable and Parcelable in extra
- 在extra中处理对象实现Serializable 和Parcelable
- #593 Fixed NPE when converters are not defined in the
@Restannotation - 修复当
@Rest注解中没有定义converters 时的NPE - #597 Use
DatabaseHelper.getDao()instead ofDaoManager.createDao()for@OrmLiteDaoimplementation - 为
@OrmLiteDao实现使用DatabaseHelper.getDao()代替DaoManager.createDao() - #618 Enhanced crash report message
- 优化事故报告消息
- #619 Refactor AndroidAnnotations core to handle validation and processing in same class
- 重构AA核心来操作同一个类中的确认和处理
- #627 Fix
@ItemClickgeneration code with parametrized types - 修复
@ItemClick的生成代码,使用了确认类型的参数 - #678 Log a warning if
@RootContextfield isn't populated - 假如
@RootContext字段没有注入,则记录一条警告 - #694 Associate the
@UIThreadhandler to the main thread - 将主进程和
@UIThread处理器联系起来 - #733 Fix extra injection generated code
- 修复extra注入生成代码
- #734 Check that API and core version matches
- 检测API和核心版本的匹配性
- #736 Allow any order for params in a
@Touchannotated method - 允许
@Touch注解方法中的参数按照任意顺序排列 - #747 Fix code generation for
@EFragmentin Froyo - 修复Froyo中
@EFragment的代码生成 - #785 Ignore Internet permission check in library project
- 在library工程中忽略Internet权限检测
- #792 Fix StackOverflowError with cyclic dependencies with singleton beans
- 修复StackOverflowError 单例bean的循环依赖
- #794 Add custom logger
- 新增自定义logger
- #677 #682 Propagate exceptions on
@Background/@UIThreadannotated methods - 为
@Background/@UIThread注解方法传送异常