Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter 'activity' is never used #2897

Open
ethanneff opened this issue Dec 18, 2024 · 0 comments
Open

Parameter 'activity' is never used #2897

ethanneff opened this issue Dec 18, 2024 · 0 comments

Comments

@ethanneff
Copy link

Please use the Discussion board if you want to get some help. Please use issues to report bugs.

Description

linting errors when buliding android via cd android && ./gradlew assembleDebug

Expected Behavior

no linting errors

Screenshots

[15:12:23]: ▸ w: file://node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapActivityListener.kt:11:30 Parameter 'activity' is never used
[15:12:23]: ▸ w: file://node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt:41:89 'enablePendingPurchases(): BillingClient.Builder' is deprecated. Deprecated in Java
[15:12:23]: ▸ w: file://node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt:190:77 Parameter 'outToken' is never used, could be renamed to _
[15:12:23]: ▸ w: file://node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt:251:40 Unnecessary safe call on a non-null receiver of type String
[15:12:23]: ▸ w: file://node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt:417:27 'queryPurchaseHistoryAsync(QueryPurchaseHistoryParams, PurchaseHistoryResponseListener): Unit' is deprecated. Deprecated in Java
[15:12:23]: ▸ w: file://node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt:500:55 Unnecessary safe call on a non-null receiver of type String
[15:12:23]: ▸ w: file://node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt:515:25 Name shadowed: replacementMode
[15:12:23]: ▸ w: file://node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt:526:21 Condition 'purchaseToken != null' is always 'true'
[15:12:23]: ▸ w: file://node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt:550:9 Parameter 'developerPayLoad' is never used
[15:12:23]: ▸ w: file://node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt:565:67 There is more than one label with such a name in this scope
[15:12:23]: ▸ w: file://node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt:581:9 Parameter 'developerPayLoad' is never used
[15:12:23]: ▸ w: file://node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt:698:21 Parameter 'eventName' is never used
[15:12:23]: ▸ w: file://node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt:703:25 Parameter 'count' is never used

Environment:

  • react-native-iap: 12.15.7
  • react-native: 0.76.5
  • Platforms (iOS, Android, emulator, simulator, device): android

To Reproduce
Steps to reproduce the behavior:

  1. cd android && ./gradlew assembleDebug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant