Skip to content

Instantly share code, notes, and snippets.

View rmarinho's full-sized avatar

Rui Marinho rmarinho

View GitHub Profile
@rmarinho
rmarinho / log
Created November 7, 2018 22:36
error_linking.log
```
/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch @/Users/rmarinho/Projects/SCEspinho/src/SCE.iOS/obj/iPhoneSimulator/Debug/device-builds/iphone11.4-12.1/response-file.rsp -v -v -v -v
MTOUCH : error MT2001: Could not link assemblies. Reason: Error while processing references of 'SCEiOS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
--- inner exception
Mono.Linker.LoadException: Error while processing references of 'SCEiOS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x00105] in <
@rmarinho
rmarinho / build7981.yaml
Created October 24, 2018 14:36
Xamarin Forms build yaml
resources:
- repo: self
clean: true
phases:
- phase: Phase_1
displayName: Prepare Build Phase
condition: succeeded()
queue:
name: Hosted VS2017
@rmarinho
rmarinho / build.log
Created October 24, 2018 11:58
Log shell iOS
2018-10-23T22:29:23.3787290Z Project "/Users/vsts/agent/2.141.1/work/1/s/Xamarin.Forms.Core.iOS.UITests/Xamarin.Forms.Core.iOS.UITests.csproj" (23) is building "/Users/vsts/agent/2.141.1/work/1/s/Xamarin.Forms.ControlGallery.iOS/Xamarin.Forms.ControlGallery.iOS.csproj" (24:2) on node 1 (default targets).
2018-10-23T22:29:23.3788260Z PrepareForBuild:
2018-10-23T22:29:23.3788420Z Creating directory "bin/iPhone/Debug/".
2018-10-23T22:29:23.3794160Z Creating directory "obj/iPhone/Debug/".
2018-10-23T22:29:23.5080090Z _BeforeCoreCompileInterfaceDefinitions:
2018-10-23T22:29:23.5080520Z Skipping target "_BeforeCoreCompileInterfaceDefinitions" because it has no inputs.
2018-10-23T22:29:23.5083140Z _BeforeCoreCompileInterfaceDefinitions:
2018-10-23T22:29:23.5083490Z Skipping target "_BeforeCoreCompileInterfaceDefinitions" because it has no inputs.
2018-10-23T22:29:23.5093100Z _BeforeCoreCompileInterfaceDefinitions:
2018-10-23T22:29:23.5093400Z Skipping target "_BeforeCoreCompileInterfaceDefinitions" because it ha

Rationale

Xamarin Forms introduced a Animation API and later VSM, we will now try to extend the features of the Animation to be more useful to work with VSM.

  • Extend the Animation api to be used on XAML by introducing Storyboard, we should be able to specify at least the animation between 2 double values, colors and positions, user can specify the TargetElement (by default the attached element), TargetProperty, From, To, Duration and Easing of the animation, this should then be translated to a Animation callback to be applied on the TargetElement ( by default that the VisualState is attached to). Storyboard should also add a Completed event, and a way to start and stop the animation from code behind.

  • VSM should allow transitiosn between states

Implementation

Rationale

Xamarin Forms introduces VSM, we will now try to extend the features of VSM to be more useful.

  • VSM should make easy to activate states from XAML, for this we could introduce the concept of a StateTrigger, a state trigger activates the attached state depending of a number conditions, we could have builtin AdaptiveTrigger where we activate a state depending on features like screen size or orientation, or a EventStateTrigger that could activate a state when a event is fired and deactivate when other event is fired. We already have this kind of concept and a existing EventTigger and Triggerbase .
    That way the user doesn't have to call the GoToState on code behind. A StateTrigger should only apply when all conditions are met, if any of the conditions isn't met all the modifications to the properties made by the corresponding VisualState are automatically removed and the values provided initally take effect.

  • VSM should support more out of the box states for each of the Views like Bu

@rmarinho
rmarinho / macos.md
Last active May 29, 2018 16:31
macos progress

Status

To-Do

  • Accessibility
  • List (Lot of work)
  • NativeViewWrapper
  • Focus Events
  • Rotation
  • Scale
  • Translation
This file has been truncated, but you can view the full file.
2018-05-15T11:20:55.8125080Z ##[section]Starting: Build Xamarin.iOS solution Xamarin.Forms.sln
2018-05-15T11:20:55.8224580Z ==============================================================================
2018-05-15T11:20:55.8244570Z Task : Xamarin.iOS
2018-05-15T11:20:55.8264430Z Description : Build an iOS app with Xamarin on macOS
2018-05-15T11:20:55.8284300Z Version : 2.133.0
2018-05-15T11:20:55.8303900Z Author : Microsoft Corporation
2018-05-15T11:20:55.8323910Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613729)
2018-05-15T11:20:55.8344050Z ==============================================================================
2018-05-15T11:20:56.4827670Z [command]/Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild /version /nologo
2018-05-15T11:20:56.5985520Z [command]/Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild /Users/vsts/agent/2.133.3/work/1/s/Xamarin.Forms.sln /p:Configuration=Debug /p:Platform=iPhone /t:Clean
This file has been truncated, but you can view the full file.
2018-05-15T11:20:55.8125080Z ##[section]Starting: Build Xamarin.iOS solution Xamarin.Forms.sln
2018-05-15T11:20:55.8224580Z ==============================================================================
2018-05-15T11:20:55.8244570Z Task : Xamarin.iOS
2018-05-15T11:20:55.8264430Z Description : Build an iOS app with Xamarin on macOS
2018-05-15T11:20:55.8284300Z Version : 2.133.0
2018-05-15T11:20:55.8303900Z Author : Microsoft Corporation
2018-05-15T11:20:55.8323910Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613729)
2018-05-15T11:20:55.8344050Z ==============================================================================
2018-05-15T11:20:56.4827670Z [command]/Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild /version /nologo
2018-05-15T11:20:56.5985520Z [command]/Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild /Users/vsts/agent/2.133.3/work/1/s/Xamarin.Forms.sln /p:Configuration=Debug /p:Platform=iPhone /t:Clean
@rmarinho
rmarinho / log
Created January 26, 2018 12:10
Log msbuild multitarget
This file has been truncated, but you can view the full file.
2018-01-26T12:02:32.3536631Z ##[section]Starting: Build solution Xamarin.Forms.sln
2018-01-26T12:02:32.3540652Z ==============================================================================
2018-01-26T12:02:32.3541152Z Task : MSBuild
2018-01-26T12:02:32.3541580Z Description : Build with MSBuild
2018-01-26T12:02:32.3542001Z Version : 1.120.0
2018-01-26T12:02:32.3542429Z Author : Microsoft Corporation
2018-01-26T12:02:32.3542940Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613724)
2018-01-26T12:02:32.3543511Z ==============================================================================
2018-01-26T12:02:33.2062603Z ##[command]"C:\agent\_work\_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.120.0\ps_modules\MSBuildHelpers\vswhere.exe" -version [15.0,16.0) -latest -format json
2018-01-26T12:02:33.3369390Z ##[command]"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe" "C:\agent\_work\2\s\Xamarin.Forms.sln" /nologo /nr
@rmarinho
rmarinho / msbuild.log
Created December 19, 2017 16:03
AndroidBuildWarning
This file has been truncated, but you can view the full file.
2017-12-19T15:29:02.0871210Z ##[section]Starting: Build solution Xamarin.Forms.sln
2017-12-19T15:29:02.0876984Z ==============================================================================
2017-12-19T15:29:02.0877681Z Task : MSBuild
2017-12-19T15:29:02.0878236Z Description : Build with MSBuild
2017-12-19T15:29:02.0878805Z Version : 1.120.0
2017-12-19T15:29:02.0879406Z Author : Microsoft Corporation
2017-12-19T15:29:02.0880150Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613724)
2017-12-19T15:29:02.0880991Z ==============================================================================
2017-12-19T15:29:03.5664208Z ##[command]"C:\agent\_work\_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.120.0\ps_modules\MSBuildHelpers\vswhere.exe" -version [15.0,16.0) -latest -format json
2017-12-19T15:29:03.7641395Z ##[command]"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe" "C:\agent\_work\4\s\Xamarin.Forms.sln" /nologo /nr