Skip to content

Installation

Itgel G edited this page Nov 24, 2020 · 26 revisions

Installation with Gradle

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Step 2. Add the dependency

dependencies {
        implementation 'com.github.erxes:erxes-android-sdk:{lastest-version}'

}

Installation with Maven

Step 1. Add the JitPack repository to your build file

<repositories>
     <repository>
          <id>jitpack.io</id>
          <url>https://jitpack.io</url>
     </repository>
</repositories>

Step 2. Add the dependency

<dependency>
   <groupId>com.github.erxes</groupId>
   <artifactId>erxes-android-sdk</artifactId>
   <version>{lastest-version}</version>
</dependency>

Installation with Sbt

Step 1. Add the JitPack repository to your build file

  resolvers += "jitpack" at "https://jitpack.io"

Step 2. Add the dependency

libraryDependencies += "com.github.erxes" % "erxes-android-sdk" % "{lastest-version}"	

Installation with leiningen

Step 1. Add the JitPack repository to your build file

:repositories [["jitpack" "https://jitpack.io"]]

Step 2. Add the dependency

:dependencies [[com.github.erxes/erxes-android-sdk "{lastest-version}"]]		

Permissions

we need permission to access network,send and receive files from file-servers

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-feature
    android:name="android.hardware.camera"
    android:required="true" />