Cross-Platform Mobile App Development with Visual C++ 2016

mobile app development for multiple platforms n.w
1 / 34
Embed
Share

Explore the world of cross-platform mobile app development using Visual C++ in 2016 with Marc Grégoire. Learn about developing for Windows, Android, and iOS, and discover the benefits of shared C++ backend for building native experiences. Get insights into tools like Visual Studio 2015, Gradle, Xcode, and game engines like Cocos2d-x. Dive into co-development strategies, UI resources, and code reuse techniques across different platforms. Watch a recap of the December 2015 meeting to gain valuable insights and resources for your app development journey.

  • Mobile App Development
  • Visual C++
  • Cross-Platform
  • Marc Grégoire
  • C++ Backend

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Mobile App Development for Multiple Platforms with Visual C++, 2016 Marc Gr goire Software Architect marc.gregoire@nikon.com November 24th2016 Develop for Windows, Android, and iOS

  2. Marc Grgoire Software architect for Nikon Metrology Microsoft MVP since 2007 Microsoft Extended Experts Team member Author of Professional C++, 3rd Edition Co-author of C++ Standard Library Quick Reference

  3. Agenda Recap December 2015 Meeting C++ Common Denominator Visual Studio 2015 RTM What s new since last year? Android Demo Buiding with Gradle iOS Demo Co-development with Xcode Game Engines Demo Cocos2d-x Android development in VS Cross-Platform UI Demo Android, iOS, and Universal Windows UI Resources

  4. Agenda Recap December 2015 Meeting December 2015 Meeting C++ Common Denominator Visual Studio 2015 RTM What s new since last year? Android Demo Buiding with Gradle iOS Demo Co-development with Xcode Game Engines Demo Cocos2d-x Android development in VS Cross-Platform UI Demo Android, iOS, and Universal Windows UI Resources

  5. Recap December 2015 Meeting Cross-platform mobile app development with Visual C++ https://www.youtube.com/watch?v=2Y47g8xNE1o

  6. Agenda Recap December 2015 Meeting C++ Common Denominator C++ Common Denominator Visual Studio 2015 RTM What s new since last year? Android Demo Buiding with Gradle iOS Demo Co-development with Xcode Game Engines Demo Cocos2d-x Android development in VS Cross-Platform UI Demo Android, iOS, and Universal Windows UI Resources

  7. Recap C++ Common Denominator Benefits Full native experience Total access to the device as provided by the SDK Code Reuse (own + 3rdparty) Performance Battery life Security Windows Android iOS C#, CX ---------- C++ Java ---------- C++ ObjC, Swift ---------- C++

  8. Recap C++ Common Denominator Shared C++ backend Shared C++ backend is compiled as: .ipa .appx .apk .appx .apk .ipa XAML C# XML Java Cocoa Touch C#, C++/Cx Java Dex / ART ObjC Swift C++/Cx Dynamic Link Library (.dll) Static Library (.lib) Dynamic shared library (.so) Static library (.a) Static library (.a) Pinvoke C++ Wrapper Java/C++ JNI Wrappers ObjC Wrapper Shared C++ Backend DropBox Moments

  9. Agenda Recap December 2015 Meeting C++ Common Denominator Visual Studio 2015 RTM Visual Studio 2015 RTM What s new since last year? Android Demo Buiding with Gradle iOS Demo Co-development with Xcode Game Engines Demo Cocos2d-x Android development in VS Cross-Platform UI Demo Android, iOS, and Universal Windows UI Resources

  10. Recap Visual Studio 2015 RTM Easy installation, Single installer One C++ IDE for your cross-platform needs (Windows, Android, iOS, and Linux) Share and reuse cross-platform code State of the Art code-editing features Powerful debugging experience Fast emulation Easy jump start thanks to cross-platform templates Visual C++

  11. Agenda Recap December 2015 Meeting C++ Common Denominator Visual Studio 2015 RTM What s new since last year? Android Android Demo Demo Buiding Buiding with iOS Demo Co-development with Xcode Game Engines Demo Cocos2d-x Android development in VS Cross-Platform UI Demo Android and Universal Windows UI Resources with Gradle Gradle

  12. New with Visual Studio 2015 Update 3 Android Android Support for latest Android NDK (R11C) 64-bit Android NDK s upgrading current projects to target latest NDK

  13. New with Visual Studio 2015 Update 3 Android Android Support for Gradle Build Android artifacts AAR: Android library project APK: Android application package Reference other Android libraries Gradle build build system system

  14. Java Language Service For Android Supports following features for Java sources in Android projects: Syntax and semantic colorization Semantic highlighting Error/warning squiggles Auto-complete Parameter help Quick info tooltips Go-to definition

  15. Java Language Service For Android Debugging of Java supported set debugger to Java only !

  16. Eclipse Android Project Import Imports existing Eclipse projects into VS File > New > Import Android Projects From Eclipse

  17. Building with Gradle

  18. Demo Gradle Support in VS 2015 U3 Description Description Build your Android application with the Gradle build system and easily reference other Android libraries Feature Capabilities Feature Capabilities State of the art coding experience with Java and C++ Powerful debugging for your Java and C++ code Gradle Build System Referencing Android libraries (.aar, .jar) easily in your Android Code Incorporating Maven dependencies Jump start development with templates and samples Resources Resources VC++ Blog, Build your Android applications in Visual Studio using Build your Android applications in Visual Studio using Gradle ( https://blogs.msdn.microsoft.com/vcblog/2016/06/12/build-your-android-applications-in-visual-studio-using- gradle/ ) Gradle

  19. Agenda Recap December 2015 Meeting C++ Common Denominator Visual Studio 2015 RTM What s new since last year? Android Demo Buiding with Gradle iOS iOS Demo Demo Co Co- -development with Game Engines Demo Cocos2d-x Android development in VS Cross-Platform UI Demo Android, iOS, and Universal Windows UI Resources development with Xcode Xcode

  20. New with Visual Studio 2015 Update 3 iOS iOS - Seamlessly develop iOS applications in VS and Xcode Co-development with Xcode for iOS projects Wizard to import XCode projects into VS Open in Xcode (+pull back), for non C++ workflows Making UI changes Changing storyboards Signing your iOS application for the store Support for frameworks and dynamic libraries Improved edit-build-debug cycle Dynamic device population

  21. Co-development with Xcode

  22. Demo Co-development with Xcode Description Description Seamlessly develop your iOS application in Visual Studio and Xcode Feature Capabilities Feature Capabilities Import your existing iOS application from Xcode to Visual Studio Open in Xcode (for non C++ workflows) Making UI changes Changing storyboards Signing your iOS application for the store Support for dynamic population of debug targets Support for frameworks and dynamic libraries Resources Resources MSDN Import an Import an Xcode Xcode project project ( https://msdn.microsoft.com/en-us/library/mt735163.aspx ) MSDN Sync Changes Between Sync Changes Between Xcode ( https://msdn.microsoft.com/en-us/library/mt748656.aspx ) Xcode and Visual Studio and Visual Studio

  23. Agenda Recap December 2015 Meeting C++ Common Denominator Visual Studio 2015 RTM What s new since last year? Android Demo Buiding with Gradle iOS Demo Co-development with Xcode Game Engines Game Engines Demo Demo Cocos2d Cocos2d- -x Android development in VS Cross-Platform UI Demo Android, iOS, and Universal Windows UI Resources x Android development in VS

  24. New with Visual Studio 2015 Update 3 Support for popular game engines, e.g. Cocos2d-x Jump start project available

  25. Cocos2d-x Android development in VS

  26. Demo Cocos2d-x Android dev in VS Description Description Use Visual Studio Cocos2d-x starter project to jump-start your android development. Feature Capabilities Feature Capabilities Productive coding experience for your Java and C++ code Building your Cocos2d-x android engine using Ant Build system Powerful debugging experience for your Java and C++ Android code Resources Resources VC++ Blog, Cocos2d ( https://blogs.msdn.microsoft.com/vcblog/2016/07/12/cocos2d-x-visual-studio- android-project/ ) Cocos2d- -x Visual Studio Android Project x Visual Studio Android Project

  27. Demo Cocos2d-x Android dev in VS Setup a new Cocos2d-x project following the standard pattern Download from http://www.cocos2d-x.org/download Unzip it Make sure Python is installed From command line navigate to unzipped folder, then run: python setup.py to setup the environment followed by (might need to restart console) cocos new MyNewGame -l cpp -d projects to create a new C++ game project Download Android targeting VS project from https://aka.ms/vscocosandroidsample and unzip side-by-side with other generated project types (currently available for v3.12) Build and run

  28. Agenda Recap December 2015 Meeting C++ Common Denominator Visual Studio 2015 RTM What s new since last year? Android Demo Buiding with Gradle iOS Demo Co-development with Xcode Game Engines Demo Cocos2d-x Android development in VS Cross Cross- -Platform UI Platform UI Demo Demo Android, iOS, and Universal Windows UI Android, iOS, and Universal Windows UI Resources

  29. Cross-Platform UI Games Usually have custom UI looking the same on all platforms Pure OpenGL Game engines like Cocos2D-X, Unreal Engine, Apps Sometimes have custom UI Same as games Mostly want to use native platform UI C++ backend + Xamarin UI layer (C#) C++ backend + thin platform-specific UI layer Android: Java + XML + JNI iOS: Cocoa Touch + ObjC wrappers Windows: XAML (C# or C++/Cx) + Pinvoke or C++ wrappers

  30. Android, iOS, and Universal Windows UI

  31. Demo Android, iOS, and UW UI Description Description C++ code with thin platform-specific UI. Feature Capabilities Feature Capabilities Shared C++ code Android-specific UI iOS-specific UI Windows Universal App-specific UI

  32. Agenda Recap December 2015 Meeting C++ Common Denominator Visual Studio 2015 RTM What s new since last year? Android Demo Buiding with Gradle iOS Demo Co-development with Xcode Game Engines Demo Cocos2d-x Android development in VS Cross-Platform UI Demo Android, iOS, and Universal Windows UI Resources Resources

  33. Resources Visual C++ Cross-Platform Mobile Documentation http://aka.ms/vsmobilecpp Visual C++ Blog blogs.msdn.com/b/vcblog/ Me marc.gregoire@nikon.com Ankit Asthana program manager cross-plat mobile dev story aasthan@microsoft.com

  34. Questions ?

Related


More Related Content