To develop with iink SDK for iOS, you will need:
- Xcode
- iOS SDK
-
CocoaPods
(to
retrieve iink
SDK and its
dependencies)
- Git (to clone the Github examples
repository)
Clone the MyScript Git repository containing the examples for the iOS platform and
navigate
to the root of
the folder containing the applications:
git clone https://github.com/myscript/interactive-ink-examples-ios
cd interactive-ink-examples-ios/Examples
Navigate to the root folder of the example application you want to run:
cd GetStarted
for a simple example written in Swift,
Then run:
pod install
This command will use
CocoaPods
to fetch the iink SDK libraries.
Place the certificate *.c
file you've received by email into
the GetStarted/MyScriptCertificate/
directory.
Open the Xcode workspace, compile and run the default target.
To develop with iink SDK for Android, you will need:
Clone the MyScript Git repository containing the examples for the Android platform and
navigate to the
root of the folder containing the applications:
git clone https://github.com/myscript/interactive-ink-examples-android
cd interactive-ink-examples-android
Place the MyCertificate.java
file you've received by email into
GetStarted/src/main/java/com/myscript/certificate/
directory.
Open the interactive-ink-examples-android
directory as an existing Android Studio
project.
The gradle
dependencies should be grabbed and the project should compile with success.
If you encounter compile errors of the form No version of NDK matched the requested version
, please install the requested NDK version or update the one referenced in
build.gradle
to match your installed NDK version.
You can follow these instructions.
Run the GetStarted target.
To develop with iink SDK for Windows, you will need:
Clone the MyScript Git repository containing the examples for Windows and navigate to
the
root of the folder.
For the Universal Windows Platform (UWP), type:
git clone https://github.com/myscript/interactive-ink-examples-uwp
cd interactive-ink-examples-uwp
For “traditional” Windows desktop .NET development using WPF, type:
git clone https://github.com/myscript/interactive-ink-examples-wpf
cd interactive-ink-examples-wpf
Replace the MyCertificate.cs
file in GetStarted
directory with the
one you've received by email.
Depending on your platform, open the appropriate solution file:
iink-examples.uwp.sln
iink-examples.wpf.sln
Set GetStarted
project as your startup project by right-clicking the project in the
solution browser and selecting "Set as startup project".
Build and run.
This will automatically fetch the latest iink SDK libraries, via the NuGet Package
Manager.
If you encounter compile errors of the form
...\UserControls\EditorUserControl.xaml.cs(85,27,85,40): error CS0103: The name 'captureCanvas' does not exist in the current context
, edit the
UserControls\EditorUserControl.xaml
file so that Visual Studio considers it
updated
(ex: add a space at the beginning, remove it and save the file). Then build again
and
there should be no error anymore.
First, make sure you've installed the following tools:
Then, use an existing project or start a fresh one with the command below:
npm init
Type the following in your developing folder to install the dependency:
npm install iink-js
Recopy the content of index.html
into your developing folder.
Edit the index.html
file and replace the applicationkey
and hmackey
attributes
with the values you've received by email.
Launch a webserver serving the directory containing the dependencies and the index.html file, for example:
python -m http.server
Finally, open http://localhost:8000
in your browser.