Skip to content

Commit 74feda2

Browse files
committed
* License updated on each sourcecode file
* Flag Image credits given
1 parent 700ac4a commit 74feda2

File tree

8 files changed

+157
-14
lines changed

8 files changed

+157
-14
lines changed

CountryPicker/CountryPicker/Classes/CountryInfo/Country.swift

+21-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,28 @@
33
// CountryPicker
44
//
55
// Created by Randika Chandrapala on 7/15/18.
6-
// Copyright © 2018 HackerPunch. All rights reserved.
76
//
7+
// The MIT License (MIT)
8+
//
9+
// Copyright (c) 2018 Kasun Randika
10+
//
11+
// Permission is hereby granted, free of charge, to any person obtaining a copy
12+
// of this software and associated documentation files (the "Software"), to deal
13+
// in the Software without restriction, including without limitation the rights
14+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15+
// copies of the Software, and to permit persons to whom the Software is
16+
// furnished to do so, subject to the following conditions:
17+
//
18+
// The above copyright notice and this permission notice shall be included in all
19+
// copies or substantial portions of the Software.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27+
// SOFTWARE.
828

929
import UIKit
1030

CountryPicker/CountryPicker/Classes/CountryInfo/CountryListManager.swift

+21-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,28 @@
33
// CountryPicker
44
//
55
// Created by Randika Chandrapala on 7/15/18.
6-
// Copyright © 2018 HackerPunch. All rights reserved.
76
//
7+
// The MIT License (MIT)
8+
//
9+
// Copyright (c) 2018 Kasun Randika
10+
//
11+
// Permission is hereby granted, free of charge, to any person obtaining a copy
12+
// of this software and associated documentation files (the "Software"), to deal
13+
// in the Software without restriction, including without limitation the rights
14+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15+
// copies of the Software, and to permit persons to whom the Software is
16+
// furnished to do so, subject to the following conditions:
17+
//
18+
// The above copyright notice and this permission notice shall be included in all
19+
// copies or substantial portions of the Software.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27+
// SOFTWARE.
828

929
import UIKit
1030

CountryPicker/CountryPicker/Classes/CountryInfo/CountryPicker.h

+21-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,28 @@
33
// CountryPicker
44
//
55
// Created by Randika Chandrapala on 7/15/18.
6-
// Copyright © 2018 HackerPunch. All rights reserved.
76
//
7+
// The MIT License (MIT)
8+
//
9+
// Copyright (c) 2018 Kasun Randika
10+
//
11+
// Permission is hereby granted, free of charge, to any person obtaining a copy
12+
// of this software and associated documentation files (the "Software"), to deal
13+
// in the Software without restriction, including without limitation the rights
14+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15+
// copies of the Software, and to permit persons to whom the Software is
16+
// furnished to do so, subject to the following conditions:
17+
//
18+
// The above copyright notice and this permission notice shall be included in all
19+
// copies or substantial portions of the Software.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27+
// SOFTWARE.
828

929
#import <UIKit/UIKit.h>
1030

CountryPicker/CountryPicker/Classes/CountryInfo/ProcessCountryListOperation.swift

+21-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,28 @@
33
// CountryPicker
44
//
55
// Created by Randika Chandrapala on 7/15/18.
6-
// Copyright © 2018 HackerPunch. All rights reserved.
76
//
7+
// The MIT License (MIT)
8+
//
9+
// Copyright (c) 2018 Kasun Randika
10+
//
11+
// Permission is hereby granted, free of charge, to any person obtaining a copy
12+
// of this software and associated documentation files (the "Software"), to deal
13+
// in the Software without restriction, including without limitation the rights
14+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15+
// copies of the Software, and to permit persons to whom the Software is
16+
// furnished to do so, subject to the following conditions:
17+
//
18+
// The above copyright notice and this permission notice shall be included in all
19+
// copies or substantial portions of the Software.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27+
// SOFTWARE.
828

929
import UIKit
1030

CountryPicker/CountryPicker/Classes/CountryPickerUI/CountryPickerTableViewController.swift

+21-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,28 @@
33
// CountryPicker
44
//
55
// Created by Randika Chandrapala on 7/15/18.
6-
// Copyright © 2018 HackerPunch. All rights reserved.
76
//
7+
// The MIT License (MIT)
8+
//
9+
// Copyright (c) 2018 Kasun Randika
10+
//
11+
// Permission is hereby granted, free of charge, to any person obtaining a copy
12+
// of this software and associated documentation files (the "Software"), to deal
13+
// in the Software without restriction, including without limitation the rights
14+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15+
// copies of the Software, and to permit persons to whom the Software is
16+
// furnished to do so, subject to the following conditions:
17+
//
18+
// The above copyright notice and this permission notice shall be included in all
19+
// copies or substantial portions of the Software.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27+
// SOFTWARE.
828

929
import UIKit
1030

CountryPicker/CountryPicker/Classes/CountryPickerUI/CountryPickerTableViewControllerDelegate.swift

+21-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,28 @@
33
// CountryPicker
44
//
55
// Created by Randika Chandrapala on 7/15/18.
6-
// Copyright © 2018 HackerPunch. All rights reserved.
76
//
7+
// The MIT License (MIT)
8+
//
9+
// Copyright (c) 2018 Kasun Randika
10+
//
11+
// Permission is hereby granted, free of charge, to any person obtaining a copy
12+
// of this software and associated documentation files (the "Software"), to deal
13+
// in the Software without restriction, including without limitation the rights
14+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15+
// copies of the Software, and to permit persons to whom the Software is
16+
// furnished to do so, subject to the following conditions:
17+
//
18+
// The above copyright notice and this permission notice shall be included in all
19+
// copies or substantial portions of the Software.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27+
// SOFTWARE.
828

929
public protocol CountryPickerTableViewControllerDelegate: class {
1030
func didSelectCountry(country: Country?)

CountryPicker/CountryPicker/Classes/FileHandler/FileHandler.swift

+21-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,28 @@
33
// CountryPicker
44
//
55
// Created by Randika Chandrapala on 8/5/18.
6-
// Copyright © 2018 HackerPunch. All rights reserved.
76
//
7+
// The MIT License (MIT)
8+
//
9+
// Copyright (c) 2018 Kasun Randika
10+
//
11+
// Permission is hereby granted, free of charge, to any person obtaining a copy
12+
// of this software and associated documentation files (the "Software"), to deal
13+
// in the Software without restriction, including without limitation the rights
14+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15+
// copies of the Software, and to permit persons to whom the Software is
16+
// furnished to do so, subject to the following conditions:
17+
//
18+
// The above copyright notice and this permission notice shall be included in all
19+
// copies or substantial portions of the Software.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27+
// SOFTWARE.
828

929
import Foundation
1030

README.md

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# countrypicker-ios-swift
1+
# RVCountryPicker iOS Swift library
22

3-
Country Picker with flags for iOS iPhone Apps, written in Swift. Currently support 226 countries.
3+
Country Picker with flag images for iOS iPhone Apps, written in Swift. Currently supports 225 countries, for the ISO country codes which is found within `NSLocale.isoCountryCodes` API.
44

55
<p align="center">
66
<img src="https://i.imgur.com/1gnTA4z.png" width="2000" height="550" alt="Real Device iPhone6S Vs iPhone6S Simulator"/><br/>
@@ -12,13 +12,14 @@ Country Picker with flags for iOS iPhone Apps, written in Swift. Currently suppo
1212

1313
* You can easily get an array of Country Objects which includes following attributes per country object instance
1414
* Index in alphabetical order (0 - 225)
15-
* Country Name,
15+
* Country Name (Ex. Sri Lanka)
1616
* ISO Country Code (Ex. for Sri Lanka - LK)
1717
* Locale ID for the country (Ex. for Sri Lanka - _LK)
18-
* Flag Image Name (out of the 226 flags images files included within the library)
18+
* Flag Image Name (corresponding flag image name out of the 226 image files included within the library)
1919
* You can integrate above `CountryPickerTableViewController` with 5 lines of code (see bellow steps)
2020

2121
### Development Road Map
22+
2223
* DisplayOnlyCountriesArr
2324
* ShowExceptCountriesArr
2425
* Search Bar and enableSearchBar
@@ -40,11 +41,11 @@ $ gem install cocoapods
4041

4142
To integrate **CountryPicker** into your Xcode project using CocoaPods, specify it in your Podfile as follows:
4243

43-
You want to add pod 'countrypicker-ios-swift', '~> 1.2' similar to the following to your Podfile:
44+
You can add pod 'RVCountryPicker', '~> 1.2.5' similar to the following to your Podfile:
4445

4546
```ruby
4647
target '<Your App Target Name>' do
47-
pod 'RVCountryPicker', '~> 1.2.4'
48+
pod 'RVCountryPicker', '~> 1.2.5'
4849
end
4950
```
5051

@@ -128,12 +129,14 @@ Remember you definitely will have to implement the `CountryPickerTableViewContro
128129
- You can always add up your valuable utility methods to this class which is related to the purpose of this library.
129130
- Don't forget to check out the Demo project simple implementation to get some more ideas.
130131

132+
Flag Images Credit:
133+
[Flag images were designed by Freepik from Flaticon](https://www.flaticon.com/authors/freepik)
131134

132135
## License
133136
This source code is made available under the MIT License.
134137

135138
```sh
136-
Copyright (c) 2016 Randika Vishman
139+
Copyright (c) 2018 Randika Vishman
137140

138141
Permission is hereby granted, free of charge, to any person obtaining a copy
139142
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)