Every platform has its own build rules, its own libraries and its own ways of working with hardware. An SDK gathers all of this into one package: the developer installs the kit and gets ready-made tools instead of configuring a compiler, hunting for libraries and reading scattered documentation separately.
What an SDK contains
The contents depend on the platform, but a kit almost always includes the same parts:
| Component | Purpose |
|---|---|
| Libraries | ready-made code for calling platform functions: camera access, requests to a service API, file handling |
| Compiler and build tools | turn source code into a program for the target platform |
| Debugger and profiler | find bugs and measure performance on a device or in an emulator |
| Emulator or simulator | run the application without a real device |
| Documentation and samples | descriptions of calls with code examples |
Examples
- Android SDK: a kit for Android applications, with Build Tools for building, an emulator and the
adbutility for working with a device; packages are installed by thesdkmanagertool; - iOS SDK: for iPhone and iPad applications, included in the Xcode environment;
- AWS SDK: a family of libraries for calling Amazon service APIs; the SDK for JavaScript works in the browser and Node.js, and separate kits exist for Java, Python and other languages;
- Java Development Kit (JDK): the
javaccompiler, thejavaruntime, thejshellinteractive console and the standard Java libraries.
SDK and API
An API is a contract: which requests can be made and what comes back. An SDK is the code and tools that implement this contract for a specific language and platform: the programmer calls class methods, and the SDK builds the HTTP requests, sets headers and checks for errors. A cloud service usually provides both: an HTTP API for everyone and SDKs for convenience in popular languages.
Sources
the term is written from these pagesVerified 9 Nov