Repository: incubator-weex Updated Branches: refs/heads/master b48c23d68 -> 10182df72
* [iOS] remove deprecated message Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/10182df7 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/10182df7 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/10182df7 Branch: refs/heads/master Commit: 10182df72d4f12f86386646669887f2fdab8858a Parents: b48c23d Author: acton393 <zhangxing610...@gmail.com> Authored: Mon Feb 26 11:53:04 2018 +0800 Committer: acton393 <zhangxing610...@gmail.com> Committed: Mon Feb 26 11:53:04 2018 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK.xcodeproj/project.pbxproj | 4 ++-- ios/sdk/WeexSDK/Sources/Model/WXComponent.h | 3 ++- ios/sdk/WeexSDK/Sources/Protocol/WXModuleProtocol.h | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/10182df7/ios/sdk/WeexSDK.xcodeproj/project.pbxproj ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK.xcodeproj/project.pbxproj b/ios/sdk/WeexSDK.xcodeproj/project.pbxproj index 4645949..f017ac8 100644 --- a/ios/sdk/WeexSDK.xcodeproj/project.pbxproj +++ b/ios/sdk/WeexSDK.xcodeproj/project.pbxproj @@ -2578,7 +2578,7 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; GCC_PREFIX_HEADER = "WeexSDK/Sources/Supporting Files/WeexSDK-Prefix.pch"; GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)"; - GCC_TREAT_WARNINGS_AS_ERRORS = NO; + GCC_TREAT_WARNINGS_AS_ERRORS = YES; HEADER_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/WeexSDK/Dependency", @@ -2623,7 +2623,7 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; GCC_PREFIX_HEADER = "WeexSDK/Sources/Supporting Files/WeexSDK-Prefix.pch"; GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)"; - GCC_TREAT_WARNINGS_AS_ERRORS = NO; + GCC_TREAT_WARNINGS_AS_ERRORS = YES; HEADER_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/WeexSDK/Dependency", http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/10182df7/ios/sdk/WeexSDK/Sources/Model/WXComponent.h ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Model/WXComponent.h b/ios/sdk/WeexSDK/Sources/Model/WXComponent.h index 92f1e34..5e8ba70 100644 --- a/ios/sdk/WeexSDK/Sources/Model/WXComponent.h +++ b/ios/sdk/WeexSDK/Sources/Model/WXComponent.h @@ -32,7 +32,8 @@ typedef enum : NSUInteger { * @abstract the component callback , result can be string or dictionary. * @discussion callback data to js, the id of callback function will be removed to save memory. */ -typedef void (^WXCallback)(_Nonnull id result) DEPRECATED_MSG_ATTRIBUTE("use WXKeepAliveCallback, you can specify keep the callback or not, if keeped, it can be called multi times, or it will be removed after called."); +typedef void (^WXCallback)(_Nonnull id result); +// DEPRECATED_MSG_ATTRIBUTE("use WXKeepAliveCallback, you can specify keep the callback or not, if keeped, it can be called multi times, or it will be removed after called.") /** * @abstract the component callback , result can be string or dictionary. http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/10182df7/ios/sdk/WeexSDK/Sources/Protocol/WXModuleProtocol.h ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Protocol/WXModuleProtocol.h b/ios/sdk/WeexSDK/Sources/Protocol/WXModuleProtocol.h index 6ea275c..4c8f877 100644 --- a/ios/sdk/WeexSDK/Sources/Protocol/WXModuleProtocol.h +++ b/ios/sdk/WeexSDK/Sources/Protocol/WXModuleProtocol.h @@ -34,7 +34,8 @@ * @abstract the module callback , result can be string or dictionary. * @discussion callback data to js, the id of callback function will be removed to save memory. */ -typedef void (^WXModuleCallback)(id result) DEPRECATED_MSG_ATTRIBUTE("use WXModuleKeepAliveCallback, you can specify keep the callback or not, if keeped, it can be called multi times, or it will be removed after called."); +typedef void (^WXModuleCallback)(id result); +//DEPRECATED_MSG_ATTRIBUTE("use WXModuleKeepAliveCallback, you can specify keep the callback or not, if keeped, it can be called multi times, or it will be removed after called.") /** * @abstract the module callback , result can be string or dictionary.