Xamarin.iOS sample apps
Перейти к файлу
olegoid a2d50c7c9e [WorldCities] Fix table cell style, fix for #35688 2015-11-13 19:38:04 -03:00
AQTapDemo no message 2015-04-27 17:35:54 -04:00
AUSoundTriggeredPlayingSoundMemoryBased [AUSoundTriggeredPlayingSoundMemoryBased] Setup root view controller + remove unused usings 2015-09-11 13:58:54 -03:00
AVCaptureFrames Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
AVCompositionDebugVieweriOS no message 2015-04-27 17:35:54 -04:00
AVCustomEdit [AVCustomEdit] fix nre and make syntax analyzer happy 2015-10-23 16:36:00 +03:00
AVTouchSample Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
AirLocate Add required call and setting for iOS 8 2015-06-11 11:42:58 -07:00
AppPrefs no message 2015-04-27 17:35:54 -04:00
ApplicationFundamentals [touch] docs samples moved out of ZIP (updated to Unified) 2015-10-14 11:24:18 -07:00
AsyncDownloadImage Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
AudioConverterFileConverter Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
AudioGenerator [AudioGenerator] Add minimum OS version 2015-04-27 18:39:50 -04:00
AudioQueueOfflineRenderDemo Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
AudioTapProcessor [AudioTapProcessor] Update entitlements 2015-07-29 05:39:01 +03:00
BackgroundExecution Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
BindingSample Mono touch Samples - Readme Formatting 2015-06-04 12:54:18 -05:00
BouncingGameCompleteiOS [BouncingGame] update packages 2015-10-06 22:47:30 +03:00
BouncingGameEmptyiOS [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
BubbleCell [BubbleCell] deprecate sample 2015-05-06 22:10:05 +03:00
ButtonEventDemo [ButtonEventDemo] Add minimum OS version 2015-04-29 12:25:16 -04:00
ButtonTapper3000 [ButtonTapper3000] resolve warnings 2015-05-19 20:53:57 +03:00
Calendars no message 2015-04-27 17:35:54 -04:00
Chat [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
CircleLayout no message 2015-04-27 17:35:54 -04:00
CollectionViewTransition no message 2015-04-27 17:35:54 -04:00
ContentControls removed duplicate samples, add moveto.md 2013-02-12 10:17:22 -08:00
Controls [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
CoreAnimation Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
CoreImage Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
CoreLocation [Keychain][monocatalog][ExtensionsDemo][Touch][avTouch][reachability][CoreLocation][FontList] fix sdk warnings 2015-05-20 12:46:09 +03:00
CoreMidiSample Resolving and clearing out warning messages 2015-04-27 18:11:50 -04:00
CoreTelephonyDemo Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
CreatingTabbedApplications [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
CustomCollectionViewLayoutAttributes Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
CustomInputStream Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
CustomPropertyAnimation Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
Data Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
DesignerWalkthrough [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
DispatchSourceExamples [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
Drawing Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
DynamicsCatalog [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
EvolveGraphicsAndAnimation Adding readme for moved file. 2015-11-06 16:35:23 -05:00
FileSystemSampleCode Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
FontList Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
FrogScroller [FrogScroller] Add bundle identifier and app name 2015-06-17 17:38:39 -04:00
GLCameraRipple [GLCameraRipple] Fix #34018: use GLKViewDelegate method instead of event 2015-09-16 17:58:43 -03:00
GLPaint-GameView Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
GameCenterSample Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
GoogleAdMobAds/binding Pull from upstream 2015-01-19 20:39:40 +05:30
GraphicsAndAnimation Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
HelloComponents [HelloComponents] Remove unused methods from AppDelegate class 2015-08-05 22:33:17 +03:00
HelloWorld_iPhone Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
Hello_ComplexUniversal Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
Hello_MultiScreen_iPhone Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
Hello_Universal Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
Hello_iOS [ios] getting-started add storyboard id to prevent confusion for new users 2015-08-11 12:31:01 -07:00
Hello_iPad Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
HomeKit/HomeKitIntro iOS 8: Handoff App 2015-09-02 13:27:42 -05:00
HttpClient Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
ImageProtocol Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
InfColorPicker [InfColorPicker] Recompile native library to target iOS 8.0 2015-09-18 14:06:10 -03:00
IntroToAppearance [IntoToAppearance]Adding new sample for docs purposes 2015-06-25 15:48:27 -04:00
IntroToiOS7 Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
IntroductionToiCloud Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
KeyValueObserving [KeyValueObserving] Observe View's layer changes, bug #29339 2015-04-24 22:55:14 +03:00
Keychain Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
LazyTableImages [LazyTableImages] Fix crash on startup 2015-05-12 20:04:08 +03:00
LazyTableImagesAsync [imagesasync] fixes #56 2015-06-11 12:10:11 -07:00
LifecycleDemo Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
LineLayout Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
LocalNotifications Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
Location iOS 9 background updates fix 2015-11-09 12:59:40 +00:00
LowLevelGLPaint Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
MTDJsonDemo [MTDJsonDemo] fix warning about supported orientations 2015-05-20 16:49:41 +03:00
MTDReflectionWalkthrough Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
MTDWalkthrough Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
MTGKTapper [MTGKTapper] fix method names. remove system version check because we have higher target version 2015-08-13 20:38:39 +03:00
ManualCameraControls [ManualCameraControls] fix #35199. 2015-10-24 00:06:56 +03:00
ManualStoryboard [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
MapCallouts Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
MapDemo Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
MapKitSearch Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
MediaCapture [MediaCapture] Set root view controller 2015-09-16 18:06:57 -03:00
MediaNotes Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
MidiTest [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
MonoCatalog-MonoDevelop Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
MonoCatalogSample Pull from upstream 2015-01-19 20:39:40 +05:30
MonoDevelopTouchCells Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
MotionGraphs [MotionGraphs] Fix UIView ctor to be called from nib 2015-06-15 23:31:47 -05:00
MoviePlayback Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
MultichannelMixer [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
NSZombieApocalypse Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
Newsstand Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
Notifications Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
OpenGL Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
OpenGLESSample Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
OpenGLESSample-GameView Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
OpenGLScroller Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
PaintCode Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
PassKit Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
PinchIt Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
PokerNightVoting Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
Popovers Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
PrintBanner Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
PrintSample Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
PrivacyPrompts [PrivacyPromts] Update entitlements 2015-07-29 04:37:31 +03:00
Protocols_Delegates_Events [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
QRchestra Resolved warnings in QRchestra sample 2015-05-05 17:04:03 -04:00
QuartzSample Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
Quotes Resolved warnings in Quotes sample 2015-05-05 16:59:40 -04:00
ReachabilitySample Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
RecipesAndPrinting [RecipesAndPrinting] UIMarkupTextPrintFormatter is uikit class, so ctor must be called from main thread. Apple's sample has the same issue, looks like some UIPrintPageRenderer's methods are called not from main thread on iOS9 2015-09-17 14:23:33 +03:00
RegionDefiner Resolved warnings in RegionDefiner sample 2015-05-05 17:04:25 -04:00
RosyWriter Resolved warnings in RosyWriter sample 2015-05-05 17:03:10 -04:00
Rotation Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
ScratchTicket [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
SearchDemo [SearchDemp] Add minimum OS version 2015-04-28 18:20:32 -04:00
SharedResources Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
SimpleBackgroundFetch [SimpleBackgroundFetch] fix warnings about restoration id 2015-05-20 17:23:35 +03:00
SimpleBackgroundTransfer Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SimpleCollectionView Resolved warnings in SimpleCollectionView sample 2015-05-05 16:57:03 -04:00
SimpleDrillDown Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
SimpleLogin [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
SimpleTextInput Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
SoZoomy Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SocialFrameworkDemo Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
Sound [sound] update screenshots for iOS 8 2015-06-04 11:27:30 -07:00
SplitView Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
SpriteKit [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
SpriteKitPhysicsCollisions Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SpriteTour Shorten brief descriptions 2015-04-23 16:04:21 -04:00
StandardControls removed duplicate samples, add moveto.md 2013-02-12 10:17:22 -08:00
Stars Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
StateRestoration Shorten brief descriptions 2015-04-23 16:04:21 -04:00
StoreKit Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
StoryboardTable [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
StoryboardTable_LocalAuthentication [StoryboardTable_LocalAuthentication] fix target 2015-06-19 17:19:31 +03:00
StreamingAudio [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
SysSound [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
Tabbed_Images Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
TableAndCellStyles removed duplicate samples, add moveto.md 2013-02-12 10:17:22 -08:00
TableEditing Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
TableParts Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
TextKitDemo [TextKitDemo] Fix ctor, we must use initWithCoder when loading from a storyboard 2015-06-16 00:17:33 -05:00
ThreadedCoreData [ThreadedCoreData] Disable app transport security 2015-09-10 13:33:54 -03:00
TicTacToe Resolved warnings in TicTacToe sample 2015-05-05 17:01:26 -04:00
Touch [touch] update screenshots, link to doc 2015-10-14 11:36:34 -07:00
Touches_Classic Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
Touches_GestureRecognizers Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
Transitioning_To_Xcode_4 Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
TransitionsDemo Resolved warnings in TransitionsDemo sample 2015-05-05 16:57:35 -04:00
UIImageEffects Update brief tags description 2015-03-27 06:09:51 +03:00
ViewTransitions Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
WalkingGameCompleteiOS [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
WalkingGameEmptyiOS [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
WatchKit [watchkitcatalog] remove hardcoded codesign fixes #64 2015-10-20 17:18:14 -07:00
WayUpSample Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
WeatherMap Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
WorkingWithImages [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
WorkingWithTables Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
Working_with_images [Working_with_images] Add minimum OS version 2015-04-29 15:45:41 -04:00
WorldCities [WorldCities] Fix table cell style, fix for #35688 2015-11-13 19:38:04 -03:00
ZoomingPdfViewer Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
iOS7-ui-updates Mass update of MinimumOSVersion value in Info.plist 2015-11-13 19:06:29 -03:00
intro-to-extensions [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
ios7fonts [Entitlements] Remove custom entitlements from project's configuration 2015-07-29 03:08:00 +03:00
ios8 [ExtensionsDemo] Code refactoring and formatting 2015-11-13 19:06:29 -03:00
ios9 [ViewControllerPreview]: Shifted registration for 3D Touch from ViewDidLoad to TraitCollectionDidChange 2015-11-09 13:17:49 -10:00
tvos tvOS: tvStackView 2015-11-12 16:13:31 -06:00
watchOS [watchos] add readme 2015-09-07 16:42:18 -07:00
.gitattributes Add sln file (and make sure it stays as CRLF because VS needs it) for CoreTelephonyDemo. 2011-09-09 19:45:29 +02:00
.gitignore ignore build artifacts from binding projects 2015-08-12 14:23:57 +03:00
LICENSE Add License 2011-09-27 11:47:28 -04:00
Make.common Fix MonoCatalogSample build and include basic instructions to use the Makefile 2012-04-10 15:54:00 -04:00
README.md [Readme] Add new tags: iOS9, User Interface 2015-07-21 23:31:22 +03:00
Xamarin.Edu.SampleGallery.Core.dll Update sample validator. 2012-07-05 19:30:05 +02:00
install-hook.sh Set executable bit on install-hook.sh and pre-commit.posix. 2011-09-27 19:14:23 +02:00
mdtool-build Fix mdtool build invocation. 2011-10-04 11:53:52 +02:00
pre-commit.posix Fix pre-commit script's use of ==. 2012-02-20 18:45:41 +01:00
validate.posix Fix usage of `find` in some scripts. 2012-02-17 21:39:36 +01:00
xcsv.exe Update sample validator. 2012-07-05 19:30:05 +02:00

README.md

MonoTouch Samples

The samples in this directory use the MonoTouch toolchain and MonoDevelop project files to illustrate the basics of how to work with iOS and the SDK.

License

The Apache License 2.0 applies to all samples in this repository.

Copyright 2011 Xamarin Inc

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Samples Layout

iOS 8 samples

Starting with iOS 8, we started adding samples that showcase specific features introduced in a release into a directory for the release. So all the new iOS 8 feature samples live in the ios8 directory.

WatchKit

WatchKit samples are in the WatchKit directory, there are a couple of them:

Contributing

Before adding a sample to the repository, please run either install-hook.bat or install-hook.sh depending on whether you're on Windows or a Posix system. This will install a Git hook that runs the Xamarin code sample validator before a commit, to ensure that all samples are good to go.

Samples Submission Guidelines

Galleries

We love samples! Application samples show off our platform and provide a great way for people to learn our stuff. And we even promote them as a first-class feature of the docs site. You can find our two sample galleries here:

Sample GitHub Repositories

These sample galleries are populated by samples in our six sample GitHub repos:

The mobile-samples repository is for samples that are cross-platform. The mac-ios-samples repository is for samples that are Mac/iOS only.

Sample Requirements

We welcome sample submissions. Please ping Nat or Miguel for repo commit access.

However, because the sample galleries are powered by the github sample repos, each sample needs to have the following things:

  • Screenshots - a folder called Screenshots that has at least one screen shot of the sample (preferably a screen shot for every page or every major functionality piece, people really key off these things). for the xplat samples, the folder should be split into platform folders, e.g. iOS, Android, Windows. see https://github.com/xamarin/mobile-samples/tree/master/Tasky/Screenshots for an example of this.

  • Readme - a README.md file that has the name of the sample, a description, and author attribution. sample here: https://github.com/xamarin/mobile-samples/blob/master/Tasky/README.md

  • Metadata - Finally, it needs a Metadata.xml file (https://github.com/xamarin/mobile-samples/blob/master/Tasky/Metadata.xml) that has some information:

    • ID - A GUID for the sample. You can generate this in MD under Tools menu : Insert GUID. we need this to key between articles and their associated samples

    • IsFullApplication - Boolean flag (true or false): whether or not this is a full application such as the MWC App, Tasky, etc., or it's just a feature sample, such as, how to use 'x' feature. the basic test here is, if you would submit this to the app store because it's useful, then it's a full app, otherwise it's just a feature sample.

    • Brief - Short description or what your sample does. This allows us to display a nice and clean vignette on the sample page.

    • Level - Beginning, Intermediate, or Advanced: this is the intended audience level for the sample. only the getting started samples are Beginning, as they are intended for people who are just starting with the platform. most samples are Intermediate, and a few, that dive deep into difficult APIs, should be Advanced.

    • Minimum License Requirement - Starter, Indie, Business, or Enterprise: denotes the license that a user has to have in order to build/run the sample.

    • Tags: a list of relevant tags for the app. These are:

      • Data
      • User Interface
      • Games
      • Graphics (CoreDrawing, Animation, OpenGL...)
      • Media (Video, Sound, recording, photos)
      • Platform Features (Photo Library, Contacts, Calendars, etc.)
      • Device Features (NFC, Accelerometer, Compass, Magnemometer, Bluetooth, RFID)
      • Cloud (Web Services, Networking, etc.)
      • Backgrounding
      • Maps + Location
      • Binding + Interop (Projections)
      • Notifications
      • Touch
      • Getting Started
      • Async
      • Extension
      • iOS8
      • iOS9
      • Watch
      • Keyboard
      • SceneKit
      • FSharp
    • SupportedPlatforms: this is only for cross plat samples. It's a comma-separated list, and the valid values are iOS, Android, and Windows.

    • Gallery: This tag must contain a value of true if you want the sample to show up in the samples gallery on the developer portal.

  • Buildable Sln and CSProj file - the project must build and have the appropriate project scaffolding (solution + proj).

A good example of this stuff is here in the drawing sample: https://github.com/xamarin/monotouch-samples/tree/master/Drawing

For a x-platform sample, please see: https://github.com/xamarin/mobile-samples/tree/master/Tasky

GitHub Integration

We integrate tightly with Git to make sure we always provide working samples to our customers. This is achieved through a pre-commit hook that runs before your commit goes through, as well as a post-receive hook on GitHub's end that notifies our samples gallery server when changes go through.

To you, as a sample committer, this means that before you push to the repos, you should run the "install-hook.bat" or "install-hook.sh" (depending on whether you're on Windows or OS X/Linux, respectively). These will install the Git pre-commit hook. Now, whenever you try to make a Git commit, all samples in the repo will be validated. If any sample fails to validate, the commit is aborted; otherwise, your commit goes through and you can go ahead and push.

This strict approach is put in place to ensure that the samples we present to our customers are always in a good state, and to ensure that all samples integrate correctly with the sample gallery (README.md, Metadata.xml, etc). Note that the master branch of each sample repo is what we present to our customers for our stable releases, so they must always Just Work.

Should you wish to invoke validation of samples manually, simply run "validate.windows" or "validate.posix" (again, Windows vs OS X/Linux, respectively). These must be run from a Bash shell (i.e. a terminal on OS X/Linux or the Git Bash terminal on Windows).

If you have any questions, don't hesitate to ask!