Skip to content

Commit

Permalink
Merge pull request #246 from xamarin/updates/slack
Browse files Browse the repository at this point in the history
[SlackTextViewController] Updated to (almost) v1.9.6 to fix iOS 11 bugs
  • Loading branch information
bholmes authored Oct 19, 2017
2 parents e524ae9 + 092fd42 commit 22b1edb
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 20 deletions.
2 changes: 1 addition & 1 deletion iOS/SlackTextViewController/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var IOS_PODS = new List<string> {
"platform :ios, '7.0'",
"install! 'cocoapods', :integrate_targets => false",
"target 'Xamarin' do",
"pod 'SlackTextViewController', '1.9.5'",
" pod 'SlackTextViewController', :git => 'https://github.com/slackhq/SlackTextViewController.git', :commit => '4c74cbab29408dda9af33633f86dcc983a3b5363'",
"end",
};

Expand Down
4 changes: 2 additions & 2 deletions iOS/SlackTextViewController/component/component.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "1.9.5"
version: "1.9.6"
name: SlackTextViewController
id: SlackTextViewController
publisher: Xamarin Inc
Expand All @@ -13,7 +13,7 @@ no_build: true
is_shell: true
local-nuget-repo: ../output
packages:
ios-unified: Xamarin.SlackTextViewController, Version=1.9.5
ios-unified: Xamarin.SlackTextViewController, Version=1.9.6
libraries:
ios-unified: ../output/unified/SlackTextViewController.dll

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>Xamarin.SlackTextViewController</id>
<title>SlackTextViewController for Xamarin.iOS</title>
<version>1.9.5</version>
<version>1.9.6-preview</version>
<authors>Xamarin Inc.</authors>
<owners>Xamarin Inc.</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ interface SlackTextInput : IUITextInput
string WordAt (NSRange range, ref NSRange rangeInText);
}

// @interface SLKTextInputbar : UIToolbar
[BaseType (typeof(UIToolbar), Name = "SLKTextInputbar")]
// @interface SLKTextInputbar : UIView
[BaseType (typeof(UIView), Name = "SLKTextInputbar")]
interface SlackTextInputbar
{
// extern NSString *const SLKTextInputbarDidMoveNotification __attribute__((visibility("default")));
Expand All @@ -58,11 +58,15 @@ interface SlackTextInputbar
NSString DidMoveNotification { get; }


// @property (nonatomic, strong) SLKTextView * textView;
// @property (nonatomic, readonly, strong) SLKTextView * textView;
[Export ("textView", ArgumentSemantic.Strong)]
SlackTextView TextView { get; set; }
SlackTextView TextView { get; }

// @property (nonatomic, readonly, strong) UIView *contentView;
[Export ("contentView", ArgumentSemantic.Strong)]
UIView ContentView { get; }

// @property (nonatomic, strong) SLKInputAccessoryView * inputAccessoryView;
// @property (nonatomic, readonly, strong) SLKInputAccessoryView * inputAccessoryView;
[Export ("inputAccessoryView", ArgumentSemantic.Strong)]
SlackInputAccessoryView SlackInputAccessoryView { get; }

Expand Down Expand Up @@ -224,6 +228,10 @@ interface SlackTextView : SlackTextInput
[Export ("placeholderNumberOfLines")]
nint PlaceholderNumberOfLines { get; set; }

// @property (nonatomic, copy, null_resettable) UIFont *placeholderFont;
[NullAllowed, Export ("placeholderFont")]
UIFont PlaceholderFont { get; set; }

// @property (readwrite, nonatomic) NSUInteger maxNumberOfLines;
[Export ("maxNumberOfLines")]
nuint MaxNumberOfLines { get; set; }
Expand Down Expand Up @@ -620,17 +628,17 @@ interface SlackTextViewController : SlackTextViewDelegate, IUITableViewDelegate,
[Export ("autoCompleting")]
bool AutoCompleting { [Bind ("isAutoCompleting")] get; }

// @property (readonly, copy, nonatomic) NSString * foundPrefix;
// @property (copy, nonatomic) NSString * foundPrefix;
[NullAllowed, Export ("foundPrefix")]
string FoundPrefix { get; }
string FoundPrefix { get; set; }

// @property (readonly, nonatomic) NSRange foundPrefixRange;
// @property (nonatomic) NSRange foundPrefixRange;
[Export ("foundPrefixRange")]
NSRange FoundPrefixRange { get; }
NSRange FoundPrefixRange { get; set; }

// @property (readonly, copy, nonatomic) NSString * foundWord;
// @property (copy, nonatomic) NSString * foundWord;
[NullAllowed, Export ("foundWord")]
string FoundWord { get; }
string FoundWord { get; set; }

// @property (readonly, copy, nonatomic) NSArray * registeredPrefixes;
[Export ("registeredPrefixes", ArgumentSemantic.Copy)]
Expand All @@ -640,10 +648,13 @@ interface SlackTextViewController : SlackTextViewDelegate, IUITableViewDelegate,
[Export ("registerPrefixesForAutoCompletion:")]
void RegisterPrefixesForAutoCompletion ([NullAllowed] string[] prefixes);

// -(BOOL)shouldProcessTextForAutoCompletion:(NSString * _Nonnull)text __attribute__((objc_requires_super));
[Export ("shouldProcessTextForAutoCompletion:")]
// [RequiresSuper]
bool ShouldProcessTextForAutoCompletion (string text);
// - (BOOL)shouldProcessTextForAutoCompletion;
[Export ("shouldProcessTextForAutoCompletion")]
bool ShouldProcessTextForAutoCompletion { get; }

// - (BOOL)shouldDisableTypingSuggestionForAutoCompletion;
[Export ("shouldDisableTypingSuggestionForAutoCompletion")]
bool ShouldDisableTypingSuggestionForAutoCompletion { get; }

// -(void)didChangeAutoCompletionPrefix:(NSString *)prefix andWord:(NSString *)word;
[Export ("didChangeAutoCompletionPrefix:andWord:")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#endif

[assembly: AssemblyVersion ("1.9.0.0")]
[assembly: AssemblyFileVersion ("1.9.0.0")]
[assembly: AssemblyFileVersion ("1.9.6.0")]

[assembly: LinkWith (
"libSlackTextViewController.a",
Expand Down

0 comments on commit 22b1edb

Please sign in to comment.