Join Kevin Ford for an in-depth discussion in this video Using the exercise files, part of Visual Studio App Center for Developers.
- [Instructor] To start working with the exercise files, make sure you've already downloaded the exercise files and copied them to the desktop as I've done here. You will need a GitHub account and we're going to start there inside the browser. Inside GitHub, the first thing we'll do is click on new repository and we're going to start by creating one for the Xamarin and we're going to call it VSACXamarin. If you want to follow along with the course exactly, you should name yours the same as well.
And then I'm going to add a git ignore file so here we can type in Visual Studio and I'll add an MIT License to it. This isn't really required, but I tend to give any repository I set up in GitHub an MIT License. And we'll click create repository. Once that's complete, we'll click clone or download and copy the link to the clipboard and I normally clone with HTTPS, then I'll go into Sourcetree and in Sourcetree we'll click new and clone from URL and we'll paste in that URL we used.
The destination path, we're going to put on our desktop and leave it with the repository name and then we'll press clone. Once that's complete, I go back to the desktop. I open up my exercise folder, starting projects, VSACXamarin, and I copy the source file to the clipboard and open up this folder and paste it in.
Once that's complete, I want to change the app ID for my iOS project so I'll go into Visual Studio to do that. In Visual Studio for Mac, we'll go to file and open and we'll go to the desktop, under our VSACXamarin folder, source, and open up the solution. You won't be able to use the app ID we have in our course. To change the app ID, click on the iOS project, open it up, go to the info.plist and we just need to change the bundle identifier to something unique.
I'm going to use comm_kevinsclass.vsacXamarin. You can use whatever you like. It just has to be unique and that's what you'll use to set up your provisioning profiles in Xcode. And then I'll close the window and I'll close Visual Studio. Back in Sourcetree, I can commit my project by selecting all the files and we'll say initial project checkin and we'll push the changes to origin master and commit.
For the Xamarin project, I have a dev branch and a QA branch. So I'm going to create these quickly by clicking on the branch button and creating one called dev and create branch and then we'll branch again and we'll create one called QA and create branch. And then we'll push and select dev and QA and this will push them up into GitHub.
You will now have to go through the same process for the native application and the React Native application by saving them up in GitHub, adding them to Sourcetree, and changing in the iOS project the bundle identifier. To change the bundle identifier in the iOS project for React Native and the native project, we do that in Xcode. And inside Xcode, we go directly in the project file, make sure we have general selected, and then change the bundle identifier. So once again, you can really make this whatever you want.
It just has to be unique for you. And once you have all these setup on your desktop, we'll be ready to go.
- Adding applications to the VSAC
- Using custom build scripts
- Creating iOS and Android builds
- Creating UI tests
- Automating tests
- Distributing apps
- Examining crash logs and analytics
- Adding push notifications
- Using CodePush for deployments