{"id":27320100,"url":"https://github.com/entria/react-native-datami","last_synced_at":"2025-04-12T09:12:50.527Z","repository":{"id":80864380,"uuid":"82974159","full_name":"entria/react-native-datami","owner":"entria","description":null,"archived":false,"fork":false,"pushed_at":"2017-04-20T19:39:29.000Z","size":2510,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T09:12:29.284Z","etag":null,"topics":["datami","react-native"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/entria.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-02-23T21:41:20.000Z","updated_at":"2020-01-30T05:33:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c43ca0f-6cbe-4fc0-82f9-39c4da89199c","html_url":"https://github.com/entria/react-native-datami","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entria%2Freact-native-datami","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entria%2Freact-native-datami/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entria%2Freact-native-datami/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entria%2Freact-native-datami/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/entria","download_url":"https://codeload.github.com/entria/react-native-datami/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543847,"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":["datami","react-native"],"created_at":"2025-04-12T09:12:28.519Z","updated_at":"2025-04-12T09:12:50.521Z","avatar_url":"https://github.com/entria.png","language":"Objective-C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-datami\n\n## Getting started\n\n`$ npm install react-native-datami --save`\n\n### Mostly automatic installation\n\n`$ react-native link react-native-datami`\n\n### Manual installation\n\n\n#### iOS\n\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2. Go to `node_modules` ➜ `react-native-datami` and add `RNDatami.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNDatami.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Run your project (`Cmd+R`)\u003c\n\n### How I did it\n\nSearch all `NSURLSessionConfiguration` references, and add this line after it\n\n```objective-c\n[SmiSdk registerAppConfiguration: configuration];\n```\n\n#### Example\n\n```diff\n(NSURLSessionDataTask *)sendRequest:(NSURLRequest *)request\n                         withDelegate:(id\u003cRCTURLRequestDelegate\u003e)delegate\n{\n  // Lazy setup\n  if (!_session \u0026\u0026 [self isValid]) {\n    NSOperationQueue *callbackQueue = [NSOperationQueue new];\n    callbackQueue.maxConcurrentOperationCount = 1;\n    callbackQueue.underlyingQueue = [[_bridge networking] methodQueue];\n    NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];\n+   [SmiSdk registerAppConfiguration: configuration];\n    _session = [NSURLSession sessionWithConfiguration:configuration\n                                             delegate:self\n                                        delegateQueue:callbackQueue];\n\n    std::lock_guard\u003cstd::mutex\u003e lock(_mutex);\n    _delegates = [[NSMapTable alloc] initWithKeyOptions:NSPointerFunctionsStrongMemory\n                                           valueOptions:NSPointerFunctionsStrongMemory\n                                               capacity:0];\n  }\n\n  NSURLSessionDataTask *task = [_session dataTaskWithRequest:request];\n  {\n    std::lock_guard\u003cstd::mutex\u003e lock(_mutex);\n    [_delegates setObject:delegate forKey:task];\n  }\n  [task resume];\n  return task;\n}\n```\n\n#### Android\n\nThis is only needed on iOS\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentria%2Freact-native-datami","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fentria%2Freact-native-datami","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentria%2Freact-native-datami/lists"}