razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
106 stars 144 forks source link

Please update library to support flutter version 3.19.6 #381

Closed YazadDuamasia closed 1 month ago

YazadDuamasia commented 2 months ago

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

Please update library to support newer flutter version 3.19.6.

Flutter Version :

Run flutter version in your terminal and copy the results here. Flutter 3.19.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision 54e66469a9 (3 weeks ago) • 2024-04-17 13:08:03 -0700 Engine • revision c4cd48e186 Tools • Dart 3.3.4 • DevTools 2.31.1

Flutter build error

Try flutter pub outdated for more information. The plugin razorpay_flutter doesn't have a main class defined in C:\Users\yazad\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_flutter-1.3.6\android\src\main\java\com\razorpay\razorpay_flutter\RazorpayFlutterPlugin.java or C:\Users\yazad\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_flutter-1.3.6\android\src\main\kotlin\com\razorpay\razorpay_flutter\RazorpayFlutterPlugin.kt. This is likely to due to an incorrect androidPackage: com.razorpay.razorpay_flutter or mainClass entry in the plugin's pubspec.yaml. If you are the author of this plugin, fix the androidPackage entry or move the main class to any of locations used above. Otherwise, please contact the author of this plugin and consider using a different plugin in the meanwhile. Process finished with exit code 1

traditionalwears commented 1 month ago

Hello, any update on this ??

athul-getlead commented 1 month ago

stuck with the same issue, do you guys have any plans to update it.

traditionalwears commented 1 month ago

I thinks its waste of time to depend on razorpay, such a horrible experience. There is no way to connect anyone for the support. I've been trying integrate the razorpay on flutter app, my app is in production still because of these issues with flutter plugin couldn't able to add to my app, and no one is responding.

vivekshindhe commented 1 month ago

@YazadDuamasia @athul-getlead, This issue isn't reproducible by us even for versions flutter(3.22.0) and dart (3.4.0). Unsure if this issue is related to the flutter versioning. That said, found this on StackOverflow that you can try.

Step 1. Go into this path C:\Users\Admin\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_flutter-1.3.5 AND delete this folder "razorpay_flutter-1 3.5" Step 2. In terminal run command "flutter clean" and "flutter Pub get"..

YazadDuamasia commented 1 month ago

But at least can you update package to support for Flutter 3.19.6 version with updated libraries. So we can use razorpay in newer version bit for Flutter 3.22.0 version lots of changes has been appears like theme and other stuff too. I am just ask to pump up basic libraries and Kotlin version and ios related to support at least on below the new version.

YazadDuamasia commented 1 month ago

I have client who want to use latest version of the Flutter and also us razorpay as payment but latest version of this support flutter version 3.10.6.how can I migration to newer version beacuse razorpay package other package are unable to build and run app

vivekshindhe commented 1 month ago

@YazadDuamasia There is no specification for the razorpay-flutter package to not use 3.19.6. Any flutter version above 2.0.0 can be used. As I mentioned, I tested this with 3.22.0. Can you please share what error you are seeing?

YazadDuamasia commented 1 month ago

Issue is with newer version of android code structure implementation in kotlin 1.7.10 with new Android Studio Giraffe | 2022.3.1 Patch 2 onwards

vivekshindhe commented 1 month ago

@YazadDuamasia Apologies, unable to reproduce the issue at all. Here's what I'm using, Kotlin version 1.8.0 AGP: 7.1.3 Gradle: 7.5-all Dart: sdk: ">=3.3.0 <4.0.0" Flutter: 3.22.0 Android studio: Android Studio Jellyfish | 2023.3.1

athul-getlead commented 1 month ago

A simple flutter pub cache clean solved the issue for me.

Thanks @vivekshindhe

vivekshindhe commented 1 month ago

Closing this ticket. Please feel free to reply or open another ticket if there are any issues.