Skip to content

Commit 1957f30

Browse files
committed
update faq with crt classifiers
1 parent 2808af2 commit 1957f30

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

documents/FAQ.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,39 @@ Instructions for building, installing, and use of the Android SDK can be found [
123123
### Where can I find MQTT 311 Samples?
124124
The MQTT 311 Samples can be found in the v1.27.2 samples folder [here](https://github.com/aws/aws-iot-device-sdk-java-v2/tree/v1.27.2/samples)
125125

126+
### The library size is large, can I improve it?
127+
The SDK depends on aws-crt-java(CRT) library, which deploys native binaries for multiple platforms and results in a huge size. You can try the following options to reduce the package size.
128+
1. Use platform-specific dependencies
129+
Instead of including all platform binaries, specify only the platforms you need.
130+
Sample to use classifier from aws-crt:
131+
```
132+
<dependency>
133+
<groupId>software.amazon.awssdk.crt</groupId>
134+
<artifactId>aws-crt</artifactId>
135+
<version>0.39.0</version>
136+
<classifier>linux-x86_64</classifier> <!-- Only Linux 64-bit -->
137+
</dependency>
138+
```
139+
Checkout aws-crt-java [available classifier](https://github.com/awslabs/aws-crt-java/tree/main?tab=readme-ov-file#available-classifiers)
140+
141+
2. Build CRT and SDK from source
142+
You can also build the CRT library and SDK from source
143+
144+
a. [Build aws-crt library from source](https://github.com/awslabs/aws-crt-java/tree/main?tab=readme-ov-file#platform)
145+
146+
b. Update SDK to use local CRT build.
147+
Update the `sdk/pom.xml` dependencies:
148+
149+
<dependency>
150+
<groupId>software.amazon.awssdk.crt</groupId>
151+
<artifactId>aws-crt</artifactId>
152+
<version>1.0.0-SNAPSHOT</version>
153+
</dependency>
154+
155+
156+
c. [Build the SDK from source](https://github.com/aws/aws-iot-device-sdk-java-v2/blob/main/documents/DEVELOPING.md#building-from-source)
157+
158+
126159
### I still have more questions about this sdk?
127160

128161
* [Here](https://docs.aws.amazon.com/iot/latest/developerguide/what-is-aws-iot.html) are the AWS IoT Core docs for more details about IoT Core

0 commit comments

Comments
 (0)