├── App
├── RealmSearch.xcodeproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── project.pbxproj
├── RealmSearch.xcworkspace
│ └── contents.xcworkspacedata
├── Podfile
├── Podfile.lock
└── RealmSearch
│ ├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Info.plist
│ ├── Base.lproj
│ └── LaunchScreen.storyboard
│ ├── UserSearch.swift
│ └── ViewController.swift
├── EventListener
├── package.json
├── generateuserdata.js
└── usersearch.js
├── README.md
├── .gitignore
└── LICENSE
/App/RealmSearch.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/EventListener/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "UserSearch-Event_handler",
3 | "version": "0.0.1",
4 | "main": "usersearch.js",
5 | "author": "Your Name",
6 | "description": "Search for user profiles",
7 | "dependencies": {
8 | "realm": "file:realm-1.4.3-professional.tgz"
9 | }
10 | }
--------------------------------------------------------------------------------
/App/RealmSearch.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/App/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment the next line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | target 'RealmSearch' do
5 | # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
6 | use_frameworks!
7 |
8 | # Pods for RealmSearch
9 | pod 'RealmSwift'
10 | end
11 |
--------------------------------------------------------------------------------
/App/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Realm (2.6.2):
3 | - Realm/Headers (= 2.6.2)
4 | - Realm/Headers (2.6.2)
5 | - RealmSwift (2.6.2):
6 | - Realm (= 2.6.2)
7 |
8 | DEPENDENCIES:
9 | - RealmSwift
10 |
11 | SPEC CHECKSUMS:
12 | Realm: 29222766425b9f831228f81b63f0e38a97a4d700
13 | RealmSwift: d161a80f96cb91ae88391a7d5a9cf08024a7bc8e
14 |
15 | PODFILE CHECKSUM: dd86cac8e595c012f637348f569e2eca6cd3d0bf
16 |
17 | COCOAPODS: 1.2.0
18 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # User Search Event Handler
2 | ============================
3 |
4 | This sample app demonstrates how to stream a subset of data from a public Realm file to a single user's private Realm.
5 |
6 | This is useful in scenarios where the public Realm is very large, and the user is only interested in isolating certain records from it.
7 |
8 | It wouldn't make sense to download the entire public Realm to the device, so this mechanism mitigates this by copying the records that the user specifies.
9 |
10 |
11 | **How to try it out:**
12 |
13 | 1. Create text files named `admin_token.base64` and `access-token.enterprise`, containing your ROS instance's admin key, and your Enterprise/Professional token respectively into the to `EventListener` folder.
14 | 2. Copy the Professional edition NPM package to the folder and update the filename in `package.json` if needed (Currently set as `realm-1.4.3-professional.tgz`).
15 | 3. Run `npm install` to get the needed modules.
16 | 5. Start the event handler by running `node usersearch.js`.
17 |
18 | You can run the included UserSearch app to test it out. You will need to update the credentials in the file `ViewController.swift` to match a user existing on the server.
19 |
20 | 
21 |
--------------------------------------------------------------------------------
/App/RealmSearch/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/App/RealmSearch/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////
2 | //
3 | // Copyright 2017 Realm Inc.
4 | //
5 | // Licensed under the Apache License, Version 2.0 (the "License");
6 | // you may not use this file except in compliance with the License.
7 | // You may obtain a copy of the License at
8 | //
9 | // http://www.apache.org/licenses/LICENSE-2.0
10 | //
11 | // Unless required by applicable law or agreed to in writing, software
12 | // distributed under the License is distributed on an "AS IS" BASIS,
13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | // See the License for the specific language governing permissions and
15 | // limitations under the License.
16 | //
17 | ////////////////////////////////////////////////////////////////////////////
18 |
19 | import UIKit
20 |
21 | @UIApplicationMain
22 | class AppDelegate: UIResponder, UIApplicationDelegate {
23 |
24 | var window: UIWindow?
25 |
26 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
27 | window = UIWindow(frame: UIScreen.main.bounds)
28 |
29 | let viewController = ViewController()
30 | let navigationController = UINavigationController(rootViewController: viewController)
31 |
32 | window!.rootViewController = navigationController
33 | window!.makeKeyAndVisible()
34 |
35 | return true
36 | }
37 | }
38 |
39 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData/
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata/
19 |
20 | ## Other
21 | *.moved-aside
22 | *.xcuserstate
23 |
24 | ## Obj-C/Swift specific
25 | *.hmap
26 | *.ipa
27 | *.dSYM.zip
28 | *.dSYM
29 |
30 | ## Playgrounds
31 | timeline.xctimeline
32 | playground.xcworkspace
33 |
34 | # Swift Package Manager
35 | #
36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
37 | # Packages/
38 | .build/
39 |
40 | # CocoaPods
41 | #
42 | # We recommend against adding the Pods directory to your .gitignore. However
43 | # you should judge for yourself, the pros and cons are mentioned at:
44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
45 | #
46 | Pods/
47 |
48 | # Carthage
49 | #
50 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
51 | # Carthage/Checkouts
52 |
53 | Carthage/Build
54 |
55 | # fastlane
56 | #
57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
58 | # screenshots whenever they are needed.
59 | # For more information about the recommended setup visit:
60 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
61 |
62 | fastlane/report.xml
63 | fastlane/Preview.html
64 | fastlane/screenshots
65 | fastlane/test_output
66 | .DS_Store
67 |
--------------------------------------------------------------------------------
/App/RealmSearch/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIRequiredDeviceCapabilities
26 |
27 | armv7
28 |
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | LSApplicationCategoryType
43 |
44 | NSAppTransportSecurity
45 |
46 | NSAllowsArbitraryLoads
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/App/RealmSearch/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/EventListener/generateuserdata.js:
--------------------------------------------------------------------------------
1 | const Realm = require('realm');
2 | const fs = require('fs');
3 |
4 | const server_url = 'realm://localhost:9080';
5 | const REALM_ADMIN_TOKEN = fs.readFileSync('./admin_token.base64', 'utf-8');
6 | const ENTERPRISE_TOKEN = fs.readFileSync('./access-token.enterprise', 'utf-8');
7 |
8 | Realm.Sync.setAccessToken(ENTERPRISE_TOKEN); // needed to enable global listener functionality
9 | Realm.Sync.setLogLevel('error');
10 |
11 | const adminUser = Realm.Sync.User.adminUser(REALM_ADMIN_TOKEN);
12 |
13 | const demoEmails = ["demo@realm.io",
14 | "test@realm.io",
15 | "jmelmoth0@intel.com",
16 | "ablizard1@blogspot.com",
17 | "gvallis2@nsw.gov.au",
18 | "gzywicki3@tinypic.com",
19 | "dbarents4@nature.com",
20 | "cwitty5@cocolog-nifty.com",
21 | "ghailston6@springer.com",
22 | "sspargo7@cnn.com",
23 | "gdugood8@fotki.com",
24 | "vbottoms9@example.com",
25 | "sslya@msu.edu",
26 | "afasseb@whitehouse.gov",
27 | "vnisbetc@friendfeed.com",
28 | "mcunninghamd@sciencedirect.com",
29 | "mmaureene@howstuffworks.com",
30 | "sabdyf@yale.edu",
31 | "tpoileg@sciencedirect.com",
32 | "smachosteh@opera.com",
33 | "zrubinovitschi@xing.com",
34 | "mwoanj@addtoany.com"];
35 |
36 | const userSchema = {
37 | name: 'User',
38 | properties: {
39 | email: 'string',
40 | }
41 | };
42 |
43 | let userRealm = new Realm({
44 | sync: {
45 | user: adminUser,
46 | url: server_url + '/globalUsers',
47 | },
48 | schema: [userSchema]
49 | });
50 |
51 | var users = userRealm.objects('User');
52 |
53 | // Add an artificial delay to allow for the ROS connection to complete
54 | setTimeout(() => {
55 | if (users.length == 0) {
56 | userRealm.write(() => {
57 | demoEmails.forEach(function(emailString) {
58 | userRealm.create('User', { email: emailString });
59 | });
60 | });
61 | }
62 | }, 2000);
63 |
64 |
65 |
--------------------------------------------------------------------------------
/App/RealmSearch/UserSearch.swift:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////
2 | //
3 | // Copyright 2017 Realm Inc.
4 | //
5 | // Licensed under the Apache License, Version 2.0 (the "License");
6 | // you may not use this file except in compliance with the License.
7 | // You may obtain a copy of the License at
8 | //
9 | // http://www.apache.org/licenses/LICENSE-2.0
10 | //
11 | // Unless required by applicable law or agreed to in writing, software
12 | // distributed under the License is distributed on an "AS IS" BASIS,
13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | // See the License for the specific language governing permissions and
15 | // limitations under the License.
16 | //
17 | ////////////////////////////////////////////////////////////////////////////
18 |
19 | import Foundation
20 | import RealmSwift
21 |
22 | // MARK: Model
23 |
24 | final class UserSearch: Object {
25 | // This is the request. Update it to search for
26 | // users whose email address contains the text in the pattern.
27 | dynamic var pattern = ""
28 |
29 | // These are the properties by which the result is delivered.
30 | // If you are in the process of doing a search, you can use
31 | // `resultPattern` to see what the `users` list contains.
32 | dynamic var resultPattern: String?
33 | let users = List()
34 | }
35 |
36 | final class UserProfile: Object {
37 | dynamic var email = ""
38 | }
39 |
40 |
41 | // MARK: Functions
42 |
43 | func getUserSearchRequest(user: SyncUser, server: String) -> UserSearch {
44 | // Open Realm
45 | let configuration = Realm.Configuration(
46 | syncConfiguration: SyncConfiguration(user: user, realmURL: URL(string: "realm://" + server + "/~/usersearch")!),
47 | objectTypes: [UserSearch.self, UserProfile.self]
48 | )
49 | let realm = try! Realm(configuration: configuration)
50 |
51 | // do we have an existing request we can reuse?
52 | let requests = realm.objects(UserSearch.self)
53 | if requests.isEmpty {
54 | // Create a new search request
55 | var request : UserSearch?
56 | try! realm.write {
57 | request = realm.create(UserSearch.self, value: ["pattern": ""])
58 | }
59 | return request!
60 | }
61 | else {
62 | // Reuse existing request
63 | return requests.first!
64 | }
65 | }
66 |
67 |
--------------------------------------------------------------------------------
/EventListener/usersearch.js:
--------------------------------------------------------------------------------
1 | const Realm = require('realm');
2 | const fs = require('fs');
3 |
4 | require('./generateuserdata.js');
5 |
6 | const server_url = 'realm://localhost:9080';
7 | const REALM_ADMIN_TOKEN = fs.readFileSync('./admin_token.base64', 'utf-8');
8 | const ENTERPRISE_TOKEN = fs.readFileSync('./access-token.enterprise', 'utf-8');
9 |
10 | Realm.Sync.setAccessToken(ENTERPRISE_TOKEN); // needed to enable global listener functionality
11 | Realm.Sync.setLogLevel('error');
12 |
13 | const adminUser = Realm.Sync.User.adminUser(REALM_ADMIN_TOKEN);
14 |
15 | function handleChange(changeEvent) {
16 | console.log('Change detected');
17 | console.log(changeEvent.path);
18 |
19 | const changes = changeEvent.changes["UserSearch"];
20 |
21 | // no reason to do any work if there are no requests
22 | if (typeof changes === "undefined")
23 | return;
24 | if (changes.insertions.length == 0 && changes.modifications.length == 0)
25 | return;
26 |
27 | const userSchema = {
28 | name: 'User',
29 | properties: {
30 | email: 'string',
31 | }
32 | };
33 |
34 | let accountsRealm = new Realm({ sync: {user: adminUser, url: server_url + '/globalUsers'}, schema: [userSchema] });
35 |
36 | const searchRealm = changeEvent.realm; // workaround for GN returning new instance on every access
37 | const requests = searchRealm.objects("UserSearch");
38 | const accounts = accountsRealm.objects('User');
39 |
40 | // Find users matching the request
41 | searchRealm.write(() => {
42 | // handle new requests
43 | changes.insertions.forEach((index) => {
44 | const obj = requests[index];
45 |
46 | if (obj.pattern != "") {
47 | const matches = accounts.filtered("email CONTAINS[c] $0", obj.pattern);
48 |
49 | matches.forEach((match) => {
50 | obj.users.push({ email: match.email });
51 | });
52 | }
53 | obj.resultPattern = obj.pattern;
54 | });
55 |
56 | // live update result if request is modified
57 | changes.modifications.forEach((index) => {
58 | const obj = requests[index];
59 |
60 | if (obj.pattern == "") {
61 | searchRealm.delete(obj.users);
62 | console.log("Deleted all");
63 | }
64 | else {
65 | const matches = accounts.filtered("email CONTAINS[c] $0", obj.pattern);
66 | console.log(matches);
67 |
68 | // remove users that are no longer matching
69 | const toDelete = [];
70 | obj.users.forEach((profile) => {
71 | if (matches.filtered("email == $0", profile.email).length == 0) {
72 | toDelete.push(profile);
73 | console.log("Delete " + profile.email);
74 | }
75 | });
76 | searchRealm.delete(toDelete);
77 |
78 | // add new matches
79 | matches.forEach((match) => {
80 | if (obj.users.filtered("email == $0", match.email).length == 0) {
81 | console.log("Matched: " + match.email);
82 | obj.users.push({email: match.email});
83 | }
84 | });
85 | }
86 | obj.resultPattern = obj.pattern;
87 | });
88 | });
89 | }
90 | Realm.Sync.addListener(server_url, adminUser, ".*/usersearch", 'change', handleChange);
91 |
92 | console.log('listening');
93 |
--------------------------------------------------------------------------------
/App/RealmSearch/ViewController.swift:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////
2 | //
3 | // Copyright 2017 Realm Inc.
4 | //
5 | // Licensed under the Apache License, Version 2.0 (the "License");
6 | // you may not use this file except in compliance with the License.
7 | // You may obtain a copy of the License at
8 | //
9 | // http://www.apache.org/licenses/LICENSE-2.0
10 | //
11 | // Unless required by applicable law or agreed to in writing, software
12 | // distributed under the License is distributed on an "AS IS" BASIS,
13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | // See the License for the specific language governing permissions and
15 | // limitations under the License.
16 | //
17 | ////////////////////////////////////////////////////////////////////////////
18 |
19 | import UIKit
20 | import RealmSwift
21 |
22 | class ViewController: UITableViewController, UISearchBarDelegate {
23 | let server = "localhost:9080"
24 | var request : UserSearch?
25 | var notificationToken: NotificationToken!
26 |
27 | let searchBar = UISearchBar()
28 |
29 | deinit {
30 | notificationToken.stop()
31 | }
32 |
33 | override func viewDidLoad() {
34 | super.viewDidLoad()
35 | title = "Realm Search"
36 | view.backgroundColor = .white
37 |
38 | searchBar.frame.size.height = 44
39 | searchBar.placeholder = "Search"
40 | searchBar.delegate = self
41 | tableView.tableHeaderView = searchBar
42 |
43 | login()
44 | }
45 |
46 | // MARK: - Search Bar Delegate -
47 | func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
48 | print(searchBar.text!)
49 | if (self.request != nil) {
50 | try! self.request!.realm?.write {
51 | self.request!.pattern = searchBar.text!
52 | }
53 | }
54 | }
55 |
56 | // MARK: - Table View Data Source -
57 | override func tableView(_ tableView: UITableView?, numberOfRowsInSection section: Int) -> Int {
58 | if (request != nil) {
59 | return request!.users.count
60 | }
61 | else {
62 | return 0
63 | }
64 | }
65 |
66 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
67 | let identifier = "Cell"
68 | var cell = tableView.dequeueReusableCell(withIdentifier: identifier)
69 | if cell == nil {
70 | cell = UITableViewCell(style: .default, reuseIdentifier: identifier)
71 | }
72 |
73 | let item = request!.users[indexPath.row]
74 | cell!.textLabel?.text = item.email
75 |
76 | return cell!
77 | }
78 |
79 | func setupRealm(user: SyncUser) {
80 | print("open realm")
81 | self.request = getUserSearchRequest(user: user, server: self.server)
82 |
83 | // Show initial users
84 | self.searchBar.text = self.request?.resultPattern
85 | self.tableView.reloadData()
86 |
87 | // Notify us when the server updates the request results
88 | self.notificationToken = self.request?.users.addNotificationBlock { _ in
89 | self.tableView.reloadData()
90 | }
91 | }
92 |
93 | func login() {
94 | if let user = SyncUser.current {
95 | setupRealm(user: user)
96 | }
97 | else {
98 | // Log in existing user with username and password
99 | let username = "tester@realm.io" // <--- Update this
100 | let password = "a" // <--- Update this
101 |
102 | print("logging in...")
103 | SyncUser.logIn(with: .usernamePassword(username: username, password: password, register: false), server: URL(string: "http://" + self.server)!) { user, error in
104 | guard let user = user else {
105 | fatalError(String(describing: error))
106 | }
107 | print("login done")
108 | DispatchQueue.main.async {
109 | self.setupRealm(user: user)
110 | }
111 | }
112 | }
113 | }
114 | }
115 |
116 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright {yyyy} {name of copyright owner}
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/App/RealmSearch.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 22ADC2891EAAC876003CC74E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22ADC2881EAAC876003CC74E /* AppDelegate.swift */; };
11 | 22ADC28B1EAAC876003CC74E /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22ADC28A1EAAC876003CC74E /* ViewController.swift */; };
12 | 22ADC2901EAAC876003CC74E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 22ADC28F1EAAC876003CC74E /* Assets.xcassets */; };
13 | 22ADC2931EAAC876003CC74E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 22ADC2911EAAC876003CC74E /* LaunchScreen.storyboard */; };
14 | 22DBB92F1EAB155F00BC9519 /* UserSearch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22DBB92E1EAB155F00BC9519 /* UserSearch.swift */; };
15 | 741C9AD4287D486972D7F15A /* Pods_RealmSearch.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B7B0B0FE307CC5C09A346DDF /* Pods_RealmSearch.framework */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXFileReference section */
19 | 22ADC2851EAAC876003CC74E /* RealmSearch.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RealmSearch.app; sourceTree = BUILT_PRODUCTS_DIR; };
20 | 22ADC2881EAAC876003CC74E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
21 | 22ADC28A1EAAC876003CC74E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
22 | 22ADC28F1EAAC876003CC74E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
23 | 22ADC2921EAAC876003CC74E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
24 | 22ADC2941EAAC876003CC74E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
25 | 22DBB92E1EAB155F00BC9519 /* UserSearch.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserSearch.swift; sourceTree = ""; };
26 | B7B0B0FE307CC5C09A346DDF /* Pods_RealmSearch.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RealmSearch.framework; sourceTree = BUILT_PRODUCTS_DIR; };
27 | C95DD84D3CF9B2044BA50F85 /* Pods-RealmSearch.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RealmSearch.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RealmSearch/Pods-RealmSearch.debug.xcconfig"; sourceTree = ""; };
28 | DBB863251F9BC776468D28E9 /* Pods-RealmSearch.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RealmSearch.release.xcconfig"; path = "Pods/Target Support Files/Pods-RealmSearch/Pods-RealmSearch.release.xcconfig"; sourceTree = ""; };
29 | /* End PBXFileReference section */
30 |
31 | /* Begin PBXFrameworksBuildPhase section */
32 | 22ADC2821EAAC876003CC74E /* Frameworks */ = {
33 | isa = PBXFrameworksBuildPhase;
34 | buildActionMask = 2147483647;
35 | files = (
36 | 741C9AD4287D486972D7F15A /* Pods_RealmSearch.framework in Frameworks */,
37 | );
38 | runOnlyForDeploymentPostprocessing = 0;
39 | };
40 | /* End PBXFrameworksBuildPhase section */
41 |
42 | /* Begin PBXGroup section */
43 | 22ADC27C1EAAC876003CC74E = {
44 | isa = PBXGroup;
45 | children = (
46 | 22ADC2871EAAC876003CC74E /* RealmSearch */,
47 | 22ADC2861EAAC876003CC74E /* Products */,
48 | 354486D3F01D4E70265C3D9D /* Pods */,
49 | F76A8402F2A7DDBA3BF07847 /* Frameworks */,
50 | );
51 | sourceTree = "";
52 | };
53 | 22ADC2861EAAC876003CC74E /* Products */ = {
54 | isa = PBXGroup;
55 | children = (
56 | 22ADC2851EAAC876003CC74E /* RealmSearch.app */,
57 | );
58 | name = Products;
59 | sourceTree = "";
60 | };
61 | 22ADC2871EAAC876003CC74E /* RealmSearch */ = {
62 | isa = PBXGroup;
63 | children = (
64 | 22ADC2881EAAC876003CC74E /* AppDelegate.swift */,
65 | 22ADC28A1EAAC876003CC74E /* ViewController.swift */,
66 | 22DBB92E1EAB155F00BC9519 /* UserSearch.swift */,
67 | 22ADC28F1EAAC876003CC74E /* Assets.xcassets */,
68 | 22ADC2911EAAC876003CC74E /* LaunchScreen.storyboard */,
69 | 22ADC2941EAAC876003CC74E /* Info.plist */,
70 | );
71 | path = RealmSearch;
72 | sourceTree = "";
73 | };
74 | 354486D3F01D4E70265C3D9D /* Pods */ = {
75 | isa = PBXGroup;
76 | children = (
77 | C95DD84D3CF9B2044BA50F85 /* Pods-RealmSearch.debug.xcconfig */,
78 | DBB863251F9BC776468D28E9 /* Pods-RealmSearch.release.xcconfig */,
79 | );
80 | name = Pods;
81 | sourceTree = "";
82 | };
83 | F76A8402F2A7DDBA3BF07847 /* Frameworks */ = {
84 | isa = PBXGroup;
85 | children = (
86 | B7B0B0FE307CC5C09A346DDF /* Pods_RealmSearch.framework */,
87 | );
88 | name = Frameworks;
89 | sourceTree = "";
90 | };
91 | /* End PBXGroup section */
92 |
93 | /* Begin PBXNativeTarget section */
94 | 22ADC2841EAAC876003CC74E /* RealmSearch */ = {
95 | isa = PBXNativeTarget;
96 | buildConfigurationList = 22ADC2971EAAC876003CC74E /* Build configuration list for PBXNativeTarget "RealmSearch" */;
97 | buildPhases = (
98 | CAB658EC8429B31D8FEBA6E5 /* [CP] Check Pods Manifest.lock */,
99 | 22ADC2811EAAC876003CC74E /* Sources */,
100 | 22ADC2821EAAC876003CC74E /* Frameworks */,
101 | 22ADC2831EAAC876003CC74E /* Resources */,
102 | 2D83841C661E90B943782D4D /* [CP] Embed Pods Frameworks */,
103 | 206A551D38D7C683FF0A7604 /* [CP] Copy Pods Resources */,
104 | );
105 | buildRules = (
106 | );
107 | dependencies = (
108 | );
109 | name = RealmSearch;
110 | productName = RealmSearch;
111 | productReference = 22ADC2851EAAC876003CC74E /* RealmSearch.app */;
112 | productType = "com.apple.product-type.application";
113 | };
114 | /* End PBXNativeTarget section */
115 |
116 | /* Begin PBXProject section */
117 | 22ADC27D1EAAC876003CC74E /* Project object */ = {
118 | isa = PBXProject;
119 | attributes = {
120 | LastSwiftUpdateCheck = 0830;
121 | LastUpgradeCheck = 0830;
122 | ORGANIZATIONNAME = Realm;
123 | TargetAttributes = {
124 | 22ADC2841EAAC876003CC74E = {
125 | CreatedOnToolsVersion = 8.3.2;
126 | DevelopmentTeam = QX5CR2FTN2;
127 | ProvisioningStyle = Automatic;
128 | };
129 | };
130 | };
131 | buildConfigurationList = 22ADC2801EAAC876003CC74E /* Build configuration list for PBXProject "RealmSearch" */;
132 | compatibilityVersion = "Xcode 3.2";
133 | developmentRegion = English;
134 | hasScannedForEncodings = 0;
135 | knownRegions = (
136 | en,
137 | Base,
138 | );
139 | mainGroup = 22ADC27C1EAAC876003CC74E;
140 | productRefGroup = 22ADC2861EAAC876003CC74E /* Products */;
141 | projectDirPath = "";
142 | projectRoot = "";
143 | targets = (
144 | 22ADC2841EAAC876003CC74E /* RealmSearch */,
145 | );
146 | };
147 | /* End PBXProject section */
148 |
149 | /* Begin PBXResourcesBuildPhase section */
150 | 22ADC2831EAAC876003CC74E /* Resources */ = {
151 | isa = PBXResourcesBuildPhase;
152 | buildActionMask = 2147483647;
153 | files = (
154 | 22ADC2931EAAC876003CC74E /* LaunchScreen.storyboard in Resources */,
155 | 22ADC2901EAAC876003CC74E /* Assets.xcassets in Resources */,
156 | );
157 | runOnlyForDeploymentPostprocessing = 0;
158 | };
159 | /* End PBXResourcesBuildPhase section */
160 |
161 | /* Begin PBXShellScriptBuildPhase section */
162 | 206A551D38D7C683FF0A7604 /* [CP] Copy Pods Resources */ = {
163 | isa = PBXShellScriptBuildPhase;
164 | buildActionMask = 2147483647;
165 | files = (
166 | );
167 | inputPaths = (
168 | );
169 | name = "[CP] Copy Pods Resources";
170 | outputPaths = (
171 | );
172 | runOnlyForDeploymentPostprocessing = 0;
173 | shellPath = /bin/sh;
174 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RealmSearch/Pods-RealmSearch-resources.sh\"\n";
175 | showEnvVarsInLog = 0;
176 | };
177 | 2D83841C661E90B943782D4D /* [CP] Embed Pods Frameworks */ = {
178 | isa = PBXShellScriptBuildPhase;
179 | buildActionMask = 2147483647;
180 | files = (
181 | );
182 | inputPaths = (
183 | );
184 | name = "[CP] Embed Pods Frameworks";
185 | outputPaths = (
186 | );
187 | runOnlyForDeploymentPostprocessing = 0;
188 | shellPath = /bin/sh;
189 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RealmSearch/Pods-RealmSearch-frameworks.sh\"\n";
190 | showEnvVarsInLog = 0;
191 | };
192 | CAB658EC8429B31D8FEBA6E5 /* [CP] Check Pods Manifest.lock */ = {
193 | isa = PBXShellScriptBuildPhase;
194 | buildActionMask = 2147483647;
195 | files = (
196 | );
197 | inputPaths = (
198 | );
199 | name = "[CP] Check Pods Manifest.lock";
200 | outputPaths = (
201 | );
202 | runOnlyForDeploymentPostprocessing = 0;
203 | shellPath = /bin/sh;
204 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
205 | showEnvVarsInLog = 0;
206 | };
207 | /* End PBXShellScriptBuildPhase section */
208 |
209 | /* Begin PBXSourcesBuildPhase section */
210 | 22ADC2811EAAC876003CC74E /* Sources */ = {
211 | isa = PBXSourcesBuildPhase;
212 | buildActionMask = 2147483647;
213 | files = (
214 | 22DBB92F1EAB155F00BC9519 /* UserSearch.swift in Sources */,
215 | 22ADC28B1EAAC876003CC74E /* ViewController.swift in Sources */,
216 | 22ADC2891EAAC876003CC74E /* AppDelegate.swift in Sources */,
217 | );
218 | runOnlyForDeploymentPostprocessing = 0;
219 | };
220 | /* End PBXSourcesBuildPhase section */
221 |
222 | /* Begin PBXVariantGroup section */
223 | 22ADC2911EAAC876003CC74E /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 22ADC2921EAAC876003CC74E /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 22ADC2951EAAC876003CC74E /* Debug */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
240 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
241 | CLANG_CXX_LIBRARY = "libc++";
242 | CLANG_ENABLE_MODULES = YES;
243 | CLANG_ENABLE_OBJC_ARC = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_CONSTANT_CONVERSION = YES;
246 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
247 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
248 | CLANG_WARN_EMPTY_BODY = YES;
249 | CLANG_WARN_ENUM_CONVERSION = YES;
250 | CLANG_WARN_INFINITE_RECURSION = YES;
251 | CLANG_WARN_INT_CONVERSION = YES;
252 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
253 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
254 | CLANG_WARN_UNREACHABLE_CODE = YES;
255 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
256 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
257 | COPY_PHASE_STRIP = NO;
258 | DEBUG_INFORMATION_FORMAT = dwarf;
259 | ENABLE_STRICT_OBJC_MSGSEND = YES;
260 | ENABLE_TESTABILITY = YES;
261 | GCC_C_LANGUAGE_STANDARD = gnu99;
262 | GCC_DYNAMIC_NO_PIC = NO;
263 | GCC_NO_COMMON_BLOCKS = YES;
264 | GCC_OPTIMIZATION_LEVEL = 0;
265 | GCC_PREPROCESSOR_DEFINITIONS = (
266 | "DEBUG=1",
267 | "$(inherited)",
268 | );
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 10.3;
276 | MTL_ENABLE_DEBUG_INFO = YES;
277 | ONLY_ACTIVE_ARCH = YES;
278 | SDKROOT = iphoneos;
279 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
280 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
281 | TARGETED_DEVICE_FAMILY = "1,2";
282 | };
283 | name = Debug;
284 | };
285 | 22ADC2961EAAC876003CC74E /* Release */ = {
286 | isa = XCBuildConfiguration;
287 | buildSettings = {
288 | ALWAYS_SEARCH_USER_PATHS = NO;
289 | CLANG_ANALYZER_NONNULL = YES;
290 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
291 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
292 | CLANG_CXX_LIBRARY = "libc++";
293 | CLANG_ENABLE_MODULES = YES;
294 | CLANG_ENABLE_OBJC_ARC = YES;
295 | CLANG_WARN_BOOL_CONVERSION = YES;
296 | CLANG_WARN_CONSTANT_CONVERSION = YES;
297 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
298 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
299 | CLANG_WARN_EMPTY_BODY = YES;
300 | CLANG_WARN_ENUM_CONVERSION = YES;
301 | CLANG_WARN_INFINITE_RECURSION = YES;
302 | CLANG_WARN_INT_CONVERSION = YES;
303 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
304 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
305 | CLANG_WARN_UNREACHABLE_CODE = YES;
306 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
307 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
308 | COPY_PHASE_STRIP = NO;
309 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
310 | ENABLE_NS_ASSERTIONS = NO;
311 | ENABLE_STRICT_OBJC_MSGSEND = YES;
312 | GCC_C_LANGUAGE_STANDARD = gnu99;
313 | GCC_NO_COMMON_BLOCKS = YES;
314 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
315 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
316 | GCC_WARN_UNDECLARED_SELECTOR = YES;
317 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
318 | GCC_WARN_UNUSED_FUNCTION = YES;
319 | GCC_WARN_UNUSED_VARIABLE = YES;
320 | IPHONEOS_DEPLOYMENT_TARGET = 10.3;
321 | MTL_ENABLE_DEBUG_INFO = NO;
322 | SDKROOT = iphoneos;
323 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
324 | TARGETED_DEVICE_FAMILY = "1,2";
325 | VALIDATE_PRODUCT = YES;
326 | };
327 | name = Release;
328 | };
329 | 22ADC2981EAAC876003CC74E /* Debug */ = {
330 | isa = XCBuildConfiguration;
331 | baseConfigurationReference = C95DD84D3CF9B2044BA50F85 /* Pods-RealmSearch.debug.xcconfig */;
332 | buildSettings = {
333 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
334 | DEVELOPMENT_TEAM = QX5CR2FTN2;
335 | INFOPLIST_FILE = RealmSearch/Info.plist;
336 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
337 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
338 | PRODUCT_BUNDLE_IDENTIFIER = io.realm.RealmSearch;
339 | PRODUCT_NAME = "$(TARGET_NAME)";
340 | SWIFT_VERSION = 3.0;
341 | };
342 | name = Debug;
343 | };
344 | 22ADC2991EAAC876003CC74E /* Release */ = {
345 | isa = XCBuildConfiguration;
346 | baseConfigurationReference = DBB863251F9BC776468D28E9 /* Pods-RealmSearch.release.xcconfig */;
347 | buildSettings = {
348 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
349 | DEVELOPMENT_TEAM = QX5CR2FTN2;
350 | INFOPLIST_FILE = RealmSearch/Info.plist;
351 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
352 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
353 | PRODUCT_BUNDLE_IDENTIFIER = io.realm.RealmSearch;
354 | PRODUCT_NAME = "$(TARGET_NAME)";
355 | SWIFT_VERSION = 3.0;
356 | };
357 | name = Release;
358 | };
359 | /* End XCBuildConfiguration section */
360 |
361 | /* Begin XCConfigurationList section */
362 | 22ADC2801EAAC876003CC74E /* Build configuration list for PBXProject "RealmSearch" */ = {
363 | isa = XCConfigurationList;
364 | buildConfigurations = (
365 | 22ADC2951EAAC876003CC74E /* Debug */,
366 | 22ADC2961EAAC876003CC74E /* Release */,
367 | );
368 | defaultConfigurationIsVisible = 0;
369 | defaultConfigurationName = Release;
370 | };
371 | 22ADC2971EAAC876003CC74E /* Build configuration list for PBXNativeTarget "RealmSearch" */ = {
372 | isa = XCConfigurationList;
373 | buildConfigurations = (
374 | 22ADC2981EAAC876003CC74E /* Debug */,
375 | 22ADC2991EAAC876003CC74E /* Release */,
376 | );
377 | defaultConfigurationIsVisible = 0;
378 | defaultConfigurationName = Release;
379 | };
380 | /* End XCConfigurationList section */
381 | };
382 | rootObject = 22ADC27D1EAAC876003CC74E /* Project object */;
383 | }
384 |
--------------------------------------------------------------------------------