{"id":24084143,"url":"https://github.com/adambco/eula-ios-sdk","last_synced_at":"2025-04-30T19:44:15.293Z","repository":{"id":56910099,"uuid":"69564747","full_name":"AdamBCo/eula-ios-sdk","owner":"AdamBCo","description":"An iOS framework for adding End User License Agreements FAST!","archived":false,"fork":false,"pushed_at":"2017-05-19T18:31:11.000Z","size":2650,"stargazers_count":13,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T09:42:56.453Z","etag":null,"topics":["cocoapod","eula","eula-ios-sdk","objective-c","swift"],"latest_commit_sha":null,"homepage":"https://www.eula.io","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdamBCo.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":"2016-09-29T12:19:51.000Z","updated_at":"2019-09-03T06:47:14.000Z","dependencies_parsed_at":"2022-08-21T04:20:29.617Z","dependency_job_id":null,"html_url":"https://github.com/AdamBCo/eula-ios-sdk","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamBCo%2Feula-ios-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamBCo%2Feula-ios-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamBCo%2Feula-ios-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamBCo%2Feula-ios-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdamBCo","download_url":"https://codeload.github.com/AdamBCo/eula-ios-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251772685,"owners_count":21641485,"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":["cocoapod","eula","eula-ios-sdk","objective-c","swift"],"created_at":"2025-01-10T00:19:34.713Z","updated_at":"2025-04-30T19:44:15.256Z","avatar_url":"https://github.com/AdamBCo.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://s3-us-west-1.amazonaws.com/eula-assets/eula-logo.png\" width=\"100\" alt=\"EULA Logo\"/\u003e\u003c/p\u003e\n\n# EULA iOS SDK\n\nThe EULA iOS SDK supports products featured on http://www.eula.io\n\nIf you do not have a developer account, please register for one [HERE](http://www.eula.io/register).\n\n## Install and Configure Eula iOS SDK\n\n### Step 1\n\nEULA is available through [CocoaPods](http://cocoapods.org/). To install it, simply add the following line to your `Podfile`:\n\n```\npod 'Eula'\n```\n\n### Step 2\n#### Add to your App Delegate\nSomewhere near the top of your `-applicationDidFinishLaunching:withOptions:`, add `[ELAManager setAPIKey:@\"YOUR_API_KEY\" apiSecret:@\"YOUR_API_SECRET\"]`, where `YOUR_API_KEY` and `YOUR_API_SECRET` are two special tokens found on the [API Docs](http://eula.io/api-documents) of your dashboard.\n\n##### _Objective C_\n\n```objc\n#import \u003cEula/Eula.h\u003e\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions\n{\n    // Add this line\n    [ELAManager setAPIKey:@\"YOUR_API_KEY\" apiSecret:@\"YOUR_API_SECRET\"];\n    ...\n}\n```\n\n##### _Swift_\n\n```swift\nimport Eula\n\nfunc application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -\u003e Bool \n{\n    // Add this line\n    ELAManager.setAPIKey(\"YOUR_API_KEY\", apiSecret:\"YOUR_API_SECRET\")\n    ...\n}\n```\n\n### Step 3\n#### Set User Credentials\nIn general, you should set the User's `email` and `userName`  when the user logs in to your application, and call `-logOut` when they log out.\n##### _Objective C_\n\n```objc\n#import \u003cEula/Eula.h\u003e\n{\n   [ELAManager setUserEmail:@\"USER_EMAIL\"];\n   [ELAManager setUserName:@\"USER_NAME\"];\n    ...\n}\n```\n\n##### _Swift_\n\n```swift\nimport Eula\n{\n    ELAManager. setUserEmail(\"USER_EMAIL\")\n    ELAManager. setUserName(\"USER_NAME\")\n    ...\n}\n```\n---\n\n### Step 4\n#### Activate App\nSomewhere near the top of your `-applicationDidBecomeActive:` call `-activateApp`.\n##### _Objective C_\n\n```objc\n#import \u003cEula/Eula.h\u003e\n\n- (void)applicationDidBecomeActive:(UIApplication *)application \n{\n    // Add this line\n    [ELAManager activateApp];\n    ...\n}\n```\n\n##### _Swift_\n\n```swift\nimport Eula\n\nfunc applicationDidBecomeActive(_ application: UIApplication) \n{\n    // Add this line\n    ELAManager.activateApp()\n    ...\n}\n```\n---\n### Author\n\nAdam Cooper, team@eula.io\n\n### License\n\nEULA is available under the Apache 2.0 license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadambco%2Feula-ios-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadambco%2Feula-ios-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadambco%2Feula-ios-sdk/lists"}