下载地址: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.androidannotations
toorg.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
@CustomTitle
annotation - 新增
@CustomTitle
注解 - #382
@OnActivityResult
can be used within fragments -
@OnActivityResult
可以在fragment中使用 - #389 Add
@CheckedChange
annotation - 新增
@CheckedChange
注解 - #417 Handle missing manifest or R class
- 处理丢失的manifes或者R类
- #442 Generate public constant for handled extras
- 为处理过的extras生成公共常量
- #459 Add
@FocusChange
and@CheckedChange
annotations - 新增
@FocusChange
和@CheckedChange
注解 - #469 Extended
@OrmLiteDao
support for every enhanced components - 扩展
@OrmLiteDao
支持 每个优化的组件 - #474 Handle multiple
@OptionsMenu
in the class hierarchy - 在class hierarchy中处理多个
@OptionsMenu
- #477 A parameter can be used twice in
@Rest
methods urls - 一个参数可以在
@Rest
方法的urls中使用两次 - #485 Add an
interceptors
field in@Rest
annotation - 在
@Rest
注解中新增interceptors
字段 - #489 Make HierarchyViewer work on any device with
@HierarchyViewerSupport
- 使用
@HierarchyViewerSupport
使得HierarchyViewer可以在任何设备上使用 - #490 Check that AndroidManifest contains internet permission if
@Rest
is used - 假如使用
@Rest
了,将会检查AndroidManifest文件中是否包含internet权限 - #499 Add a
stop()
method for enhanced services - 为优化过的service新增
stop()
方法 - #515
@App
never 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
@SharedPreference
generated class - 暴露在
@SharedPreference
生成类中的shared pref key - #567 Add an
@OptionMenuItem
annotation to inject MenuItem - 新增
@OptionMenuItem
注解用来注入MenuItem - #569 Handle background tasks cancellation
- 处理后台任务取消
- #581 Resource injection for SharedPreferences
- 为SharedPreferences提供资源注入
- #601 Handle enhanced IntentService. Add
@EIntentService
and@ServiceAction
annotations - 处理优化的IntentService。新增
@EIntentService
和@ServiceAction
注解 - #602 Handle
getRootUrl()
method inRest
interface - 在
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
@WindowFeature
annotation - 新增
@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.ClipboardManage
instead ofandroid.text.ClipboardManager
with@SystemService
- 使用
@SystemService
注解时注入android.content.ClipboardManage
代替android.text.ClipboardManager
- #579 #711 #748 #818 Add annotations to manage cookies and headers in
@Rest
interface - 在
@Rest
接口中新增注解来管理cookies和headers - #429 #786 Integration with HoloEverywhere
- 集成HoloEverywhere
- #492 #496 Fix code generation for
@Get
Http Method in the Rest API if params are generics - 修复 假如Rest API中的
@Get
Http方法为泛型时的代码生成
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.ERROR
in 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
@Rest
annotation - 修复当
@Rest
注解中没有定义converters 时的NPE - #597 Use
DatabaseHelper.getDao()
instead ofDaoManager.createDao()
for@OrmLiteDao
implementation - 为
@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
@ItemClick
generation code with parametrized types - 修复
@ItemClick
的生成代码,使用了确认类型的参数 - #678 Log a warning if
@RootContext
field isn't populated - 假如
@RootContext
字段没有注入,则记录一条警告 - #694 Associate the
@UIThread
handler 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
@Touch
annotated method - 允许
@Touch
注解方法中的参数按照任意顺序排列 - #747 Fix code generation for
@EFragment
in 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
/@UIThread
annotated methods - 为
@Background
/@UIThread
注解方法传送异常