Skip to content

Commit

Permalink
Updated for version 3.8 of the Adonit iOS SDK.
Browse files Browse the repository at this point in the history
  • Loading branch information
adonitDevel committed Nov 17, 2021
1 parent 047b7ea commit 2060a3a
Show file tree
Hide file tree
Showing 149 changed files with 3,216 additions and 87 deletions.
Binary file added AdonitSDK.bundle/DebugOptionsTableViewCell.nib
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified AdonitSDK.bundle/Info.plist
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified AdonitSDK.bundle/JotSettings.storyboardc/Info.plist
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion AdonitSDK.framework/AdonitSDK

This file was deleted.

1 change: 0 additions & 1 deletion AdonitSDK.framework/Headers

This file was deleted.

Binary file removed AdonitSDK.framework/Versions/A/AdonitSDK
Binary file not shown.
20 changes: 0 additions & 20 deletions AdonitSDK.framework/Versions/A/Headers/AdonitSDK.h

This file was deleted.

1 change: 0 additions & 1 deletion AdonitSDK.framework/Versions/Current

This file was deleted.

63 changes: 63 additions & 0 deletions AdonitSDK.xcframework/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AvailableLibraries</key>
<array>
<dict>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>libAdonitSDK.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>libAdonitSDK.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
</dict>
<dict>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>libAdonitSDK.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
20 changes: 20 additions & 0 deletions AdonitSDK.xcframework/ios-arm64_armv7/Headers/AdonitSDK.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// AdonitSDK.h
// AdonitSDK
//
// Created by Timothy Ritchey on 8/11/14.
// Copyright (c) 2014 Adonit. All rights reserved.
//

#import <UIKit/UIKit.h>

// This header includes the public headers of the AdonitSDK.
#import "AdonitTouchTypeIdentifier.h"
#import "JotConstants.h"
#import "JotDrawingApplication.h"
#import "JotMathHelper.h"
#import "JotStylusManager.h"
#import "JotStylusMotionManager.h"
#import "UIColor+AdonitSDK.h"
#import "UIStoryboard+AdonitSDK.h"
#import "UITouch+AdonitIdentification.h"
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// AdonitSDK.h
// AdonitSDK
//
// Created by Timothy Ritchey on 8/11/14.
// Copyright (c) 2014 Adonit. All rights reserved.
//

#import <UIKit/UIKit.h>

// This header includes the public headers of the AdonitSDK.
#import "AdonitTouchTypeIdentifier.h"
#import "JotConstants.h"
#import "JotDrawingApplication.h"
#import "JotMathHelper.h"
#import "JotStylusManager.h"
#import "JotStylusMotionManager.h"
#import "UIColor+AdonitSDK.h"
#import "UIStoryboard+AdonitSDK.h"
#import "UITouch+AdonitIdentification.h"
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// adonitTouchTypeIdentifier.h
// AdonitSDK
//
// Created by Timothy Ritchey on 4/29/15.
// Copyright (c) 2015 Adonit. All rights reserved.
//

#import "UITouch+AdonitIdentification.h"

@interface AdonitTouchTypeIdentifier : NSObject

/**
* We will classify events with a type of UITouch to determine if they belong to an Adonit device. Ideally you would send us the event for processing before your applications main sendEvent so that we can identify Adonit devices prior to your views & gestures receiving touches generated by them.
*/
- (void)classifyAdonitDeviceIdentificationForEvent:(UIEvent *)event;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
//
// JotConstants.h
// AdonitSDK
//
// Created on 6/27/13.
// Copyright (c) 2013 Adonit. All rights reserved.
//

#import <Foundation/Foundation.h>

extern NSUInteger const JOT_MIN_PRESSURE;
extern NSUInteger const JOT_MAX_PRESSURE;

extern NSString * const JotStylusManagerDidChangeConnectionStatus;
extern NSString * const JotStylusManagerDidUpdateConnectionStatus;
extern NSString * const JotStylusManagerDidChangeConnectionStatusStatusKey;

extern NSString * const JotStylusManagerDidChangeEnabledStatus;
extern NSString * const JotStylusManagerDidChangeEnabledStatusStatusKey;

extern NSString * const JotStylusManagerDidChangeBatteryLevel;

extern NSString * const JotStylusManagerDidChangeStylusFriendlyName;
extern NSString * const JotStylusManagerDidChangeStylusFriendlyNameNameKey;

extern NSString * const JotStylusTrackingPressureForConnectionNotification;
extern NSString * const JotStylusTrackingPressureForConnectionFailedNotification;
extern NSString * const JotStylusTrackingPressureForConnectionSuccessfulNotification;

extern NSString * const JotStylusNotificationRecommend;
extern NSString * const JotStylusNotificationRecommendKey;

// Notification sent when the battery changes state to normal. Normal is 20-100%
extern NSString * const JotStylusNotificationBatteryLevelNormal;

// Notification sent when the battery changes state to low. Low is 10-20%
extern NSString * const JotStylusNotificationBatteryLevelLow;

// Notification sent when the battery changes state to critical. Critical is 0-10%
extern NSString * const JotStylusNotificationBatteryLevelCritical;

// Notification sent when the user presses button 1 down
extern NSString * const JotStylusButton1Down;

// Notification sent when the user releases button 1
extern NSString * const JotStylusButton1Up;

// Notification sent when the user presses button 2 down
extern NSString * const JotStylusButton2Down;

// Notification sent when the user releases button 2
extern NSString * const JotStylusButton2Up;

// Notification sent when the user presses button 3 down
extern NSString * const JotStylusButton3Down;

// Notification sent when the user releases button 3
extern NSString * const JotStylusButton3Up;

// Notification sent when the user presses button 4 down
extern NSString * const JotStylusButton4Down;

// Notification sent when the user releases button 4
extern NSString * const JotStylusButton4Up;

extern NSString * const JotStylusButton1DoubleTap;
extern NSString * const JotStylusButton2DoubleTap;
extern NSString * const JotStylusScrollRelativeValueUpdated;
extern NSString * const JotStylusScrollValue;

/**
* Describes how the user typically holds their Jot
*/
typedef NS_ENUM(NSUInteger, JotWritingStyle) {
/** The user is right-handed and holds the stylus perpendicular to their wrist */
JotWritingStyleRightHorizontal = 2,
/** The user is right-handed and holds the stylus at a 45 degree angle to their wrist */
JotWritingStyleRightAverage = 1,
/** The user is right-handed and holds the stylus parallel to their wrist */
JotWritingStyleRightVertical = 0,
/** The user is left-handed and holds the stylus perpendicular to their wrist */
JotWritingStyleLeftHorizontal = 5,
/** The user is left-handed and holds the stylus at a 45 degree angle to their wrist */
JotWritingStyleLeftAverage = 4,
/** The user is left-handed and holds the stylus parallel to their wrist */
JotWritingStyleLeftVertical = 3,
};

/**
* The connection state of the Jot
*/
typedef NS_ENUM(NSUInteger, JotConnectionStatus) {
/** The last stylus has been turned off and forgotten */
JotConnectionStatusOff,
/** The SDK is scanning for Jots to connect to */
JotConnectionStatusScanning,
/** The SDK is connecting to a particular Jot */
JotConnectionStatusPairing,
/** A Jot is currently connected */
JotConnectionStatusConnected,
/** No Jot is connected, but the most recently used Jot will be automatically connected to when available */
JotConnectionStatusDisconnected,
/** A Jot is power off */
JotConnectionStatusPowerOff,
/** A Jot is not support for this platform */
JotConnectionStatusStylusNotSupportThePlatform,
/** A Jot is not support for this platform by swap stylus*/
JotConnectionStatusSwapStylusNotSupportThePlatform
};

/** The maximum length for a friendly name */
extern NSUInteger const JotStylusStorageFriendlyNameMaxLength;

/** The maximum length for an owner link */
extern NSUInteger const JotStylusStorageOwnerLinkMaxLength;

/** The maximum length for preference data */
extern NSUInteger const JotStylusStoragePreferenceDataMaxLength;

/** The maximum length for a URL string */
extern NSUInteger const JotStylusStorageURLStringMaxLength;

/**
* The error domain for the Jot Touch SDK
*/
extern NSString * const JotTouchSDKErrorDomain;

/**
* Custom error codes for the Jot Touch SDK
*/
typedef NS_ENUM(NSInteger, JotTouchSDKErrorType) {
/** A generic error code */
JotTouchSDKErrorTypeUnknown = 0,
/** Used when a discovery attempt is requested, but the SDK is disabled */
JotTouchSDKErrorTypeSDKNotEnabled = 99,
/** Used when a stylus operation is requested, but no stylus is currently connected */
JotTouchSDKErrorTypeNoMainStylusAssigned = 100,
/** Used when a stylus operation is requested that is not supported by the currently connected stylus */
JotTouchSDKErrorTypeFunctionalityNotSupportedOnDevice = 101,
/** Used when a stylus operation fails to complete in time */
JotTouchSDKErrorTypeTimeout = 102,
/** Used when the stylus fails to reset to factory defaults */
JotTouchSDKErrorTypeResetFailure = 103,
/** Used when an operation is requested while no stylus is connected */
JotTouchSDKErrorTypeStylusNotConnected = 104,
/** Used when stylus try to connect with unsupported iPad */
JotTouchSDKErrorTypeStylusNotSupportedOnTablet = 105,
/** Used when an invalid storage index is requested */
JotTouchSDKErrorTypeStorageIndexOutOfBounds = 301,
/** Used when an invalid storage location is requested */
JotTouchSDKErrorTypeStorageRangeOutOfBounds = 302,
/** Used when the storage range is not equal to the length of the data to write */
JotTouchSDKErrorTypeStorageWriteDataInconsistentWithTargetRange = 303,
/** Used when an unknown read error occurs on the stylus */
JotTouchSDKErrorTypeStorageReadUnknown = 304,
/** Used when an invalid write command is sent to the stylus */
JotTouchSDKErrorTypeStorageWriteInvalidCommand = 305,
/** Used when the checksum on a write command fails */
JotTouchSDKErrorTypeStorageWriteChecksumError = 306,
/** Used when an unknown error occurs during a write command */
JotTouchSDKErrorTypeStorageWriteUnknown = 307,
/** Used when an operation is sent but the discovery process has not yet completed */
JotTouchSDKErrorTypeStorageNotReady = 308,
/** Used when the friendly name to write exceeds JotStylusStorageFriendlyNameMaxLength */
JotTouchSDKErrorTypeFriendlyNameTooLong = 401,
/** Used when the URL string to write exceeds JotStylusStorageURLStringMaxLength */
JotTouchSDKErrorTypeURLStringTooLong = 402,
/** Used when the owner link to write exceeds JotStylusStorageOwnerLinkMaxLength */
JotTouchSDKErrorTypeOwnerLinkTooLong = 403,
/** Used when the preference data to write exceeds JotStylusStoragePreferenceDataMaxLength */
JotTouchSDKErrorTypePreferenceDataTooLong = 404,
/** Used when help cannot be opened because no application on the device can open it */
JotTouchSDKErrorTypeCannotOpenHelp = 500,
/** Used when help cannot be opened because the device does not have an active Internet connection */
JotTouchSDKErrorTypeNoInternetConnectionForHelp = 501
};

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// JotDrawingApplication.h
// AdonitSDK
//
// Created by Jonathan Arbogast on 11/5/14.
// Copyright (c) 2014 Adonit. All rights reserved.
//

#import <UIKit/UIKit.h>

@class AdonitTouchTypeIdentifier;

@interface JotDrawingApplication : UIApplication
@end
Loading

0 comments on commit 2060a3a

Please sign in to comment.