{"action":"created","issue":{"url":"https://api.github.com/repos/PointyCastle/pointycastle/issues/114","repository_url":"https://api.github.com/repos/PointyCastle/pointycastle","labels_url":"https://api.github.com/repos/PointyCastle/pointycastle/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/PointyCastle/pointycastle/issues/114/comments","events_url":"https://api.github.com/repos/PointyCastle/pointycastle/issues/114/events","html_url":"https://github.com/PointyCastle/pointycastle/issues/114","id":254066553,"number":114,"title":"Unable to use PointyCastle in Flutter due to dependency for dart:mirrors","user":{"login":"gurmukhp","id":899769,"avatar_url":"https://avatars1.githubusercontent.com/u/899769?v=4","gravatar_id":"","url":"https://api.github.com/users/gurmukhp","html_url":"https://github.com/gurmukhp","followers_url":"https://api.github.com/users/gurmukhp/followers","following_url":"https://api.github.com/users/gurmukhp/following{/other_user}","gists_url":"https://api.github.com/users/gurmukhp/gists{/gist_id}","starred_url":"https://api.github.com/users/gurmukhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurmukhp/subscriptions","organizations_url":"https://api.github.com/users/gurmukhp/orgs","repos_url":"https://api.github.com/users/gurmukhp/repos","events_url":"https://api.github.com/users/gurmukhp/events{/privacy}","received_events_url":"https://api.github.com/users/gurmukhp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-30T16:49:12Z","updated_at":"2017-12-21T21:11:35Z","closed_at":null,"author_association":"NONE","body":"I've imported the package as so:\r\n\r\n```\r\ndependencies:\r\n  flutter:\r\n    sdk: flutter\r\n  firebase_analytics: 0.0.4                                       # new\r\n  firebase_auth: 0.1.1                                            # new\r\n  firebase_database: 0.0.12                                       # new\r\n  firebase_storage: 0.0.5                                       # new\r\n  http: '>=0.11.3+12'\r\n  #cipher: \"^0.7.1\"\r\n  pointycastle: '0.10.0+5'\r\n```\r\n\r\nrun `flutter packages get`\r\n\r\nimport the following\r\n\r\n```\r\nimport 'package:pointycastle/pointycastle.dart';\r\nimport 'package:pointycastle/impl.dart';\r\n```\r\n\r\nUnfortunately I get the following errors:\r\n```\r\n[VERBOSE-2:dart_error.cc(16)] 'package:reflectable/capability.dart': malformed type: line 539 pos 33: cannot resolve class 'StringInvocation' from '_StringInvocation@457210198'\r\n\tclass _StringInvocation extends StringInvocation {\r\n\t                                ^\r\n\r\nPerforming full restart...\r\n[VERBOSE-2:dart_error.cc(16)] 'package:reflectable/src/reflectable_mirror_based.dart': error: line 13 pos 1: import of dart:mirrors with --enable-mirrors=false\r\n\timport 'dart:mirrors' as dm;\r\n\t^\r\n\t'package:reflectable/reflectable.dart': error: line 14 pos 1: library handler failed\r\n\timport 'src/reflectable_mirror_based.dart' as implementation;\r\n\t^\r\n\t'package:pointycastle/src/registry/registry.dart': error: line 7 pos 1: library handler failed\r\n\timport \"package:reflectable/reflectable.dart\";\r\n\t^\r\n\t'package:pointycastle/api.dart': error: line 18 pos 1: library handler failed\r\n\timport \"src/registry/registry.dart\";\r\n\t^\r\n\t'package:pointycastle/pointycastle.dart': error: line 13 pos 1: library handler failed\r\n\texport \"package:pointycastle/api.dart\";\r\n\t^\r\n\t'/Users/gurmukh/Library/Developer/CoreSimulator/Devices/EDBF96CD-41AE-4993-B0A0-1CB8E04552A9/data/Containers/Data/Application/157478FE-1B36-4FA2-8986-739CAA2D9421/tmp/crypto-portfoliovkBVyS/crypto-portfolio/lib/main.dart': error: line 9 pos 1: library handler failed\r\n\timport 'package:pointycastle/pointycastle.dart';\r\n\t^\r\nRestarted app in 622ms.\r\n[VERBOSE-2:dart_error.cc(16)] Unhandled exception:\r\n\tNoSuchMethodError: The method 'call' was called on null.\r\n\tReceiver: null\r\n\tTried calling: call()\r\n\t#0      Object._noSuchMethod (dart:core-patch/object_patch.dart:42)\r\n\t#1      Object.noSuchMethod (dart:core-patch/object_patch.dart:46)\r\n\t#2      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)\r\n\t#3      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)\r\n```\r\n\r\nThe old cipher package works totally fine. Do you know how I can fix this error? \r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/PointyCastle/pointycastle/issues/comments/353458745","html_url":"https://github.com/PointyCastle/pointycastle/issues/114#issuecomment-353458745","issue_url":"https://api.github.com/repos/PointyCastle/pointycastle/issues/114","id":353458745,"user":{"login":"gurmukhp","id":899769,"avatar_url":"https://avatars1.githubusercontent.com/u/899769?v=4","gravatar_id":"","url":"https://api.github.com/users/gurmukhp","html_url":"https://github.com/gurmukhp","followers_url":"https://api.github.com/users/gurmukhp/followers","following_url":"https://api.github.com/users/gurmukhp/following{/other_user}","gists_url":"https://api.github.com/users/gurmukhp/gists{/gist_id}","starred_url":"https://api.github.com/users/gurmukhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurmukhp/subscriptions","organizations_url":"https://api.github.com/users/gurmukhp/orgs","repos_url":"https://api.github.com/users/gurmukhp/repos","events_url":"https://api.github.com/users/gurmukhp/events{/privacy}","received_events_url":"https://api.github.com/users/gurmukhp/received_events","type":"User","site_admin":false},"created_at":"2017-12-21T21:11:35Z","updated_at":"2017-12-21T21:11:35Z","author_association":"NONE","body":"Apologies, I fixed Cipher (which PointyCastle was forked from) and added the necessary fixes. It works fine with Flutter :-)\r\n\r\nhttps://github.com/izaera/cipher/pull/98\r\nhttps://github.com/gurmukhp/cipher"}}
{"actor":{"display_login":"gurmukhp"}}