Skip to content

Install

javier7ar edited this page Apr 22, 2018 · 6 revisions

Install (v0.4)

  1. Create a new empty Android Studio project (without any activity)

    • The Minimun SDK Version must be API17: Android 4.2 (Jelly Bean)
  2. Import the framework library into your Android Studio project

    • Download the latest samplersFramework.aar from here
    • Import the library into the project: File -> New -> New Module -> Import .JAR/.AAR Package
  3. Add the google repository

    • On your project build.gradle
      allprojects {
          repositories {
              jcenter()
              google()
          }
      }
        
  4. Add the necessary dependencies

    • On your application build.gradle
      dependencies {
        // here the standards dependencies created by Android Studio
        // ...
      
        // if not added automatically, add this dependency 
        // you should use the latest version e.j. 25.+
        compile 'com.android.support:design:24.2.1' 
        compile 'com.android.support.constraint:constraint-layout:1.0.2'
      
        // if you will use maps and location services, add this dependencies (you should use the latest version)
        compile ('com.google.android.gms:play-services-location:12.0.1')
        compile ('com.google.android.gms:play-services-maps:12.0.1')
        
        // if you will use authentication with Google, add this dependencies (you should use the latest version)
        compile ('com.google.android.gms:play-services-auth:12.0.1')
      
        // the framework dependency
        compile project(":samplersFramework")
      }
  5. Instantiate
    Instantiation can be done manually or using gradle class generator.