Skip to content

Commit

Permalink
Merge pull request #70 from hansemannn/update-sdwebimage
Browse files Browse the repository at this point in the history
Update SDWebImage, move project, lint sources, add license
  • Loading branch information
AndreaVitale authored Nov 16, 2019
2 parents 9799c9f + 3d680ca commit bb46641
Show file tree
Hide file tree
Showing 66 changed files with 748 additions and 621 deletions.
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
.DS_Store
ios/iphone/*.zip
ios/*.zip
ios/dist
ios/build
android/dist/*.zip
android/build/*
android/libs/
phobeous-build.properties
/android/android/java-sources.txt
/android/android/libs
/ios/Carthage
/ios/Cartfile.resolved
ios/imageview-ios.xcodeproj/project.xcworkspace/xcuserdata/*.xcuserdatad
ios/imageview-ios.xcodeproj/project.xcworkspace/xcuserdata
ios/imageview-ios.xcodeproj/xcuserdata
7 changes: 7 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2016-present Andrea Vitale

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Empty file removed android/LICENSE
Empty file.
96 changes: 96 additions & 0 deletions ios/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
---
# BasedOnStyle: WebKit
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlinesLeft: false
AlignOperands: false
AlignTrailingComments: false
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
BreakBeforeBinaryOperators: All
BreakBeforeBraces: WebKit
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: true
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 0
CommentPragmas: '^ IWYU pragma:'
BreakBeforeInheritanceComma: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: false
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: false
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|isl|json)/)'
Priority: 3
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '$'
IndentCaseLabels: false
IndentWidth: 2
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: Inner
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
ReflowComments: true
SortIncludes: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 8
UseTab: Never
...
File renamed without changes.
1 change: 1 addition & 0 deletions ios/Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "SDWebImage/SDWebImage" ~> 4.4.6
49 changes: 49 additions & 0 deletions ios/Classes/AvImageviewImageView.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* This module was developed by
* Andrea Vitale
* [email protected]
*
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2016 by Appcelerator, Inc. All Rights Reserved.
*/

#import "SDWebImage/FLAnimatedImageView+WebCache.h"
#import "SDWebImage/UIImageView+WebCache.h"
#import "TiUIView.h"

@interface AvImageviewImageView : TiUIView {
@private
BOOL loadingIndicator;
BOOL clipsToBounds;
TiColor *loadingIndicatorColor;

TiDimension width;
TiDimension height;
CGFloat autoHeight;
CGFloat autoWidth;

FLAnimatedImageView *imageView;
UIActivityIndicatorView *activityIndicator;

NSString *placeholderImagePath;
NSString *brokenLinkImagePath;

NSDictionary *requestHeader;
SDWebImageOptions handleCookies;
id imageObject;
BOOL configurationComplete;
}

- (void)setWidth_:(id)width;
- (void)setHeight_:(id)height;
- (void)setImage_:(id)args;
- (void)setDefaultImage_:(id)args;
- (void)setBrokenLinkImage_:(id)args;
- (void)setLoadingIndicator_:(id)args;
- (void)setLoadingIndicatorColor_:(id)args;
- (void)setContentMode_:(id)args;
- (void)setClipsToBounds_:(id)clips;
- (void)setRequestHeader_:(id)args;
- (void)setTimeout_:(id)args;

@end
Loading

0 comments on commit bb46641

Please sign in to comment.