{"id":15015304,"url":"https://github.com/hypery2k/nativescript-fabric","last_synced_at":"2025-04-12T09:15:05.166Z","repository":{"id":47533304,"uuid":"74947028","full_name":"hypery2k/nativescript-fabric","owner":"hypery2k","description":"Handling App URLs in nativescript apps","archived":false,"fork":false,"pushed_at":"2024-05-30T20:57:12.000Z","size":2983,"stargazers_count":30,"open_issues_count":14,"forks_count":14,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2025-04-12T09:14:53.842Z","etag":null,"topics":["android","farming","ios","nativescript","nativescript-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/hypery2k.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-11-28T07:11:25.000Z","updated_at":"2024-05-30T15:59:04.000Z","dependencies_parsed_at":"2022-09-26T19:13:02.217Z","dependency_job_id":"a1132d52-63a3-4fc5-abf1-d70b6915ffde","html_url":"https://github.com/hypery2k/nativescript-fabric","commit_stats":{"total_commits":236,"total_committers":7,"mean_commits":"33.714285714285715","dds":0.0847457627118644,"last_synced_commit":"e6d0329a827b14829e1b379d9692d9fa6a664d88"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypery2k%2Fnativescript-fabric","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypery2k%2Fnativescript-fabric/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypery2k%2Fnativescript-fabric/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypery2k%2Fnativescript-fabric/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hypery2k","download_url":"https://codeload.github.com/hypery2k/nativescript-fabric/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543839,"owners_count":21121838,"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":["android","farming","ios","nativescript","nativescript-plugin"],"created_at":"2024-09-24T19:46:44.210Z","updated_at":"2025-04-12T09:15:05.146Z","avatar_url":"https://github.com/hypery2k.png","language":"JavaScript","readme":"# NativeScript Fabric Plugin ![apple](https://cdn3.iconfinder.com/data/icons/picons-social/57/16-apple-32.png) ![android](https://cdn4.iconfinder.com/data/icons/logos-3/228/android-32.png)\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/hypery2k/nativescript-fabric.svg)](https://greenkeeper.io/)\n[![Build Status](https://travis-ci.org/hypery2k/nativescript-fabric.svg?branch=master)](https://travis-ci.org/hypery2k/nativescript-fabric)\n[![Donate with Bitcoin](https://martinreinhardt-online.de/assets/img/button-badge-bitcoin.svg)](bitcoin:3NKtxw1SRYgess5ev4Ri54GekoAgkR213D)\n\n[![npm version](https://badge.fury.io/js/nativescript-fabric.svg)](http://badge.fury.io/js/nativescript-fabric)\n[![Maintainability](https://api.codeclimate.com/v1/badges/85a5fd560b331cd8922e/maintainability)](https://codeclimate.com/github/hypery2k/nativescript-fabric/maintainability)\n\n[![NPM](https://nodei.co/npm/nativescript-fabric.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/nativescript-fabric/)\n\n\u003ca name=\"donation\"\u003e\u003c/a\u003e\n\u003e Feel free to **donate**\n\u003e\n\u003e \u003ca target=\"_blank\" href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=H8TR8246RCDJG\"\u003e\n\u003e \u003cimg alt=\"\" border=\"0\" src=\"https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif\"/\u003e\n\u003e \u003c/img\u003e\u003c/a\u003e\n\u003e Or donate Bitcoins: bitcoin:3NKtxw1SRYgess5ev4Ri54GekoAgkR213D\n\u003e\n\u003e [![Bitcoin](https://martinreinhardt-online.de/bitcoin.png)](bitcoin:3NKtxw1SRYgess5ev4Ri54GekoAgkR213D)\n\u003e\n\u003e Also via [greenaddress](https://greenaddress.it/pay/GA3ZPfh7As3Gc2oP6pQ1njxMij88u/)\n\n\n# Usage\n\n\n\n\n## Installation\n\n\nGo to [Crashlytics](https://fabric.io/kits/ios/crashlytics/install) and pick of the needed API-Key and API-Secret:\n\n![](etc/crashlytics_configuration.png)\n\nCreate a file fabric.json in the project root folder and add the API-Key and API-Secret: \n\n```\n{\n    \"using_ios\": true,\n    \"using_android\": true,\n    \"api_key\": \"...\",\n    \"api_secret\": \"...\"\n}\n```\n\n```\n$ tns plugin add nativescript-fabric\n```\n\nOr if you want to use the development version (nightly build), which maybe not stable!:\n\n```\n$ tns plugin add nativescript-fabric@next\n```\n\n### Android\n\nAdd the API-Key to your AndroidManifest.xml:\n\n```\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?\u003e\n\u003cmanifest xmlns:android=\"http://schemas.android.com/apk/res/android\" package=\"__PACKAGE__\" android:versionCode=\"385\" android:versionName=\"1.0.14\"\u003e\n ....\n  \u003capplication android:name=\"com.tns.NativeScriptApplication\" android:allowBackup=\"true\" android:icon=\"@drawable/icon\" android:label=\"@string/app_name\" android:theme=\"@style/AppTheme\"\u003e\n    ...\n    \u003cmeta-data android:name=\"io.fabric.ApiKey\" android:value=\"**\u003cAPI-KEY\u003e**\"/\u003e\n  \u003c/application\u003e\n\u003c/manifest\u003e\n\n```\n\n### iOS\nNo further confiugration needed\n\n## Additional information\n\n### Android \n\nFor more details see [fabric.io/kits/android/crashlytics](https://fabric.io/kits/android/crashlytics/install).\n\n### iOS\n\nFor more details see [fabric.io/kits/ios/crashlytics](https://fabric.io/kits/ios/crashlytics/manual-install?step=1).\n\n## API\n\nInit the plugin in your app (for angular apps use main.ts):\n\n```\nimport { Fabric } from 'nativescript-fabric';\nFabric.init();\n```\n\nAfterwards you can use the instance methods for logging (general error logging is already added):\n* `Fabric.logSignUp(method: string, success: boolean);`\n* `Fabric.logLogin(method: string, success: boolean);`\n* `Fabric.logContentView(id: string, name: string, type: string)`\n* `Fabric.logCustomEvent(withName: string, customAttributes: Map\u003cString, String\u003e)`\n* `Fabric.logError(error: any, msg?: string)`\n\n\n## Angular\n\n```\nimport { FabricModule } from 'nativescript-fabric/angular';\n\nNgModule({\n  ...\n  imports: [\n    FabricModule.forRoot()\n  ],\n\n```\n# Known Issues\n\n## com.android.ide.common.process.ProcessException\n\n```\nFAILURE: Build failed with an exception.\n\n* What went wrong:\nExecution failed for task ':app:transformClassesWithDexForF0F1F2F3F4F5Debug'.\n\u003e com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: Cannot merge new index 69013 into a non-jumbo instruction!nto a non-jumbo instruction!\n\n```\nset the following in your app.gradle:\n```\nandroid {\n    ...\n    dexOptions {\n        jumboMode true\n    }\n\n}\n```\n\n## XML Parsing error\n\n```\nError:/app/build/intermediates/res/merged/debug/values/com_crashlytics_build_id.xml uncompiled XML file passed as argument. Must be compiled first into .flat file.\n```\n\nTry adding:\n```\nandroid.enableAapt2 = false\n```\nto your `gradle.properties` file.\n","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=H8TR8246RCDJG"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypery2k%2Fnativescript-fabric","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypery2k%2Fnativescript-fabric","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypery2k%2Fnativescript-fabric/lists"}