You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by gu...@apache.org on 2017/10/04 09:00:07 UTC
[1/4] incubator-weex git commit: * [ios] add prefix for category
Repository: incubator-weex
Updated Branches:
refs/heads/release-0.16 46226330b -> cab09ceef
* [ios] add prefix for category
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/bfa7828e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/bfa7828e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/bfa7828e
Branch: refs/heads/release-0.16
Commit: bfa7828e1c0b30da1fc66ff0b47f5ca522c9319f
Parents: 840094a
Author: acton393 <zh...@gmail.com>
Authored: Wed Oct 4 12:33:52 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 14:55:39 2017 +0800
----------------------------------------------------------------------
ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/bfa7828e/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
index 5d4da0a..ae43cd6 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
@@ -26,7 +26,7 @@
#import "WXUtility.h"
#import "WXLoadingComponent.h"
#import "WXRefreshComponent.h"
-@interface UIScrollView(UIScrollerView_ContentInsetAdjustmentBehavior)
+@interface UIScrollView(WeexUIScrollerView_ContentInsetAdjustmentBehavior)
@property(nonatomic, assign)NSUInteger contentInsetAdjustmentBehavior;
@end
[3/4] incubator-weex git commit: * [ios] update weexsdk version to
0.16.1
Posted by gu...@apache.org.
* [ios] update weexsdk version to 0.16.1
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/cbe36825
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/cbe36825
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/cbe36825
Branch: refs/heads/release-0.16
Commit: cbe368254d9f293e5496c58345aa64e422056e84
Parents: bfa7828
Author: gurisxie <27...@qq.com>
Authored: Wed Oct 4 15:15:02 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 15:15:02 2017 +0800
----------------------------------------------------------------------
WeexSDK.podspec | 2 +-
ios/sdk/WeexSDK/Sources/Utility/WXDefine.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/cbe36825/WeexSDK.podspec
----------------------------------------------------------------------
diff --git a/WeexSDK.podspec b/WeexSDK.podspec
index 5cb6864..47f2085 100644
--- a/WeexSDK.podspec
+++ b/WeexSDK.podspec
@@ -3,7 +3,7 @@ Pod::Spec.new do |s|
s.name = "WeexSDK"
- s.version = "0.16.0"
+ s.version = "0.16.1"
s.summary = "WeexSDK Source ."
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/cbe36825/ios/sdk/WeexSDK/Sources/Utility/WXDefine.h
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Utility/WXDefine.h b/ios/sdk/WeexSDK/Sources/Utility/WXDefine.h
index 0867e99..48fe117 100644
--- a/ios/sdk/WeexSDK/Sources/Utility/WXDefine.h
+++ b/ios/sdk/WeexSDK/Sources/Utility/WXDefine.h
@@ -20,7 +20,7 @@
#ifndef __WX_DEFINE_H__
#define __WX_DEFINE_H__
-#define WX_SDK_VERSION @"0.16.0"
+#define WX_SDK_VERSION @"0.16.1"
#if defined(__cplusplus)
#define WX_EXTERN extern "C" __attribute__((visibility("default")))
[4/4] incubator-weex git commit: Merge branch 'master' into
release-0.16
Posted by gu...@apache.org.
Merge branch 'master' into release-0.16
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/cab09cee
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/cab09cee
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/cab09cee
Branch: refs/heads/release-0.16
Commit: cab09ceef683df551d505f0442aadbe0591ee14b
Parents: 4622633 cbe3682
Author: gurisxie <27...@qq.com>
Authored: Wed Oct 4 16:59:51 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:59:51 2017 +0800
----------------------------------------------------------------------
WeexSDK.podspec | 2 +-
.../Component/RecycleList/WXRecycleListComponent.m | 7 -------
.../Sources/Component/Recycler/WXRecyclerComponent.m | 7 -------
ios/sdk/WeexSDK/Sources/Component/WXListComponent.m | 7 -------
.../WeexSDK/Sources/Component/WXScrollerComponent.m | 15 +++++++--------
ios/sdk/WeexSDK/Sources/Utility/WXDefine.h | 2 +-
6 files changed, 9 insertions(+), 31 deletions(-)
----------------------------------------------------------------------
[2/4] incubator-weex git commit: * [ios] adapter for iOS 11
Posted by gu...@apache.org.
* [ios] adapter for iOS 11
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/840094a3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/840094a3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/840094a3
Branch: refs/heads/release-0.16
Commit: 840094a3b12d54f1ebe404235af045bf05701749
Parents: 66d8dde
Author: acton393 <zh...@gmail.com>
Authored: Tue Oct 3 18:48:30 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 14:55:39 2017 +0800
----------------------------------------------------------------------
.../Component/RecycleList/WXRecycleListComponent.m | 7 -------
.../Sources/Component/Recycler/WXRecyclerComponent.m | 7 -------
ios/sdk/WeexSDK/Sources/Component/WXListComponent.m | 7 -------
.../WeexSDK/Sources/Component/WXScrollerComponent.m | 15 +++++++--------
4 files changed, 7 insertions(+), 29 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/840094a3/ios/sdk/WeexSDK/Sources/Component/RecycleList/WXRecycleListComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/RecycleList/WXRecycleListComponent.m b/ios/sdk/WeexSDK/Sources/Component/RecycleList/WXRecycleListComponent.m
index a1be149..71a52f5 100644
--- a/ios/sdk/WeexSDK/Sources/Component/RecycleList/WXRecycleListComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/RecycleList/WXRecycleListComponent.m
@@ -101,13 +101,6 @@ WX_EXPORT_METHOD(@selector(scrollTo:options:))
_collectionView.allowsMultipleSelection = NO;
_collectionView.dataSource = self;
_collectionView.delegate = self;
-#ifdef __IPHONE_11_0
- if (@available(iOS 11.0, *)) {
- _collectionView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
- } else {
- // Fallback on earlier versions
- }
-#endif
_templateManager.collectionView = _collectionView;
_updateManager.collectionView = _collectionView;
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/840094a3/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m b/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m
index 63cbf29..1164472 100644
--- a/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m
@@ -173,13 +173,6 @@ typedef enum : NSUInteger {
_dragController.dragingCell = [[WXCollectionViewCell alloc] initWithFrame:CGRectMake(0, 0, 100, 100/2.0f)];
_dragController.collectionView = _collectionView;
-#ifdef __IPHONE_11_0
- if (@available(iOS 11.0, *)) {
- _collectionView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
- } else {
- // Fallback on earlier versions
- }
-#endif
[self performUpdatesWithCompletion:^(BOOL finished) {
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/840094a3/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
index f1b3361..cb9237f 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
@@ -155,13 +155,6 @@
_tableView.delegate = self;
_tableView.dataSource = self;
_tableView.userInteractionEnabled = YES;
-#ifdef __IPHONE_11_0
- if (@available(iOS 11.0, *)) {
- _tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
- } else {
- // Fallback on earlier versions
- }
-#endif
}
- (void)viewWillUnload
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/840094a3/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
index d592a8c..5d4da0a 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
@@ -26,6 +26,9 @@
#import "WXUtility.h"
#import "WXLoadingComponent.h"
#import "WXRefreshComponent.h"
+@interface UIScrollView(UIScrollerView_ContentInsetAdjustmentBehavior)
+@property(nonatomic, assign)NSUInteger contentInsetAdjustmentBehavior;
+@end
@interface WXScrollToTarget : NSObject
@@ -154,14 +157,10 @@ WX_EXPORT_METHOD(@selector(resetLoadmore))
scrollView.pagingEnabled = _pagingEnabled;
scrollView.alwaysBounceHorizontal = _alwaysScrollableHorizontal;
scrollView.alwaysBounceVertical = _alwaysScrollableVertical;
-
-#ifdef __IPHONE_11_0
- if (@available(iOS 11.0, *)) {
- scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
- } else {
- // Fallback on earlier versions
+ if (WX_SYS_VERSION_GREATER_THAN_OR_EQUAL_TO(@"11.0")) {
+ // now use the runtime to forbid the contentInset being Adjusted
+ scrollView.contentInsetAdjustmentBehavior = 2;
}
-#endif
if (self.ancestorScroller) {
scrollView.scrollsToTop = NO;
@@ -522,7 +521,7 @@ WX_EXPORT_METHOD(@selector(resetLoadmore))
distance = scrollView.contentOffset.y - _lastScrollEventFiredOffset.y;
}
if (fabs(distance) >= _offsetAccuracy) {
- [self fireEvent:@"scroll" params:@{@"contentSize":contentSizeData,@"contentOffset":contentOffsetData} domChanges:nil];
+// [self fireEvent:@"scroll" params:@{@"contentSize":contentSizeData,@"contentOffset":contentOffsetData} domChanges:nil];
_lastScrollEventFiredOffset = scrollView.contentOffset;
}
}