aws-amplify / aws-amplify/amplify-android
Build release get: Timed out waiting for connection acknowledgement
- Dominant language
- Java
- Stars
- 287
- Forks
- 132
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 45
Description
### Before opening, please confirm:
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-android/issues?q=is%3Aissue+) and [discussions](https://github.com/aws-amplify/amplify-android/discussions).
### Language and Async Model
Kotlin, Kotlin - Coroutines
### Amplify Categories
GraphQL API
### Gradle script dependencies
def amplify_version = "2.14.11"
implementation "com.amplifyframework:core:$amplify_version"
implementation "com.amplifyframework:aws-api:$amplify_version"
implementation "com.amplifyframework:core-kotlin:$amplify_version"
### Environment information
Build time: 2023-06-30 18:02:30 UTC
Revision: 5f4a070a62a31a17438ac998c2b849f4f6892877
Kotlin: 1.8.20
Groovy: 3.0.17
Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM: 17.0.6 (JetBrains s.r.o. 17.0.6+0-b2043.56-10027231)
OS: Windows 10 10.0 amd64
### Please include any relevant guides or documentation you're referencing
_No response_
### Describe the bug
When build release with minifyEnabled true, Amplify.API.subscribe get timeout eror
Still that project build debug with minifyEnabled true, has no problem..
ApiException{message=Timed out waiting for connection acknowledgement., cause=null, recoverySuggestion=Sorry, we don't have a suggested fix for this error yet.}
proguard-rules.pro:
```
# Amazon
-keep class com.amazon.** { *; }
-keep class com.amazonaws.** { *; }
-keep class com.amplifyframework.** { *; }
# Class names are needed in reflection
-keepnames class com.amazonaws.**
-keepnames class com.amazon.**
# Request handlers defined in request.handlers
-keep class com.amazonaws.services.**.*Handler
# The following are referenced but aren't required to run
-dontwarn com.fasterxml.jackson.**
-dontwarn org.apache.commons.logging.**
# Android 6.0 release removes support for the Apache HTTP client
-dontwarn org.apache.http.**
# The SDK has several references of Apache HTTP client
-dontwarn com.amazonaws.http.**
-dontwarn com.amazonaws.metrics.**
-dontwarn com.amazonaws.mobile.auth.facebook.FacebookSignInProvider
-dontwarn com.amazonaws.mobile.auth.google.GoogleSignInProvider
-dontwarn com.amazonaws.mobile.auth.userpools.CognitoUserPoolsSignInProvider
-keepclassmembers class ** {
@com.amazonaws.mobileconnectors.apigateway.annotation.Operation public *;
}
-keepclassmembers class * {
@com.amazonaws.mobileconnectors.apigateway.annotation.Operation ;
}
-keepattributes *Annotation*
-keepattributes InnerClasses
-keep class jp.co.tvtokyo.webapi.entities.** {*;}
-keep class jp.co.tvtokyo.webapi.v4.core.model.** {*;}
-keep class jp.co.tvtokyo.webapi.v4.core.model.CodeSubscribeData {*;}
-keepclassmembers class jp.co.tvtokyo.webapi.v4.core.extension.Amplify$** { *; }
-keepclassmembers class jp.co.tvtokyo.webapi.v4.core.model.CodeSubscribeData$** { *; }
-keep class org.apache.commons.logging.** { *; }
-keep class com.amazonaws.services.sqs.QueueUrlHandler { *; }
-keep class com.amazonaws.javax.xml.transform.sax.* { public *; }
-keep class com.amazonaws.javax.xml.stream.** { *; }
-keep class com.amazonaws.services.**.model.*Exception* { *; }
-keep class org.codehaus.** { *; }
-keepattributes Signature,*Annotation*
-dontwarn javax.xml.stream.events.**
-dontwarn org.codehaus.jackson.**
-dontwarn org.apache.commons.logging.impl.**
-dontwarn org.apache.http.conn.scheme.**
```
### Reproduction steps (if applicable)
_No response_
### Code Snippet
```java
// Put your code below this line.
```
### Log output
```
// Put your logs below this line
```
### amplifyconfiguration.json
_No response_
### GraphQL Schema
subscription MySubscription (${'$'}id: String!) {
onCreateStbLoginCodeSuccess(device_id: ${'$'}id) {
code
created_at
device_id
expires_in
jwt
user_info
}
}
### Additional information
I have investigated that your lib get conflict with this lib muxstats. can you tell me that which part of library maybe conflict, and some idea for resolve it.
I had update lib to def amplify_version = "2.15.2"
https://github.com/muxinc/mux-stats-sdk-media3
Contributor guide
Assessment
This issue has not been assessed yet.