Skip to content

Using dev build

Jaak Laineste edited this page Apr 24, 2020 · 13 revisions

Use following builds if you need latest fixes, or need new features from the next, development version. You can select one of the branches:

  • MASTER branch - more stable, has fixes/updates to latest the version, so it is preview of next minor update (after release of 4.1.1 it is 4.1.2, for instance)
  • DEVELOPMENT branch - less stable, includes new major features which goes to next major version (for instance 4.1.2).

You can check your current version by looking at app logs (logcat for Android etc) - it should have message with build identifier, something like ... Build: android-306|(HEAD detached at df8d603)|release/v4.0.1-6-gdf8d603, time: Mar 22 2017 03:33:37 ... where most interesting is df8d603 showing GIT commit ID hash. Compare it with SDK repo to see if the version is what you really want.

Android

  1. Download latest RC package from releases
  2. Unzip it, find .aar file inside
  3. Copy .aar file to a folder of your project, e.g. /aars
  4. Define build.gradle to use this .aar file instead of live build:
dependencies {
    // live SDK, make sure you do not have both dependencies
    //compile('com.carto:carto-mobile-sdk:4.1.1@aar') 
    // use local file in project /aars folder. Put real file name here:
    compile(name:'carto-mobile-sdk-4.1.1.385', ext:'aar') 
 ...

}
repositories{
    flatDir{
        dirs 'aars'
    }
}

iOS

CocoaPod does not want development versions, so we provide manual downloads.

  1. Download the file, uncompress to your project and add the .framework to your Xcode project.
  2. Remove existing CartoMobileSDK reference from your project Podfile and run pod update.
  3. Project should build now with the static downloaded framework.

Xamarin

  1. Download file, uncompress it
  2. Add the uncompressed folder with .nuget files as file:// style custom nupackage source to your IDE (guide for Visual Studio and Xamarin Studio)
  3. Select "Add Packages", Make sure you tick "Show pre-released packages" and select package for your app platform.

Alternative: you can also add the .dll files from the uncompressed package to your project and add as native library references.

Clone this wiki locally