A sample template that you can use as a guide to create your own components.
Перейти к файлу
Bojan Rajkovic 1c633191c5 Merge pull request #3 from woutercx/master
Fixed issue #2
2013-12-07 14:31:49 -08:00
bin Initial files 2013-01-28 14:48:57 -08:00
icons Fix icons case 2013-03-11 09:57:10 -07:00
samples Initial files 2013-01-28 14:48:57 -08:00
.gitignore Initial files 2013-01-28 14:48:57 -08:00
Details.md Basic templates 2013-01-28 18:23:39 -08:00
GettingStarted.md Basic templates 2013-01-28 18:23:39 -08:00
License.md Apache license 2013-01-28 15:20:47 -08:00
README.md Fix last spot with wrong executable name 2013-06-06 19:23:10 -03:00
Rakefile Fixed issue #2 2013-12-07 23:05:55 +01:00

README.md

Xamarin Component Sample

This is a sample template that you can use as a guide to create your own components.

To build this sample component:

# Download xpkg
curl -L https://components.xamarin.com/submit/xpkg > xpkg.zip
mkdir xpkg
unzip -o -d xpkg xpkg.zip

# Create the component package
mono xpkg/xamarin-component.exe create sample-component-1.0.xam \
    --name="My Awesome Component" \
    --summary="Add a huge amount of awesomeness to your Xamarin apps." \
    --publisher="Awesome Corp, Inc." \
    --website="http://awesomecorp.com/component" \
    --details="Details.md" \
    --license="License.md" \
    --getting-started="GettingStarted.md" \
    --icon="icons/Awesome_128x128.png" \
    --icon="icons/Awesome_512x512.png" \
    --library="ios":"bin/Awesome.iOS.dll" \
    --library="android":"bin/Awesome.Android.dll" \
    --sample="iOS Sample. Demonstrates Awesomeness on iOS.":"samples/Awesome.iOS.sln" \
    --sample="Android Sample. Demonstrates Awesomeness on Android":"samples/Awesome.Android.sln"

There's a Rakefile in this repo that will do these steps for you if you simply type rake:

$ rake
* Downloading xpkg...
* Creating sample-component-1.0.xam...
mono xpkg/xamarin-component.exe create sample-component-1.0.xam \
    --name="My Awesome Component" \
    --summary="Add a huge amount of awesomeness to your Xamarin apps." \
    --publisher="Awesome Corp, Inc." \
    --website="http://awesomecorp.com/component" \
    --details="Details.md" \
    --license="License.md" \
    --getting-started="GettingStarted.md" \
    --icon="icons/Awesome_128x128.png" \
    --icon="icons/Awesome_512x512.png" \
    --library="ios":"bin/Awesome.iOS.dll" \
    --library="android":"bin/Awesome.Android.dll" \
    --sample="iOS Sample. Demonstrates Awesomeness on iOS.":"samples/Awesome.iOS.sln" \
    --sample="Android Sample. Demonstrates Awesomeness on Android":"samples/Awesome.Android.sln"
* Created sample-component-1.0.xam