{"id":16346980,"url":"https://github.com/ospoon/coreplugin","last_synced_at":"2025-11-09T02:30:25.134Z","repository":{"id":57209438,"uuid":"220938451","full_name":"OSpoon/CorePlugin","owner":"OSpoon","description":"CorePlugin : A cordova plugin, a JS version of n22 SDK","archived":false,"fork":false,"pushed_at":"2022-07-13T07:36:17.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T12:18:31.949Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OSpoon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-11T08:50:08.000Z","updated_at":"2022-07-13T07:36:41.000Z","dependencies_parsed_at":"2022-09-01T07:50:27.978Z","dependency_job_id":null,"html_url":"https://github.com/OSpoon/CorePlugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2FCorePlugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2FCorePlugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2FCorePlugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2FCorePlugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OSpoon","download_url":"https://codeload.github.com/OSpoon/CorePlugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239565664,"owners_count":19660158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T00:38:57.531Z","updated_at":"2025-11-09T02:30:25.085Z","avatar_url":"https://github.com/OSpoon.png","language":"Java","readme":"# Cordova Plugin CorePlugin\n================================\n\nCross-platform CorePlugin for Cordova.\n\nFollows the [Cordova Plugin spec](https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html), so that it works with [Plugman](https://github.com/apache/cordova-plugman).\n\n## Installation\n```\n    cordova plugin add coreplugin\n```\n### Supported Platforms\n\n- Android\n\n## Using the plugin ##\nThe plugin creates the object \n`cordova.CorePlugin` with the method `hybridCallAction(hybridStr, success, fail)`.\n\n```js\n/* 此交互js可公共使用\n * hybridStr 调用原生事例\n * MACallPlugin 为 业务类 类名\n * 202 方法ID\n * showSignMutiViewWithInfo 为方法名\n * ?问号后面为方法参数 \n */\nlet hybridStr = 'hybrid://MACallPlugin:202/showSignMutiViewWithInfo?{\"paramters\":\"hello\"}';\ncordova.CorePlugin.hybridCallAction(hybridStr, (result)=\u003e{\n\t//调用插件 成功返回\n\tconsole.log(result);\n},(error)=\u003e{\n\t//调用插件 失败返回\n\tconsole.log(error);\n});\n```\n\n## License ##\nMIT License\n\nCopyright (c) 2019 OSpoon\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fospoon%2Fcoreplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fospoon%2Fcoreplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fospoon%2Fcoreplugin/lists"}