This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifestVersion": 1, | |
"id": "ID-HERE", | |
"name": "NAME-HERE", | |
"version": "0.3.2", | |
"publisher": "PUBLISHER-HERE", | |
"public" : false, | |
"repository": { | |
"type": "git", | |
"uri": "https://github.com/jamesmontemagno/vsts-mobile-tasks" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
├──images | |
└──extension-icon.png | |
├──tasks | |
├──Task1 | |
└──icon.png | |
└──package.json | |
└──task.json | |
└──task.ts | |
└──tsconfig.json | |
├──Task2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<T> GetAsync<T>(string url, int days = 7, bool forceRefresh = false) | |
{ | |
var json = string.Empty; | |
//check if we are connected, else check to see if we have valid data | |
if (!CrossConnectivity.Current.IsConnected) | |
json = Barrel.Current.Get(url); | |
else if (!forceRefresh && !Barrel.Current.IsExpired(url)) | |
json = Barrel.Current.Get(url); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hellosharedui.droid.UIHelpers; | |
try { | |
UIHelpers helpers = new UIHelpers(); | |
Fragment frag = helpers.getMyPageFragment(MainActivity.this); | |
FragmentManager manager = getSupportFragmentManager(); | |
manager.beginTransaction().replace(R.id.fragment, frag, "main").commit(); | |
} | |
catch(Throwable ex) { | |
Log.d("MainActivity", "Unable to replace fragment"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "HelloSharedUI.iOS/HelloSharedUI.iOS.h" | |
- (IBAction)NavigateClicked:(id)sender { | |
HelloSharedUI_UIHelpers *helpers = [[HelloSharedUI_UIHelpers alloc] init]; | |
[helpers showMyPage]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mono '${SolutionDir}/packages/Embeddinator-4000.0.3.0/tools/Embeddinator-4000.exe' '${TargetPath}' --gen=Java --platform=Android --outdir='${SolutionDir}/androidoutput' -c 'bin/Debug/FormsViewGroup.dll' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mono '${SolutionDir}/packages/Embeddinator-4000.0.3.0/tools/objcgen.exe' 'bin/Debug/HelloSharedUI.iOS.dll' --target=framework --platform=iOS --outdir='${SolutionDir}/iosoutput' -c --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Register("hellosharedui.droid.UIHelpers")] | |
public class UIHelpers : Java.Lang.Object | |
{ | |
public UIHelpers() : base() | |
{ | |
} | |
public UIHelpers(IntPtr handle, JniHandleOwnership transfer) | |
: base(handle, transfer) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class UIHelpers | |
{ | |
MyPage view; | |
public UIHelpers() | |
{ | |
if(!Forms.IsInitialized) | |
Forms.Init(); | |
view = new MyPage(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyPage : ContentPage | |
{ | |
public MyPage() | |
{ | |
var button = new Button | |
{ | |
Text = "Click Me!", | |
VerticalOptions = LayoutOptions.CenterAndExpand, | |
HorizontalOptions = LayoutOptions.CenterAndExpand, | |
}; |