This repository contains the WoundGenius SDK Sample App for demonstrating the available features of WoundGenius SDK. It can be used as a reference app for Android team to integrate the WoundGenius SDK into their project.
To launch the Sample App, perform the following actions:
-
Request the WoundGenius SDK license, and request access to the WoundGenius SDK repository for your Android Developers. Follow the instructions listed here to do that: https://support.imito.io/portal/en/kb/articles/licence-key (You'll need to Sign Up and provide the Bundle Ids you are planning to use, and the developer GitHub usernames).
-
Download/Pull this Sample app to your machine. Open project in Android Studio.
-
There are two ways to implement the SDK:
Option 1
• In the Github account you provided in Step 1, open Settings -> Developer Settings -> Personal Access Tokens -> Tokens(classic) -> Generate new token. Make sure you select the following scopes (“read:packages”) and Generate a token. After generating, make sure to copy your new personal access token. You won't see it again! The only option is to generate a new key.
• Create a github.properties file in the root of your Android project
• Add the properties username=GITHUB_USERID and token=PERSONAL_ACCESS_TOKEN. Replace GITHUB_USERID with personal / organisation Github User ID and PERSONAL_ACCESS_TOKEN with the token generated in Step 3.
• Add the following code to build.gradle inside the project gradle
repositories {
google()
mavenCentral()
jcenter()
maven { url 'https://maven.google.com' }
maven { url "https://jitpack.io" }
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/imitoag/woundgenius-android-sdk")
def propsFile = rootProject.file('github.properties')
def props = new Properties()
props.load(new FileInputStream(propsFile))
credentials {
username props['username']
password props['token']
}
}
}
Option 2
• Add sdk as local maven repo and repositories urls by adding the following code to build.gradle inside the project gradle 3. into your project build.gradle file
repositories {
google()
mavenCentral()
maven { url 'SDK' }
jcenter()
maven { url 'https://maven.google.com' }
maven { url "https://jitpack.io" }
}
- Run the application.
- After you launch the application, go to Settings or press "License Key" button, and paste the license key you've received at Step 1.


- Navigate back from Settings Screen. Click Start Capturing. Grant the permission for the app to access the Camera.

This repository contains the React Native Sample (SampleRN folder).
To launch the SampleRN App, perform the following actions:
- Pull the repository.
- Navigate to the SampleRN -> AwesomeProject.
- In terminal run a command
npm install
. That should setup the node_modules. - Open the
android
folder using AndroidStudio. - Follow one of the options for integrating WoundGenius SDk into the Sample app.
- Update the license key in AndroidStudio in the
MainApplication
class file. - Navigate out of android folder in terminal, to the AwesomeProject folder. Run the
npm start
command in terminal. This should start the dev server usually on port 8081. - Switch back to AndroidStudio to run the Android app on your device/emulator or press
a
keybutton in terminal to run app on Android from React Native. - Click "Start Capturing". Allow access to Camera.