Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.korcanergun:Android-Print-SDK:'
}
dependencies {
implementation("com.github.korcanergun:Android-Print-SDK:")
}
<dependency>
<groupId>com.github.korcanergun</groupId>
<artifactId>Android-Print-SDK</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.korcanergun" % "Android-Print-SDK" % ""
:dependencies [[com.github.korcanergun/Android-Print-SDK ""]]
The Kite Android Print SDK makes it easy to add print on demand functionality to your app.
Harness our worldwide print and distribution network. We'll take care of all the tricky printing and postage stuff for you!
To get started, you will need to have a free Kite developer account. Go to kite.ly to sign up for free.
Use print to unlock hidden revenue streams and add value for your users. In under an hour you could be using our Android Print SDK to print:
See Installing the library - Eclipse
We publish builds of our SDK to the Maven central repository as an .aar file. This file contains all of the classes, resources, and configurations that you'll need to use the library. To install the library inside Android Studio, you can simply declare it as dependecy in your build.gradle file.
dependencies {
compile 'ly.kite:kite-print-sdk:4.+'
}
Once you've updated your build.gradle file, you can force Android Studio to sync with your new configuration by selecting Tools -> Android -> Sync Project with Gradle Files
This should download the aar dependency at which point you'll have access to the Kite Print SDK API calls. If it cannot find the dependency, you should make sure you've specified mavenCentral() as a repository in your build.gradle
If you don't want to build your own shopping journey user experience you can integrate the SDK in a matter of minutes:
private final boolean PRODUCTION_RELEASE = false;
public void onLaunchSDKButtonClicked(View button) {
ArrayList<Asset> assets = new ArrayList<>();
try {
assets.add(new Asset(new URL( "http://psps.s3.amazonaws.com/sdk_static/4.jpg" )));
} catch (MalformedURLException ex) {/* ignore */}
if (PRODUCTION_RELEASE) {
KiteSDK.getInstance(this, "<YOUR_LIVE_API_KEY>", KiteSDK.DefaultEnvironment.LIVE).startShopping(this, assets);
} else {
KiteSDK.getInstance(this, "<YOUR_TEST_API_KEY>", KiteSDK.DefaultEnvironment.TEST).startShopping(this, assets);
}
}
The Asset
class has several constructors not shown above so that you can launch the SDK with your images in a manner that fits your application. You can find your Kite Print API credentials under the Credentials section of the development dashboard.
You can build your own UI if you don't want to use or customize the provided checkout and payment experience. You can still use the Kite Print SDK to handle the print order creation and submission:
Your mobile app integration requires different API Key values for each environment: Live and Test (Sandbox).
You can find your Kite Print API credentials under the Credentials section of the development dashboard.
Your Sandbox API Key can be used to submit test print orders to our servers. These orders will not be printed and posted but will allow you to integrate the Print SDK into your app without incurring cost. During development and testing you'll primarily want to be using the sandbox environment to avoid moving real money around.
When you're ready to test the end to end printing and postage process; and before you submit your app to the App Store, you'll need to swap in your live API key.
Your Live API Key is used to submit print orders to our servers that will be printed and posted to the recipient specified. Live orders cost real money. This cost typically passed on to your end user (although this doesn't have to be the case if you want to cover it yourself).
Logging in to our Developer Dashboard allow's you to dynamically change the end user price i.e. the revenue you want to make on every order. Payment in several currencies is supported so that you can easily localize prices for your users. The dashboard also provides an overview of print order volume and the money you're making.
Push notifications are a powerful marketing tool that if used effectively can increase both user engagement and customer life time value by driving more sales within your application.
A guide to configuring push notifications in your app can be found here.
Kite Android Print SDK is available under a modified MIT license. See the LICENSE file for more info.