apoorv9496 / paytm_payments

Paytm Payments Flutter SDK
Apache License 2.0
14 stars 5 forks source link

flutter build apk is giving error on proguard rules #4

Open vikramaggarwal13 opened 5 years ago

vikramaggarwal13 commented 5 years ago

I run this command flutter build apk output is Initializing gradle... 1.4s Resolving dependencies... 7.8s Running Gradle task 'assembleRelease'... Request to incrementing alive workforce from 0. Current workforce (dead or alive) 0

thread-pool size=4

ProGuard, version 6.0.3

Reading input...

Reading program jar [D:\flutter\bin\cache\artifacts\engine\android-arm-release\flutter.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-v4-27.1.1.aar\c8925820abb0ed3041d397f93b3b3115\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\pgplussdk-1.3.3.aar\17ff9a4d0aa71554f571063872bc3391\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-media-compat-27.1.1.aar\8627f13c5411d468195641ee6d9edf32\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-fragment-27.1.1.aar\3c1b7b81be89a84c3ad5b535d6e73231\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-core-ui-27.1.1.aar\54479edea4e09eb332879bdb96c59d54\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-core-utils-27.1.1.aar\62cc9cf53fbdfe48ee008aaa174d3339\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-compat-27.1.1.aar\b9b31561554901ec76c6b905652a9195\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.8.2\3edcfe49d2c6053a70a2a47e4e1c2f94998a49cf\gson-2.8.2.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\com.squareup.okhttp3\okhttp\3.10.0\7ef0f1d95bf4c0b3ba30bbae25e0e562b05cf75e\okhttp-3.10.0.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\com.android.support\support-annotations\27.1.1\39ded76b5e1ce1c5b2688e1d25cdc20ecee32007\support-annotations-27.1.1.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\runtime-1.1.0.aar\b24b327326d7f0a934fad875f753972f\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\livedata-core-1.1.0.aar\746014e6b8c2ce24415432adc52ba8ec\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\viewmodel-1.1.0.aar\41ced449ee3c6839929d4d50d755bb7e\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\com.squareup.okio\okio\1.14.0\102d7be47241d781ef95f1581d414b0943053130\okio-1.14.0.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\android.arch.lifecycle\common\1.1.0\edf3f7bfb84a7521d0599efa3b0113a0ee90f85\common-1.1.0.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\runtime-1.1.0.aar\31cdae129d9c134f45b510fb552824ca\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\android.arch.core\common\1.1.0\8007981f7d7540d89cd18471b8e5dcd2b4f99167\common-1.1.0.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\shared_preferences\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\url_launcher\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\sqflite\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\image_picker\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\share\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\path_provider\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\paytm_payments\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program directory [E:\projects\flutterprojects\refernearn\build\app\intermediates\javac\release\compileReleaseJavaWithJavac\classes] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\app\intermediates\transforms\mergeJavaRes\release\0.jar] (filtered)

Reading library jar [D:\Android\AppData\platforms\android-28\android.jar]

Reading library jar [D:\Android\AppData\build-tools\28.0.3\core-lambda-stubs.jar]

Reading library jar [D:\Android\AppData\platforms\android-28\optional\org.apache.http.legacy.jar]

Reading library jar [D:\Android\AppData\platforms\android-28\optional\android.test.mock.jar]

Reading library jar [D:\Android\AppData\platforms\android-28\optional\android.test.base.jar]

Reading library jar [D:\Android\AppData\platforms\android-28\optional\android.test.runner.jar]

Initializing...

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Authenticator: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache$2: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache$CacheResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache$CacheResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache$Entry: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CacheControl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CacheControl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CertificatePinner: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CertificatePinner: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CertificatePinner: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CertificatePinner: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Challenge: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Connection: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionPool: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionPool: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cookie: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cookie: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cookie: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Dispatcher: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Dispatcher: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Dispatcher: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.EventListener: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.EventListener: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.EventListener: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.FormBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Handshake: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Handshake: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Handshake: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Headers: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Headers: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Headers: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Interceptor$Chain: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Part: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Part: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Part: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Part: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Part: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Request: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Request: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Request: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Request$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Request$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody$1: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody$2: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody$3: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ResponseBody$1: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Route: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.WebSocket: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.WebSocketListener: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.Util: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.cache.CacheStrategy: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.cache.CacheStrategy: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.cache.DiskLruCache: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.cache.DiskLruCache$Snapshot: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.connection.RealConnection: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.http.RealResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.http.RealResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.platform.AndroidPlatform: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.OpenSSLProvider

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.OpenSSLProvider

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.platform.Jdk9Platform: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.platform.JdkWithJettyBootPlatform: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.platform.Platform: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.ws.RealWebSocket: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.package-info: can't find referenced class javax.annotation.ParametersAreNonnullByDefault

Warning: okio.AsyncTimeout: can't find referenced class javax.annotation.Nullable

Warning: okio.AsyncTimeout: can't find referenced class javax.annotation.Nullable

Warning: okio.AsyncTimeout: can't find referenced class javax.annotation.Nullable

Warning: okio.AsyncTimeout: can't find referenced class javax.annotation.Nullable

Warning: okio.Buffer: can't find referenced class javax.annotation.Nullable

Warning: okio.Buffer: can't find referenced class javax.annotation.Nullable

Warning: okio.BufferedSource: can't find referenced class javax.annotation.Nullable

Warning: okio.ByteString: can't find referenced class javax.annotation.Nullable

Warning: okio.DeflaterSink: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

Warning: okio.HashingSink: can't find referenced class javax.annotation.Nullable

Warning: okio.HashingSink: can't find referenced class javax.annotation.Nullable

Warning: okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

Warning: okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

Warning: okio.Okio$4: can't find referenced class javax.annotation.Nullable

Warning: okio.RealBufferedSource: can't find referenced class javax.annotation.Nullable

Warning: okio.Segment: can't find referenced class javax.annotation.Nullable

Note: com.google.gson.internal.UnsafeAllocator: can't find dynamically referenced class sun.misc.Unsafe

Note: okhttp3.internal.platform.AndroidPlatform: can't find dynamically referenced class com.android.org.conscrypt.SSLParametersImpl

Note: okhttp3.internal.platform.AndroidPlatform: can't find dynamically referenced class org.apache.harmony.xnet.provider.jsse.SSLParametersImpl

Note: okhttp3.internal.platform.AndroidPlatform$CloseGuard: can't find dynamically referenced class dalvik.system.CloseGuard

Note: okhttp3.internal.platform.ConscryptPlatform: can't find dynamically referenced class org.conscrypt.ConscryptEngineSocket

Note: okhttp3.internal.platform.Platform: can't find dynamically referenced class sun.security.ssl.SSLContextImpl

Note: the configuration keeps the entry point 'com.paytm.pgsdk.PaytmWebView { void setWbcListners(com.paytm.pgsdk.PaytmWebView$WbCListeners); }', but not the descriptor class 'com.paytm.pgsdk.PaytmWebView$WbCListeners'

Warning: okio.SegmentPool: can't find referenced class javax.annotation.Nullable

Warning: okio.package-info: can't find referenced class javax.annotation.ParametersAreNonnullByDefault

Note: the configuration keeps the entry point 'com.paytm.pgsdk.easypay.utils.EasypayLoaderService { EasypayLoaderService(com.paytm.pgsdk.easypay.utils.EasypayLoaderService$JsonDownloadListener); }', but not the descriptor class 'com.paytm.pgsdk.easypay.utils.EasypayLoaderService$JsonDownloadListener'

Note: there were 2 unkept descriptor classes in kept class members.

  You should consider explicitly keeping the mentioned classes

Warning: there were 194 unresolved references to classes or interfaces.

     You may need to add missing library jars or update their versions.

     If your code works fine without the missing classes, you can suppress

     the warnings with '-dontwarn' options.

     (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)

FAILURE: Build failed with an exception.

Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.

Job failed, see logs for details

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 1m 36s

  (using '-keep').

  (http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)

Note: there were 6 unresolved dynamic references to classes or interfaces.

  You should check if you need to specify additional program jars.

  (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)

Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.

Thread(Tasks limiter_1): destruction

Picked up _JAVA_OPTIONS: -Xmx512M Running Gradle task 'assembleRelease'... 97.4s


The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app. See https://goo.gl/CP92wY for more information on the problem and how to fix it.


Gradle task assembleRelease failed with exit code 1

Paytm has given some guidelines for proguard rule also which is not compatiable with this plugin. Proguard Rules If you're using proguard for your build, you need to add the following lines to your proguard file (proguard-rules.pro):

-keepclassmembers class com.paytm.pgsdk.PaytmWebView$PaytmJavaScriptInterface { public *; }

Please share your feedback as we are using proguard rules in all of our app

apoorv9496 commented 5 years ago

I had not setup the plugin to work with pro-guard rules set.

Paytm has advised to use a code snippet has mentioned by you to disable pro-guard from obfuscating the paytm's java files. I'll update the code with the required snippet, you will be able to run pro-guard safely with the plugin.

Thank you.

On Wed, 8 May 2019 at 08:26, vikramaggarwal13 notifications@github.com wrote:

I run this command flutter build apk output is Initializing gradle... 1.4s Resolving dependencies... 7.8s Running Gradle task 'assembleRelease'... Request to incrementing alive workforce from 0. Current workforce (dead or alive) 0

thread-pool size=4

ProGuard, version 6.0.3

Reading input...

Reading program jar [D:\flutter\bin\cache\artifacts\engine\android-arm-release\flutter.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-v4-27.1.1.aar\c8925820abb0ed3041d397f93b3b3115\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\pgplussdk-1.3.3.aar\17ff9a4d0aa71554f571063872bc3391\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-media-compat-27.1.1.aar\8627f13c5411d468195641ee6d9edf32\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-fragment-27.1.1.aar\3c1b7b81be89a84c3ad5b535d6e73231\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-core-ui-27.1.1.aar\54479edea4e09eb332879bdb96c59d54\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-core-utils-27.1.1.aar\62cc9cf53fbdfe48ee008aaa174d3339\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-compat-27.1.1.aar\b9b31561554901ec76c6b905652a9195\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.8.2\3edcfe49d2c6053a70a2a47e4e1c2f94998a49cf\gson-2.8.2.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\com.squareup.okhttp3\okhttp\3.10.0\7ef0f1d95bf4c0b3ba30bbae25e0e562b05cf75e\okhttp-3.10.0.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\com.android.support\support-annotations\27.1.1\39ded76b5e1ce1c5b2688e1d25cdc20ecee32007\support-annotations-27.1.1.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\runtime-1.1.0.aar\b24b327326d7f0a934fad875f753972f\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\livedata-core-1.1.0.aar\746014e6b8c2ce24415432adc52ba8ec\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\viewmodel-1.1.0.aar\41ced449ee3c6839929d4d50d755bb7e\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\com.squareup.okio\okio\1.14.0\102d7be47241d781ef95f1581d414b0943053130\okio-1.14.0.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\android.arch.lifecycle\common\1.1.0\edf3f7bfb84a7521d0599efa3b0113a0ee90f85\common-1.1.0.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\runtime-1.1.0.aar\31cdae129d9c134f45b510fb552824ca\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\android.arch.core\common\1.1.0\8007981f7d7540d89cd18471b8e5dcd2b4f99167\common-1.1.0.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\shared_preferences\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\url_launcher\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\sqflite\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\image_picker\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\share\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\path_provider\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\paytm_payments\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program directory [E:\projects\flutterprojects\refernearn\build\app\intermediates\javac\release\compileReleaseJavaWithJavac\classes] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\app\intermediates\transforms\mergeJavaRes\release\0.jar] (filtered)

Reading library jar [D:\Android\AppData\platforms\android-28\android.jar]

Reading library jar [D:\Android\AppData\build-tools\28.0.3\core-lambda-stubs.jar]

Reading library jar [D:\Android\AppData\platforms\android-28\optional\org.apache.http.legacy.jar]

Reading library jar [D:\Android\AppData\platforms\android-28\optional\android.test.mock.jar]

Reading library jar [D:\Android\AppData\platforms\android-28\optional\android.test.base.jar]

Reading library jar [D:\Android\AppData\platforms\android-28\optional\android.test.runner.jar]

Initializing...

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Authenticator: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache$2: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache$CacheResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache$CacheResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache$Entry: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CacheControl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CacheControl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CertificatePinner: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CertificatePinner: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CertificatePinner: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CertificatePinner: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Challenge: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Connection: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionPool: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionPool: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cookie: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cookie: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cookie: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Dispatcher: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Dispatcher: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Dispatcher: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.EventListener: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.EventListener: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.EventListener: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.FormBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Handshake: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Handshake: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Handshake: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Headers: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Headers: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Headers: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Interceptor$Chain: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Part: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Part: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Part: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Part: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Part: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Request: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Request: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Request: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Request$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Request$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody$1: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody$2: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody$3: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ResponseBody$1: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Route: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.WebSocket: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.WebSocketListener: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.Util: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.cache.CacheStrategy: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.cache.CacheStrategy: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.cache.DiskLruCache: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.cache.DiskLruCache$Snapshot: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.connection.RealConnection: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.http.RealResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.http.RealResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.platform.AndroidPlatform: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.OpenSSLProvider

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.OpenSSLProvider

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.platform.Jdk9Platform: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.platform.JdkWithJettyBootPlatform: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.platform.Platform: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.ws.RealWebSocket: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.package-info: can't find referenced class javax.annotation.ParametersAreNonnullByDefault

Warning: okio.AsyncTimeout: can't find referenced class javax.annotation.Nullable

Warning: okio.AsyncTimeout: can't find referenced class javax.annotation.Nullable

Warning: okio.AsyncTimeout: can't find referenced class javax.annotation.Nullable

Warning: okio.AsyncTimeout: can't find referenced class javax.annotation.Nullable

Warning: okio.Buffer: can't find referenced class javax.annotation.Nullable

Warning: okio.Buffer: can't find referenced class javax.annotation.Nullable

Warning: okio.BufferedSource: can't find referenced class javax.annotation.Nullable

Warning: okio.ByteString: can't find referenced class javax.annotation.Nullable

Warning: okio.DeflaterSink: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

Warning: okio.HashingSink: can't find referenced class javax.annotation.Nullable

Warning: okio.HashingSink: can't find referenced class javax.annotation.Nullable

Warning: okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

Warning: okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

Warning: okio.Okio$4: can't find referenced class javax.annotation.Nullable

Warning: okio.RealBufferedSource: can't find referenced class javax.annotation.Nullable

Warning: okio.Segment: can't find referenced class javax.annotation.Nullable

Note: com.google.gson.internal.UnsafeAllocator: can't find dynamically referenced class sun.misc.Unsafe

Note: okhttp3.internal.platform.AndroidPlatform: can't find dynamically referenced class com.android.org.conscrypt.SSLParametersImpl

Note: okhttp3.internal.platform.AndroidPlatform: can't find dynamically referenced class org.apache.harmony.xnet.provider.jsse.SSLParametersImpl

Note: okhttp3.internal.platform.AndroidPlatform$CloseGuard: can't find dynamically referenced class dalvik.system.CloseGuard

Note: okhttp3.internal.platform.ConscryptPlatform: can't find dynamically referenced class org.conscrypt.ConscryptEngineSocket

Note: okhttp3.internal.platform.Platform: can't find dynamically referenced class sun.security.ssl.SSLContextImpl

Note: the configuration keeps the entry point 'com.paytm.pgsdk.PaytmWebView { void setWbcListners(com.paytm.pgsdk.PaytmWebView$WbCListeners); }', but not the descriptor class 'com.paytm.pgsdk.PaytmWebView$WbCListeners'

Warning: okio.SegmentPool: can't find referenced class javax.annotation.Nullable

Warning: okio.package-info: can't find referenced class javax.annotation.ParametersAreNonnullByDefault

Note: the configuration keeps the entry point 'com.paytm.pgsdk.easypay.utils.EasypayLoaderService { EasypayLoaderService(com.paytm.pgsdk.easypay.utils.EasypayLoaderService$JsonDownloadListener); }', but not the descriptor class 'com.paytm.pgsdk.easypay.utils.EasypayLoaderService$JsonDownloadListener'

Note: there were 2 unkept descriptor classes in kept class members.

You should consider explicitly keeping the mentioned classes

Warning: there were 194 unresolved references to classes or interfaces.

 You may need to add missing library jars or update their versions.

 If your code works fine without the missing classes, you can suppress

 the warnings with '-dontwarn' options.

 (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)

FAILURE: Build failed with an exception.

  • What went wrong:

Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.

Job failed, see logs for details

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 1m 36s

(using '-keep').

(http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)

Note: there were 6 unresolved dynamic references to classes or interfaces.

You should check if you need to specify additional program jars.

(http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)

Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.

Thread(Tasks limiter_1): destruction

Picked up _JAVA_OPTIONS: -Xmx512M Running Gradle task 'assembleRelease'... 97.4s

The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app. See https://goo.gl/CP92wY for more information on the problem and how to fix it.

Gradle task assembleRelease failed with exit code 1

Paytm has given some guidelines for proguard rule also which is not compatiable with this plugin. Proguard Rules If you're using proguard for your build, you need to add the following lines to your proguard file (proguard-rules.pro):

-keepclassmembers class com.paytm.pgsdk.PaytmWebView$PaytmJavaScriptInterface { public *; }

Please share your feedback as we are using proguard rules in all of our app

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/apoorv9496/paytm_payments/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AEX6DM5ZIJFXNFJPU5ZLETDPUI6M5ANCNFSM4HLN6SFQ .

vikramaggarwal13 commented 5 years ago

Hi Waiting for your updated plugin so that it will work with pro-guard rules

apoorv9496 commented 5 years ago

Yeah sorry. Had a packed up schedule past couple of days.

Going to fix it tonight. I'll notify you to test it when it's done.

Thank you.

On Fri, May 10, 2019, 16:39 vikramaggarwal13 notifications@github.com wrote:

Hi Waiting for your updated plugin so that it will work with pro-guard rules

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/apoorv9496/paytm_payments/issues/4#issuecomment-491251646, or mute the thread https://github.com/notifications/unsubscribe-auth/AEX6DM7M3S2BEA7EPKIP3O3PUVJXNANCNFSM4HLN6SFQ .

vikramaggarwal13 commented 5 years ago

Ok Thanks, I will wait for fix as i need to upload new build into playstore just waiting for your response now :) .

vikramaggarwal13 commented 5 years ago

Please update plugin so that we can move to some more points.

apoorv9496 commented 5 years ago

I run this command flutter build apk output is Initializing gradle... 1.4s Resolving dependencies... 7.8s Running Gradle task 'assembleRelease'... Request to incrementing alive workforce from 0. Current workforce (dead or alive) 0

thread-pool size=4

ProGuard, version 6.0.3

Reading input...

Reading program jar [D:\flutter\bin\cache\artifacts\engine\android-arm-release\flutter.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-v4-27.1.1.aar\c8925820abb0ed3041d397f93b3b3115\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\pgplussdk-1.3.3.aar\17ff9a4d0aa71554f571063872bc3391\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-media-compat-27.1.1.aar\8627f13c5411d468195641ee6d9edf32\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-fragment-27.1.1.aar\3c1b7b81be89a84c3ad5b535d6e73231\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-core-ui-27.1.1.aar\54479edea4e09eb332879bdb96c59d54\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-core-utils-27.1.1.aar\62cc9cf53fbdfe48ee008aaa174d3339\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\support-compat-27.1.1.aar\b9b31561554901ec76c6b905652a9195\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.8.2\3edcfe49d2c6053a70a2a47e4e1c2f94998a49cf\gson-2.8.2.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\com.squareup.okhttp3\okhttp\3.10.0\7ef0f1d95bf4c0b3ba30bbae25e0e562b05cf75e\okhttp-3.10.0.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\com.android.support\support-annotations\27.1.1\39ded76b5e1ce1c5b2688e1d25cdc20ecee32007\support-annotations-27.1.1.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\runtime-1.1.0.aar\b24b327326d7f0a934fad875f753972f\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\livedata-core-1.1.0.aar\746014e6b8c2ce24415432adc52ba8ec\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\viewmodel-1.1.0.aar\41ced449ee3c6839929d4d50d755bb7e\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\com.squareup.okio\okio\1.14.0\102d7be47241d781ef95f1581d414b0943053130\okio-1.14.0.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\android.arch.lifecycle\common\1.1.0\edf3f7bfb84a7521d0599efa3b0113a0ee90f85\common-1.1.0.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\transforms-1\files-1.1\runtime-1.1.0.aar\31cdae129d9c134f45b510fb552824ca\jars\classes.jar] (filtered)

Reading program jar [C:\Users\vikram.gradle\caches\modules-2\files-2.1\android.arch.core\common\1.1.0\8007981f7d7540d89cd18471b8e5dcd2b4f99167\common-1.1.0.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\shared_preferences\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\url_launcher\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\sqflite\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\image_picker\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\share\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\path_provider\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\paytm_payments\intermediates\intermediate-jars\release\classes.jar] (filtered)

Reading program directory [E:\projects\flutterprojects\refernearn\build\app\intermediates\javac\release\compileReleaseJavaWithJavac\classes] (filtered)

Reading program jar [E:\projects\flutterprojects\refernearn\build\app\intermediates\transforms\mergeJavaRes\release\0.jar] (filtered)

Reading library jar [D:\Android\AppData\platforms\android-28\android.jar]

Reading library jar [D:\Android\AppData\build-tools\28.0.3\core-lambda-stubs.jar]

Reading library jar [D:\Android\AppData\platforms\android-28\optional\org.apache.http.legacy.jar]

Reading library jar [D:\Android\AppData\platforms\android-28\optional\android.test.mock.jar]

Reading library jar [D:\Android\AppData\platforms\android-28\optional\android.test.base.jar]

Reading library jar [D:\Android\AppData\platforms\android-28\optional\android.test.runner.jar]

Initializing...

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Address: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Authenticator: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache$2: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache$CacheResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache$CacheResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cache$Entry: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CacheControl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CacheControl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CertificatePinner: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CertificatePinner: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CertificatePinner: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.CertificatePinner: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Challenge: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Connection: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionPool: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionPool: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ConnectionSpec$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cookie: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cookie: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Cookie: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Dispatcher: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Dispatcher: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Dispatcher: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.EventListener: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.EventListener: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.EventListener: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.FormBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Handshake: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Handshake: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Handshake: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Headers: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Headers: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Headers: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.HttpUrl$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Interceptor$Chain: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MediaType: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Part: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Part: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Part: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Part: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.MultipartBody$Part: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.OkHttpClient$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Request: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Request: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Request: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Request$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Request$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody$1: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody$2: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.RequestBody$3: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Response$Builder: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.ResponseBody$1: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.Route: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.WebSocket: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.WebSocketListener: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.Util: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.cache.CacheStrategy: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.cache.CacheStrategy: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.cache.DiskLruCache: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.cache.DiskLruCache$Snapshot: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.connection.RealConnection: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.http.RealResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.http.RealResponseBody: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.platform.AndroidPlatform: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.OpenSSLProvider

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.OpenSSLProvider

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt

Warning: okhttp3.internal.platform.ConscryptPlatform: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.platform.Jdk9Platform: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.platform.JdkWithJettyBootPlatform: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.platform.Platform: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.internal.ws.RealWebSocket: can't find referenced class javax.annotation.Nullable

Warning: okhttp3.package-info: can't find referenced class javax.annotation.ParametersAreNonnullByDefault

Warning: okio.AsyncTimeout: can't find referenced class javax.annotation.Nullable

Warning: okio.AsyncTimeout: can't find referenced class javax.annotation.Nullable

Warning: okio.AsyncTimeout: can't find referenced class javax.annotation.Nullable

Warning: okio.AsyncTimeout: can't find referenced class javax.annotation.Nullable

Warning: okio.Buffer: can't find referenced class javax.annotation.Nullable

Warning: okio.Buffer: can't find referenced class javax.annotation.Nullable

Warning: okio.BufferedSource: can't find referenced class javax.annotation.Nullable

Warning: okio.ByteString: can't find referenced class javax.annotation.Nullable

Warning: okio.DeflaterSink: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

Warning: okio.HashingSink: can't find referenced class javax.annotation.Nullable

Warning: okio.HashingSink: can't find referenced class javax.annotation.Nullable

Warning: okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

Warning: okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

Warning: okio.Okio$4: can't find referenced class javax.annotation.Nullable

Warning: okio.RealBufferedSource: can't find referenced class javax.annotation.Nullable

Warning: okio.Segment: can't find referenced class javax.annotation.Nullable

Note: com.google.gson.internal.UnsafeAllocator: can't find dynamically referenced class sun.misc.Unsafe

Note: okhttp3.internal.platform.AndroidPlatform: can't find dynamically referenced class com.android.org.conscrypt.SSLParametersImpl

Note: okhttp3.internal.platform.AndroidPlatform: can't find dynamically referenced class org.apache.harmony.xnet.provider.jsse.SSLParametersImpl

Note: okhttp3.internal.platform.AndroidPlatform$CloseGuard: can't find dynamically referenced class dalvik.system.CloseGuard

Note: okhttp3.internal.platform.ConscryptPlatform: can't find dynamically referenced class org.conscrypt.ConscryptEngineSocket

Note: okhttp3.internal.platform.Platform: can't find dynamically referenced class sun.security.ssl.SSLContextImpl

Note: the configuration keeps the entry point 'com.paytm.pgsdk.PaytmWebView { void setWbcListners(com.paytm.pgsdk.PaytmWebView$WbCListeners); }', but not the descriptor class 'com.paytm.pgsdk.PaytmWebView$WbCListeners'

Warning: okio.SegmentPool: can't find referenced class javax.annotation.Nullable

Warning: okio.package-info: can't find referenced class javax.annotation.ParametersAreNonnullByDefault

Note: the configuration keeps the entry point 'com.paytm.pgsdk.easypay.utils.EasypayLoaderService { EasypayLoaderService(com.paytm.pgsdk.easypay.utils.EasypayLoaderService$JsonDownloadListener); }', but not the descriptor class 'com.paytm.pgsdk.easypay.utils.EasypayLoaderService$JsonDownloadListener'

Note: there were 2 unkept descriptor classes in kept class members.

  You should consider explicitly keeping the mentioned classes

Warning: there were 194 unresolved references to classes or interfaces.

     You may need to add missing library jars or update their versions.

     If your code works fine without the missing classes, you can suppress

     the warnings with '-dontwarn' options.

     (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.

Job failed, see logs for details

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 36s

  (using '-keep').

  (http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)

Note: there were 6 unresolved dynamic references to classes or interfaces.

  You should check if you need to specify additional program jars.

  (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)

Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.

Thread(Tasks limiter_1): destruction

Picked up _JAVA_OPTIONS: -Xmx512M Running Gradle task 'assembleRelease'... 97.4s

The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app. See https://goo.gl/CP92wY for more information on the problem and how to fix it.

Gradle task assembleRelease failed with exit code 1

Paytm has given some guidelines for proguard rule also which is not compatiable with this plugin. Proguard Rules If you're using proguard for your build, you need to add the following lines to your proguard file (proguard-rules.pro):

-keepclassmembers class com.paytm.pgsdk.PaytmWebView$PaytmJavaScriptInterface { public *; }

Please share your feedback as we are using proguard rules in all of our app

Hey, I just re-checked the code and the whole process of app compilation while using proguard.

This should resolve your issue Let me know.

vikramaggarwal13 commented 5 years ago

Yes I am having progruard-rules.pro file and i have added given line "-keepclassmembers class com.paytm.pgsdk.PaytmWebView$PaytmJavaScriptInterface { public *; }" already but it was giving error

if i remove paytm_payments plugin then flutter build apk command is generating apk successfully But you know i need this plugin and cant remove this and I am getting this error now again

vikramaggarwal13 commented 5 years ago

Hi

I took below steps

  1. added -ignorewarnings in proguard file 2 clean build
  2. run command flutter build apk

Got build without any error successfully

Doing further testing on it . will update you soon

apoorv9496 commented 5 years ago

Hi

I took below steps

1. added  -ignorewarnings in proguard file
   2 clean build

2. run command flutter build apk

Got build without any error successfully

Doing further testing on it . will update you soon

Great. Let me know if everything works as expected. Will be quite useful for me to for my future projects.

vikramaggarwal13 commented 5 years ago

Hi,

After doing in production i am getting and faced some work flow issue.

Can we have a skype chat or call for fast resolution.

I want to share my screen and will tell you the flow issue. Then you just implement this flow in example and this will help all developers in future.

Thanks Vikram Aggarwal

vikramaggarwal13 commented 5 years ago

If we keep toast parameter true then on success response it shows some toast which is not for end user while it is for developer only then on transactioncancelled response it shows some toast "Transaction Cancelled" yes we want the same in this case

  1. So In Toast we should show only Transaction success then its okay and for development purpose you are returning complete response in res object under paytm_payment.dart page

  2. As listener is not working properly so I have changed this line static Future makePaytmPayment(String merchantId, String checksumUrl, ...........

To

static Future<Map<dynamic, dynamic>> makePaytmPayment(String merchantId, String checksumUrl.....

and responseSink.add(res); return null;

to responseSink.add(res); return res;

Now in res object we have every response in our page . We can perform any action now

  1. In case of transaction cancelled , which part of code will execute ?
apoorv9496 commented 5 years ago

Hi,

After doing in production i am getting and faced some work flow issue.

Can we have a skype chat or call for fast resolution.

I want to share my screen and will tell you the flow issue. Then you just implement this flow in example and this will help all developers in future.

Thanks Vikram Aggarwal

I'm really sorry, I'm hardly able to find anytime for making a skype call on a mutually suitable time. Consult with me regarding your issues under this thread for regular interaction and development also please star the repository if you have so far liked and was helped by this package.

apoorv9496 commented 5 years ago

If we keep toast parameter true then on success response it shows some toast which is not for end user while it is for developer only then on transactioncancelled response it shows some toast "Transaction Cancelled" yes we want the same in this case

1. So In Toast we should show only Transaction success then its okay and for development purpose you are returning complete response in res object under paytm_payment.dart page

2. As listener is not working properly so I have changed this line
   static Future makePaytmPayment(String merchantId, String checksumUrl, ...........

To

static Future<Map<dynamic, dynamic>> makePaytmPayment(String merchantId, String checksumUrl.....

and responseSink.add(res); return null;

to responseSink.add(res); return res;

Now in res object we have every response in our page . We can perform any action now

1. In case of transaction cancelled , which part of code will execute ?
vikramaggarwal13 commented 5 years ago

If we keep toast parameter true then on success response it shows some toast which is not for end user while it is for developer only then on transactioncancelled response it shows some toast "Transaction Cancelled" yes we want the same in this case

  1. So In Toast we should show only Transaction success then its okay and for development purpose you are returning complete response in res object under paytm_payment.dart page
  2. As listener is not working properly so I have changed this line static Future makePaytmPayment(String merchantId, String checksumUrl, ...........

To

static Future<Map<dynamic, dynamic>> makePaytmPayment(String merchantId, String checksumUrl.....

and responseSink.add(res); return null;

to responseSink.add(res); return res;

Now in res object we have every response in our page . We can perform any action now

  1. In case of transaction cancelled , which part of code will execute ?

Ok, Please revert on this one

vikramaggarwal13 commented 5 years ago

If we keep toast parameter true then on success response it shows some toast which is not for end user while it is for developer only then on transactioncancelled response it shows some toast "Transaction Cancelled" yes we want the same in this case

1. So In Toast we should show only Transaction success then its okay and for development purpose you are returning complete response in res object under paytm_payment.dart page

2. As listener is not working properly so I have changed this line
   static Future makePaytmPayment(String merchantId, String checksumUrl, ...........

To static Future<Map<dynamic, dynamic>> makePaytmPayment(String merchantId, String checksumUrl..... and responseSink.add(res); return null; to responseSink.add(res); return res; Now in res object we have every response in our page . We can perform any action now

1. In case of transaction cancelled , which part of code will execute ?
  • Paytm only sends a transaction cancelled response on cancellation and a success or failure object when under transaction response.
  • Toasts messages are specifically for the development period and purpose only. You may use the response message you receive in the listener and display the response in a snackbar as you find suitable.
  • I have got to do some fixing of the stream set, thank you for you input, will fix the stream problem today.

okay , But please if some cancels the payment then our execution is stopped it should enter to some function if in any way we got cancel . Toast did the trick to show user but we want to give alert to user that transaction has been cancelled or we can take any action on it

apoorv9496 commented 5 years ago

If we keep toast parameter true then on success response it shows some toast which is not for end user while it is for developer only then on transactioncancelled response it shows some toast "Transaction Cancelled" yes we want the same in this case

1. So In Toast we should show only Transaction success then its okay and for development purpose you are returning complete response in res object under paytm_payment.dart page

2. As listener is not working properly so I have changed this line
   static Future makePaytmPayment(String merchantId, String checksumUrl, ...........

To static Future<Map<dynamic, dynamic>> makePaytmPayment(String merchantId, String checksumUrl..... and responseSink.add(res); return null; to responseSink.add(res); return res; Now in res object we have every response in our page . We can perform any action now

1. In case of transaction cancelled , which part of code will execute ?
  • Paytm only sends a transaction cancelled response on cancellation and a success or failure object when under transaction response.
  • Toasts messages are specifically for the development period and purpose only. You may use the response message you receive in the listener and display the response in a snackbar as you find suitable.
  • I have got to do some fixing of the stream set, thank you for you input, will fix the stream problem today.

okay , But please if some cancels the payment then our execution is stopped it should enter to some function if in any way we got cancel . Toast did the trick to show user but we want to give alert to user that transaction has been cancelled or we can take any action on it

Isn't transaction cancelled response returned in the listener already?

// setting a listener on payment response PaytmPayments.responseStream.listen((Map<dynamic, dynamic> responseData){

  print(responseData);

  /*
  * {RESPMSG : [MSG]} // this is the type of map object received, except for one case.
  *
  * In this unique case, Transaction Response is received of the format:
  * {CURRENCY: INR, ORDERID: 1557210948833, STATUS: TXN_FAILURE, BANKTXNID: , RESPMSG: Invalid checksum, MID: rxazcv89315285244163, RESPCODE: 330, TXNAMOUNT: 10.00}
  *
  * Call any method here to handle payment process on receiving response. According to the response received.
  * handleResponse();
  *
  * */

});

Since it is returned as {RESPMSG : [MSG]}, you can use this response message to display user or handle in any way desired.

vikramaggarwal13 commented 5 years ago

when we run app in debug mode then its not entering in this listener code. I just selected payment mode (any bank) then i have been pushed to related bank login window There i cancelled the transaction by pressing the phone back button but its not entering in this code

// setting a listener on payment response
PaytmPayments.responseStream.listen((Map<dynamic, dynamic> responseData){

  print(responseData);

  /*
  * {RESPMSG : [MSG]} // this is the type of map object received, except for one case.
  *
  * In this unique case, Transaction Response is received of the format:
  * {CURRENCY: INR, ORDERID: 1557210948833, STATUS: TXN_FAILURE, BANKTXNID: , RESPMSG: Invalid checksum, MID: rxazcv89315285244163, RESPCODE: 330, TXNAMOUNT: 10.00}
  *
  * Call any method here to handle payment process on receiving response. According to the response received.
  * handleResponse();
  *
  * */
});
apoorv9496 commented 5 years ago

when we run app in debug mode then its not entering in this listener code. I just selected payment mode (any bank) then i have been pushed to related bank login window There i cancelled the transaction by pressing the phone back button but its not entering in this code

// setting a listener on payment response
PaytmPayments.responseStream.listen((Map<dynamic, dynamic> responseData){

  print(responseData);

  /*
  * {RESPMSG : [MSG]} // this is the type of map object received, except for one case.
  *
  * In this unique case, Transaction Response is received of the format:
  * {CURRENCY: INR, ORDERID: 1557210948833, STATUS: TXN_FAILURE, BANKTXNID: , RESPMSG: Invalid checksum, MID: rxazcv89315285244163, RESPCODE: 330, TXNAMOUNT: 10.00}
  *
  * Call any method here to handle payment process on receiving response. According to the response received.
  * handleResponse();
  *
  * */
});

okay, thanks for letting me know. I'll check up on that particular payment method.

vikramaggarwal13 commented 5 years ago

hi Still waiting pls reply

vikramaggarwal13 commented 5 years ago

Hope you will find some time on this ASAP. As we need to integrate fully in our app. So waiting for new version to be launched