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 Objective-C,
cd GetStartedSwift
for a simple example written in Swift,
Then run:
pod install
This command will use
CocoaPods
to fetch the iink SDK libraries.
Place your certificate *.c
file at the right location:
GetStarted/MyScriptCertificate/
for the Objective-C example
GetStartedSwift/MyScriptCertificate/
for the Swift example
Open the Xcode workspace, compile and run the default target.
To develop with iink SDK for Android, you will need:
- Android
Studio 2.3.3 and
higher
- Android SDK API 26 and higher (even if the libraries runs with Android SDK API 21 and
higher)
- Git (to clone the Github examples
repository)
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 your certificate MyCertificate.java
file 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.
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 MyCertificate.cs
file in GetStarted
directory with your
certificate.
Depending on the platform and the version of Visual Studio installed on your laptop,
open
the appropriate solution file:
MyScript.InteractiveInk.Examples.Uwp-VS2017.sln
MyScript.InteractiveInk.Examples.Uwp-VS2015.sln
MyScript.InteractiveInk.Examples.Wpf-VS2017.sln
MyScript.InteractiveInk.Examples.Wpf-VS2015.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 clone this repository:
git clone https://github.com/myscript/web-integration-samples.git
Move to the web-samples folder:
cd web-integration-samples/web-samples
Install dependencies:
npm install
bower install
Edit the index.html
file and replace the applicationkey
and hmackey
attributes
with
the values you
received by email.
Launch the server:
npm run-script run
Finally, open http://localhost:8000
in
your browser.