This repository contains the WoundGenius SDK Sample App (Sample folder), the purpose of which is to demonstrate the available features of WoundGenius SDK. The Sample App is also to be used as a reference app for an iOS team integrating 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 iOS 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, provide the Bundle Ids you are planning to use, GitHub username of the developers).
- Download/Pull this Sample app to your machine.
- In Mac OS Terminal navigate to Sample app folder. To the level where Sample.xcodeproj & Podfile is located.
- In Mac OS Terminal call pod install. TensorFlowLiteTaskVision pod should get installed.
- In Mac OS Terminal call open ..
- Run the Sample.xcworkspace file (Xcode should be installed).
- Pull the WoundGenius SDK to your machine. Follow the "Import WoundGenius SDK as a Swift Package" Section, integrate the WoundGenius SDK into the Sample app. https://github.com/imitoag/woundgenius-ios-sdk/ (Make sure the branch/version matches the Sample App version).
- While requesting the license, you provided the Bundle Identifiers to be whitelisted. Change the Sample application Bundle Identifier to one of your whitelisted Bundle Identifiers. Also, pick your Apple Development Team in order to be able to launch the Sample application on a real device.
- Run the application on an iPhone or iPad. (To run the app on Simulator - switch the Target to "SampleSimulator", it won't be possible to test the camera-related features and wound auto-detection features on Simulator.)
- After you launch the application, go to Settings and paste the license key you've received at Step 1.
- Navigate back from Settings Screen. Click Start Capturing. Grant permission for the app to access the Camera.
This repository contains the Objective-C Sample App (SampleObjc folder). The Initial Setup process is similar to the Inital Setup process of the Swift Sample App.
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 folder.
- In terminal run a command
npm install
. That should setup the node_modules. NodeJS, Watchman, M1 - In terminal navigate to the ios folder. And call
pod install
. This should create the Pods folder, SampleRN.xcworkspace file. - Open the
SampleRN.xcworkspace
from the ios folder using Xcode. - Pull the WoundGenius SDK to your machine. Follow the "Import WoundGenius SDK as a Swift Package" Section, integrate the WoundGenius SDK into the Sample app. https://github.com/imitoag/woundgenius-ios-sdk/ (Make sure the branch/version matches the Sample App version; Make sure that Package is imported to the single Active Xcode project.).
- When requesting the license for WoundGenius SDK and the Sample App, you provided your Bundle Identifiers for whitelisting. Change the Sample application Bundle Identifier to one of your whitelisted Bundle Identifiers. Also, pick your Apple Development Team in order to be able to launch the Sample application on a real device.
- Update the license key in Xcode in the
SampleRN -> WoundGeniusBridge -> WoundGeniusPresenter.swift
file. - Navigate out of ios folder in terminal, to the SampleRN folder. Run the
npx react-native start
command in terminal. This should start the dev server usually on port 8081. - Switch back to Xcode. Run the iOS app from
ios
folder on your device. - Allow access to local Network. Click "Start Capturing". Allow access to Camera.
- Capture a photo or marker/ruler measurement. The resulting image and the photo/measuremnet metadata will be displayed as a JSON in React Native Text View, process them according to your needs in your React Native app.