Currently we just support SDK for register candidate, save Id card and upload Interview Video
Make sure you register as Developer Partner at Astronaut. If you haven't, you can register here
Requirements :
- minSdkVersion 21
- 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' }
}
}
- Add the dependency check the version here
dependencies {
implementation 'com.github.astrnt:demo-sdk:latest-version'
}
- Add this line in app/build.gradle
flavorDimensions "mode"
productFlavors {
beta {
dimension "mode"
applicationIdSuffix ".betasdk"
buildConfigField "boolean", "BETA", "true"
buildConfigField("String", "API_URL", '"http://beta.astrnt.co/api/"')
buildConfigField("String", "API_KEY", '"YOUR_API_KEY_HERE"')
buildConfigField ("int", "SDK_VERSION", "1")
}
live {
dimension "mode"
buildConfigField "boolean", "BETA", "false"
buildConfigField("String", "API_URL", '"http://app.astrnt.co/api/"')
buildConfigField("String", "API_KEY", '"YOUR_API_KEY_HERE"')
buildConfigField ("int", "SDK_VERSION", "1")
}
}
- SetUp SDK in your Application Class
private static DemoSDK demoSDK;
public static AstronautApi getApi() {
return demoSDK.getApi();
}
private void setUpSDK() {
if (demoDK == null) {
demoDK = new DemoSDK(BuildConfig.API_URL, BuildConfig.DEBUG);
}
}
@Override
public void onCreate() {
super.onCreate();
setUpSDK();
}
For more detail you can see our sample here., sample using kotlin here.
Sorry, we no longer answer question from repository issues. If you need any assistance, please contact [email protected]