File tree Expand file tree Collapse file tree 9 files changed +18
-7
lines changed
BasicPubSub/src/main/java/pubsub
Identity/src/main/java/identity
RawPubSub/src/main/java/rawpubsub Expand file tree Collapse file tree 9 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ mvn clean install
50
50
``` sh
51
51
# NOTE: use the latest version of the CRT here
52
52
53
- git clone --branch v0.11.3 https://github.com/awslabs/aws-crt-java.git
53
+ git clone --branch v0.11.5 https://github.com/awslabs/aws-crt-java.git
54
54
55
55
git clone https://github.com/awslabs/aws-iot-device-sdk-java-v2.git
56
56
cd aws-crt-java
@@ -65,7 +65,7 @@ Supports API 26 or newer.
65
65
NOTE: The shadow sample does not currently complete on android due to its dependence on stdin keyboard input.
66
66
67
67
``` sh
68
- git clone --recursive --branch v0.11.3 https://github.com/awslabs/aws-crt-java.git
68
+ git clone --recursive --branch v0.11.5 https://github.com/awslabs/aws-crt-java.git
69
69
git clone https://github.com/awslabs/aws-iot-device-sdk-java-v2.git
70
70
cd aws-crt-java/android
71
71
./gradlew connectedCheck # optional, will run the unit tests on any connected devices/emulators
@@ -86,7 +86,7 @@ repositories {
86
86
}
87
87
88
88
dependencies {
89
- implementation 'software.amazon.awssdk.crt:android:0.11.3 '
89
+ implementation 'software.amazon.awssdk.crt:android:0.11.5 '
90
90
}
91
91
```
92
92
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ repositories {
50
50
dependencies {
51
51
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
52
52
implementation project(" :iotdevicesdk" )
53
- implementation ' software.amazon.awssdk.crt:android:0.11.3 '
53
+ implementation ' software.amazon.awssdk.crt:android:0.11.5 '
54
54
implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
55
55
implementation ' androidx.appcompat:appcompat:1.1.0'
56
56
implementation ' androidx.core:core:1.2.0'
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ repositories {
87
87
88
88
dependencies {
89
89
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
90
- implementation ' software.amazon.awssdk.crt:android:0.11.3 '
90
+ implementation ' software.amazon.awssdk.crt:android:0.11.5 '
91
91
implementation ' com.google.code.gson:gson:2.8.5'
92
92
implementation ' androidx.appcompat:appcompat:1.1.0'
93
93
testImplementation ' junit:junit:4.12'
Original file line number Diff line number Diff line change 9
9
<modules >
10
10
<module >sdk</module >
11
11
<module >samples/BasicPubSub</module >
12
+ <module >samples/Greengrass</module >
12
13
<module >samples/Jobs</module >
13
14
<module >samples/PubSubStress</module >
14
15
<module >samples/RawPubSub</module >
Original file line number Diff line number Diff line change 6
6
package pubsub ;
7
7
8
8
import software .amazon .awssdk .crt .CRT ;
9
+ import software .amazon .awssdk .crt .CrtResource ;
9
10
import software .amazon .awssdk .crt .CrtRuntimeException ;
10
11
import software .amazon .awssdk .crt .auth .credentials .X509CredentialsProvider ;
11
12
import software .amazon .awssdk .crt .http .HttpProxyOptions ;
@@ -246,7 +247,9 @@ public void onConnectionResumed(boolean sessionPresent) {
246
247
.withConnectionEventCallbacks (callbacks )
247
248
.withClientId (clientId )
248
249
.withEndpoint (endpoint )
249
- .withCleanSession (true );
250
+ .withPort ((short )port )
251
+ .withCleanSession (true )
252
+ .withProtocolOperationTimeoutMs (60000 );
250
253
251
254
if (useWebsockets ) {
252
255
builder .withWebsockets (true );
@@ -319,6 +322,8 @@ public void onConnectionResumed(boolean sessionPresent) {
319
322
System .out .println ("Exception encountered: " + ex .toString ());
320
323
}
321
324
325
+ CrtResource .waitForNoResources ();
326
+
322
327
System .out .println ("Complete!" );
323
328
}
324
329
}
Original file line number Diff line number Diff line change @@ -264,6 +264,7 @@ public void onConnectionResumed(boolean sessionPresent) {
264
264
System .out .println ("Exception encountered: " + ex .toString ());
265
265
}
266
266
267
+ CrtResource .waitForNoResources ();
267
268
System .out .println ("Complete!" );
268
269
}
269
270
Original file line number Diff line number Diff line change 6
6
package jobs ;
7
7
8
8
import software .amazon .awssdk .crt .CRT ;
9
+ import software .amazon .awssdk .crt .CrtResource ;
9
10
import software .amazon .awssdk .crt .CrtRuntimeException ;
10
11
import software .amazon .awssdk .crt .io .ClientBootstrap ;
11
12
import software .amazon .awssdk .crt .io .EventLoopGroup ;
@@ -356,6 +357,7 @@ public void onConnectionResumed(boolean sessionPresent) {
356
357
System .out .println ("Exception encountered: " + ex .toString ());
357
358
}
358
359
360
+ CrtResource .waitForNoResources ();
359
361
System .out .println ("Complete!" );
360
362
}
361
363
}
Original file line number Diff line number Diff line change 6
6
package rawpubsub ;
7
7
8
8
import software .amazon .awssdk .crt .CRT ;
9
+ import software .amazon .awssdk .crt .CrtResource ;
9
10
import software .amazon .awssdk .crt .CrtRuntimeException ;
10
11
import software .amazon .awssdk .crt .io .ClientBootstrap ;
11
12
import software .amazon .awssdk .crt .io .EventLoopGroup ;
@@ -245,6 +246,7 @@ public void onConnectionResumed(boolean sessionPresent) {
245
246
System .out .println ("Exception encountered: " + ex .toString ());
246
247
}
247
248
249
+ CrtResource .waitForNoResources ();
248
250
System .out .println ("Complete!" );
249
251
}
250
252
}
Original file line number Diff line number Diff line change 42
42
<dependency >
43
43
<groupId >software.amazon.awssdk.crt</groupId >
44
44
<artifactId >aws-crt</artifactId >
45
- <version >0.11.3 </version >
45
+ <version >0.11.5 </version >
46
46
</dependency >
47
47
<dependency >
48
48
<groupId >junit</groupId >
You can’t perform that action at this time.
0 commit comments