{"id":18880518,"url":"https://github.com/onewaytech/ios-sdk","last_synced_at":"2025-10-29T09:54:39.672Z","repository":{"id":62449612,"uuid":"88940809","full_name":"OneWayTech/iOS-SDK","owner":"OneWayTech","description":"OneWaySDK for iOS","archived":false,"fork":false,"pushed_at":"2018-02-01T02:26:55.000Z","size":9596,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-09T21:03:06.961Z","etag":null,"topics":["ads","advertising","oneway","video-ads"],"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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OneWayTech.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":"2017-04-21T04:38:58.000Z","updated_at":"2017-04-28T03:07:34.000Z","dependencies_parsed_at":"2022-11-01T22:31:31.318Z","dependency_job_id":null,"html_url":"https://github.com/OneWayTech/iOS-SDK","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/OneWayTech/iOS-SDK","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneWayTech%2FiOS-SDK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneWayTech%2FiOS-SDK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneWayTech%2FiOS-SDK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneWayTech%2FiOS-SDK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OneWayTech","download_url":"https://codeload.github.com/OneWayTech/iOS-SDK/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneWayTech%2FiOS-SDK/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281600617,"owners_count":26528905,"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","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ads","advertising","oneway","video-ads"],"created_at":"2024-11-08T06:44:18.242Z","updated_at":"2025-10-29T09:54:39.636Z","avatar_url":"https://github.com/OneWayTech.png","language":"Objective-C","readme":"\n\u003cp align=\"center\" \u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/OneWayTech/iOS-SDK/master/OnewaySDK-Demo/Assets.xcassets/logoImg.imageset/logoImg.png\" alt=\"OneWay\" title=\"OneWay\"\u003e\n\u003c/p\u003e\n\n![Travis](https://img.shields.io/travis/rust-lang/rust.svg)\n![Travis](https://img.shields.io/badge/version-v1.2.1-brightgreen.svg)\n![Travis](https://img.shields.io/badge/pod-v1.2.1-blue.svg)\n![Travis](https://img.shields.io/badge/platform-iOS-lightgrey.svg)\n![Travis](https://img.shields.io/hexpm/l/plug.svg)\n\n\u003cp\u003e\n\n|Version | Update | Date |\n| :--- | :--- | :--- |\n| 1.3.0 | Optimizing multithreading | 2017.05.03 |\n| 1.2.1 | 1.support Bitcode  2.support Xcode 7 3.Modify some parameters| 2017.03.09 |\n\n\nWhen you read this document, we assume that you already have a basis of iOS app development experience, and to understand the related basic concepts.\n\n## Integration SDK\n**1.You must be set parameters ``` –all_load ``` in options “Other linker flags”.**\n\n\n\n```objective-c\n// Or you can use following parameters if there is any conflict\n-force_load $(SRCROOT)/OneWaySDK/OneWaySDK.a  //According to your SDK path\n```\n\n**2. Import OneWaySDK.h and Implement OneWaySDKDelegate in AppDelegate.h :**\n\n``` objective-c\n#import \"OneWaySDK.h\"\n@interface AppDelegate : UIResponder \u003cUIApplicationDelegate,OneWaySDKDelegate\u003e\n```\n\u003cBr\u003e**3.Add the following methods to implement the required delegates on the view controller class :**\n\n``` objective-c\n- (void)oneWaySDKReady:(NSString *)placementId;\n- (void)oneWaySDKDidError:(OneWaySDKError)error withMessage:(NSString *)message;\n- (void)oneWaySDKDidStart:(NSString *)placementId;\n- (void)oneWaySDKDidFinish:(NSString *)placementId withFinishState:(OneWaySDKFinishState)state;\n```\n\n\u003cBr\u003e**4.The following code will initialize SDK :**\n\n``` objective-c\n- (BOOL)application:(UIApplication *)application \n                didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{\n\n[OneWaySDK initialize: @\"Your PublishId\" delegate:self];\n    //when you create a applications in our platform, you will get a publish ID.\n\nreturn YES;\n}\n```\n\n\n\u003cBr\u003e**5.The following code will show an ad :**\n\nShow default placement :\n\n``` objective-c\nif ([OneWaySDK isReady]) {\n    [OneWaySDK show:self];\n    //You can set default PlacementID in our developer platform.\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonewaytech%2Fios-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonewaytech%2Fios-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonewaytech%2Fios-sdk/lists"}