Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit dac10a8

Browse files
committed
Merge branch 'release/2.6.0'
2 parents 0a596fb + 32ecc4e commit dac10a8

File tree

7 files changed

+63
-32
lines changed

7 files changed

+63
-32
lines changed

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
55

66
# User-specific files
7+
.DS_Store
78
*.suo
89
*.user
910
*.userosscache
@@ -221,7 +222,7 @@ ClientBin/
221222
*.publishsettings
222223
orleans.codegen.cs
223224

224-
# Including strong name files can present a security risk
225+
# Including strong name files can present a security risk
225226
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
226227
#*.snk
227228

@@ -317,7 +318,7 @@ __pycache__/
317318
# OpenCover UI analysis results
318319
OpenCover/
319320

320-
# Azure Stream Analytics local run output
321+
# Azure Stream Analytics local run output
321322
ASALocalRun/
322323

323324
# MSBuild Binary and Structured Log
@@ -326,5 +327,5 @@ ASALocalRun/
326327
# NVidia Nsight GPU debugger configuration file
327328
*.nvuser
328329

329-
# MFractors (Xamarin productivity tool) working folder
330+
# MFractors (Xamarin productivity tool) working folder
330331
.mfractor/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Xamarin Binding for [TOCropViewController](https://github.com/TimOliver/TOCropViewController)
88

9-
Based on TOCropViewController 2.5.3
9+
Based on TOCropViewController 2.6.0
1010

1111
Refer to demo app on usage and also look at the official library for the full api.
1212

TOCropViewController.Xamarin.Demo/TOCropViewController.Xamarin.Demo.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</PropertyGroup>
1717
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
1818
<DebugSymbols>true</DebugSymbols>
19-
<DebugType>full</DebugType>
19+
<DebugType>portable</DebugType>
2020
<Optimize>false</Optimize>
2121
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
2222
<DefineConstants>DEBUG</DefineConstants>
@@ -25,6 +25,7 @@
2525
<MtouchArch>x86_64</MtouchArch>
2626
<MtouchLink>None</MtouchLink>
2727
<MtouchDebug>true</MtouchDebug>
28+
<DeviceSpecificBuild>false</DeviceSpecificBuild>
2829
</PropertyGroup>
2930
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
3031
<DebugType>none</DebugType>
@@ -47,6 +48,7 @@
4748
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
4849
<CodesignKey>iPhone Developer</CodesignKey>
4950
<MtouchDebug>true</MtouchDebug>
51+
<DeviceSpecificBuild>false</DeviceSpecificBuild>
5052
</PropertyGroup>
5153
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
5254
<DebugType>none</DebugType>

TOCropViewController.Xamarin/ApiDefinition.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ interface TOCropToolbar
9393
[Export ("doneTextButtonTitle")]
9494
string DoneTextButtonTitle { get; set; }
9595

96+
// @property (copy, nonatomic) UIColor * _Null_unspecified doneButtonColor;
97+
[Export ("doneButtonColor", ArgumentSemantic.Copy)]
98+
UIColor DoneButtonColor { get; set; }
99+
96100
// @property (readonly, nonatomic, strong) UIButton * _Nonnull cancelTextButton;
97101
[Export ("cancelTextButton", ArgumentSemantic.Strong)]
98102
UIButton CancelTextButton { get; }
@@ -109,6 +113,14 @@ interface TOCropToolbar
109113
[Export ("cancelTextButtonTitle")]
110114
string CancelTextButtonTitle { get; set; }
111115

116+
// @property (copy, nonatomic) UIColor * _Nullable cancelButtonColor;
117+
[NullAllowed, Export ("cancelButtonColor", ArgumentSemantic.Copy)]
118+
UIColor CancelButtonColor { get; set; }
119+
120+
// @property (assign, nonatomic) BOOL showOnlyIcons;
121+
[Export ("showOnlyIcons")]
122+
bool ShowOnlyIcons { get; set; }
123+
112124
// @property (readonly, nonatomic, strong) UIButton * _Nonnull rotateCounterclockwiseButton;
113125
[Export ("rotateCounterclockwiseButton", ArgumentSemantic.Strong)]
114126
UIButton RotateCounterclockwiseButton { get; }
@@ -473,6 +485,18 @@ interface TOCropViewController
473485
[NullAllowed, Export ("cancelButtonTitle")]
474486
string CancelButtonTitle { get; set; }
475487

488+
// @property (assign, nonatomic) BOOL showOnlyIcons;
489+
[Export ("showOnlyIcons")]
490+
bool ShowOnlyIcons { get; set; }
491+
492+
// @property (copy, nonatomic) UIColor * _Null_unspecified doneButtonColor;
493+
[Export ("doneButtonColor", ArgumentSemantic.Copy)]
494+
UIColor DoneButtonColor { get; set; }
495+
496+
// @property (copy, nonatomic) UIColor * _Nullable cancelButtonColor;
497+
[NullAllowed, Export ("cancelButtonColor", ArgumentSemantic.Copy)]
498+
UIColor CancelButtonColor { get; set; }
499+
476500
// @property (assign, nonatomic) BOOL showCancelConfirmationDialog;
477501
[Export ("showCancelConfirmationDialog")]
478502
bool ShowCancelConfirmationDialog { get; set; }
@@ -561,6 +585,10 @@ interface TOCropViewController
561585
[Export ("initWithCroppingStyle:image:")]
562586
IntPtr Constructor (TOCropViewCroppingStyle style, UIImage image);
563587

588+
// -(void)commitCurrentCrop;
589+
[Export ("commitCurrentCrop")]
590+
void CommitCurrentCrop ();
591+
564592
// -(void)resetCropViewLayout;
565593
[Export ("resetCropViewLayout")]
566594
void ResetCropViewLayout ();

TOCropViewController.Xamarin/Structs.cs

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33

44
namespace TimOliver.TOCropViewController.Xamarin
55
{
6-
[Native]
7-
public enum TOCropViewCroppingStyle : long
8-
{
9-
Default,
10-
Circular
11-
}
6+
[Native]
7+
public enum TOCropViewCroppingStyle : long
8+
{
9+
Default,
10+
Circular
11+
}
1212

13-
[Native]
14-
public enum TOCropViewControllerAspectRatioPreset : long
15-
{
16-
Original,
17-
Square,
18-
TOCropViewControllerAspectRatioPreset3x2,
19-
TOCropViewControllerAspectRatioPreset5x3,
20-
TOCropViewControllerAspectRatioPreset4x3,
21-
TOCropViewControllerAspectRatioPreset5x4,
22-
TOCropViewControllerAspectRatioPreset7x5,
23-
TOCropViewControllerAspectRatioPreset16x9,
24-
Custom
25-
}
13+
[Native]
14+
public enum TOCropViewControllerAspectRatioPreset : long
15+
{
16+
Original,
17+
Square,
18+
TOCropViewControllerAspectRatioPreset3x2,
19+
TOCropViewControllerAspectRatioPreset5x3,
20+
TOCropViewControllerAspectRatioPreset4x3,
21+
TOCropViewControllerAspectRatioPreset5x4,
22+
TOCropViewControllerAspectRatioPreset7x5,
23+
TOCropViewControllerAspectRatioPreset16x9,
24+
Custom
25+
}
2626

27-
[Native]
28-
public enum TOCropViewControllerToolbarPosition : long
29-
{
30-
Bottom,
31-
Top
32-
}
27+
[Native]
28+
public enum TOCropViewControllerToolbarPosition : long
29+
{
30+
Bottom,
31+
Top
32+
}
3333
}

TOCropViewController.Xamarin/TimOliver.TOCropViewController.Xamarin.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>TimOliver.TOCropViewController.Xamarin</id>
5-
<version>2.5.4</version>
5+
<version>2.6.0</version>
66
<title>TOCropViewController.Xamarin</title>
77
<description>Xamarin Binding for TOCropViewController</description>
88
<summary>Xamarin Binding for TOCropViewController</summary>
@@ -17,7 +17,7 @@
1717
</group>
1818
</dependencies>
1919
<releaseNotes>
20-
Based off of TOCropViewController 2.5.4
20+
Based off of TOCropViewController 2.6.0
2121
</releaseNotes>
2222
</metadata>
2323
<files>
Binary file not shown.

0 commit comments

Comments
 (0)