Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
bbriatte committed Nov 6, 2017
2 parents 4f6711f + efdd1db commit 9e090bf
Show file tree
Hide file tree
Showing 12 changed files with 93 additions and 38 deletions.
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.0
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ before_install:
- gem install bundler
- brew update
- bundle install && brew bundle
- bundle exec pod repo update --silent
script:
- bundle exec fastlane run_tests
after_success:
- bundle exec fastlane ci_framework_deploy
install: bundle exec pod install --repo-update --silent
script: bundle exec fastlane run_tests
after_success: bundle exec fastlane ci_framework_deploy
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@ All notable changes to this project will be documented in this file.
`localization-toolkit` adheres to [Semantic Versioning](http://semver.org/).

---

## [1.0.1](https://github.com/Digipolitan/localization-toolkit/releases/tag/v1.0.1)

move sources
update swift4
update spm
update readme

---
2 changes: 1 addition & 1 deletion LocalizationToolkit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LocalizationToolkit"
s.version = "1.0.0"
s.version = "1.0.1"
s.summary = "Localization helper for swift project"
s.homepage = "https://github.com/Digipolitan/localization-toolkit"
s.authors = "Digipolitan"
Expand Down
54 changes: 28 additions & 26 deletions LocalizationToolkit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
A3169DBA1DE05E8300BABAFD /* LocalizationToolkit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A3169DB01DE05E8300BABAFD /* LocalizationToolkit.framework */; };
A3169DF81DE0718900BABAFD /* LocalizationToolkit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A3169DEF1DE0718900BABAFD /* LocalizationToolkit.framework */; };
A3169E151DE072C800BABAFD /* LocalizationToolkit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A3169E0C1DE072C700BABAFD /* LocalizationToolkit.framework */; };
A3169E761DE083D900BABAFD /* LocalizationToolkit.h in Headers */ = {isa = PBXBuildFile; fileRef = A3169E751DE083D900BABAFD /* LocalizationToolkit.h */; settings = {ATTRIBUTES = (Public, ); }; };
A3169E771DE083D900BABAFD /* LocalizationToolkit.h in Headers */ = {isa = PBXBuildFile; fileRef = A3169E751DE083D900BABAFD /* LocalizationToolkit.h */; settings = {ATTRIBUTES = (Public, ); }; };
A3169E781DE083D900BABAFD /* LocalizationToolkit.h in Headers */ = {isa = PBXBuildFile; fileRef = A3169E751DE083D900BABAFD /* LocalizationToolkit.h */; settings = {ATTRIBUTES = (Public, ); }; };
A3169E791DE083D900BABAFD /* LocalizationToolkit.h in Headers */ = {isa = PBXBuildFile; fileRef = A3169E751DE083D900BABAFD /* LocalizationToolkit.h */; settings = {ATTRIBUTES = (Public, ); }; };
A384D7AE1F9F35A70056B13D /* String+Localization.swift in Sources */ = {isa = PBXBuildFile; fileRef = A384D7AD1F9F35A70056B13D /* String+Localization.swift */; };
A384D7AF1F9F35A70056B13D /* String+Localization.swift in Sources */ = {isa = PBXBuildFile; fileRef = A384D7AD1F9F35A70056B13D /* String+Localization.swift */; };
A384D7B01F9F35A70056B13D /* String+Localization.swift in Sources */ = {isa = PBXBuildFile; fileRef = A384D7AD1F9F35A70056B13D /* String+Localization.swift */; };
A384D7B11F9F35A70056B13D /* String+Localization.swift in Sources */ = {isa = PBXBuildFile; fileRef = A384D7AD1F9F35A70056B13D /* String+Localization.swift */; };
A370DEC61FB0A49C000FEDED /* LocalizationToolkit.h in Headers */ = {isa = PBXBuildFile; fileRef = A370DEC41FB0A49C000FEDED /* LocalizationToolkit.h */; settings = {ATTRIBUTES = (Public, ); }; };
A370DEC71FB0A49C000FEDED /* LocalizationToolkit.h in Headers */ = {isa = PBXBuildFile; fileRef = A370DEC41FB0A49C000FEDED /* LocalizationToolkit.h */; settings = {ATTRIBUTES = (Public, ); }; };
A370DEC81FB0A49C000FEDED /* LocalizationToolkit.h in Headers */ = {isa = PBXBuildFile; fileRef = A370DEC41FB0A49C000FEDED /* LocalizationToolkit.h */; settings = {ATTRIBUTES = (Public, ); }; };
A370DEC91FB0A49C000FEDED /* LocalizationToolkit.h in Headers */ = {isa = PBXBuildFile; fileRef = A370DEC41FB0A49C000FEDED /* LocalizationToolkit.h */; settings = {ATTRIBUTES = (Public, ); }; };
A370DECA1FB0A49C000FEDED /* String+Localization.swift in Sources */ = {isa = PBXBuildFile; fileRef = A370DEC51FB0A49C000FEDED /* String+Localization.swift */; };
A370DECB1FB0A49C000FEDED /* String+Localization.swift in Sources */ = {isa = PBXBuildFile; fileRef = A370DEC51FB0A49C000FEDED /* String+Localization.swift */; };
A370DECC1FB0A49C000FEDED /* String+Localization.swift in Sources */ = {isa = PBXBuildFile; fileRef = A370DEC51FB0A49C000FEDED /* String+Localization.swift */; };
A370DECD1FB0A49C000FEDED /* String+Localization.swift in Sources */ = {isa = PBXBuildFile; fileRef = A370DEC51FB0A49C000FEDED /* String+Localization.swift */; };
A384D7BA1F9F36100056B13D /* Others.strings in Resources */ = {isa = PBXBuildFile; fileRef = A384D7BE1F9F36100056B13D /* Others.strings */; };
A384D7BB1F9F36100056B13D /* Others.strings in Resources */ = {isa = PBXBuildFile; fileRef = A384D7BE1F9F36100056B13D /* Others.strings */; };
A384D7BC1F9F36100056B13D /* Others.strings in Resources */ = {isa = PBXBuildFile; fileRef = A384D7BE1F9F36100056B13D /* Others.strings */; };
Expand Down Expand Up @@ -84,8 +84,8 @@
A3169DF71DE0718900BABAFD /* LocalizationToolkitTests-tvOS.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "LocalizationToolkitTests-tvOS.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
A3169E0C1DE072C700BABAFD /* LocalizationToolkit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = LocalizationToolkit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
A3169E141DE072C800BABAFD /* LocalizationToolkitTests-OSX.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "LocalizationToolkitTests-OSX.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
A3169E751DE083D900BABAFD /* LocalizationToolkit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LocalizationToolkit.h; sourceTree = "<group>"; };
A384D7AD1F9F35A70056B13D /* String+Localization.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "String+Localization.swift"; sourceTree = "<group>"; };
A370DEC41FB0A49C000FEDED /* LocalizationToolkit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LocalizationToolkit.h; sourceTree = "<group>"; };
A370DEC51FB0A49C000FEDED /* String+Localization.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "String+Localization.swift"; sourceTree = "<group>"; };
A384D7BD1F9F36100056B13D /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Others.strings; sourceTree = "<group>"; };
A384D7C21F9F36130056B13D /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
A38EF2C71DECF97000637484 /* LocalizationToolkitTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LocalizationToolkitTests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -203,8 +203,7 @@
A3169DCA1DE0629100BABAFD /* Sources */ = {
isa = PBXGroup;
children = (
A384D7AD1F9F35A70056B13D /* String+Localization.swift */,
A3169E751DE083D900BABAFD /* LocalizationToolkit.h */,
A370DEC31FB0A49C000FEDED /* LocalizationToolkit */,
A3169DCC1DE0629100BABAFD /* Info.plist */,
);
path = Sources;
Expand All @@ -219,6 +218,15 @@
path = Tests;
sourceTree = "<group>";
};
A370DEC31FB0A49C000FEDED /* LocalizationToolkit */ = {
isa = PBXGroup;
children = (
A370DEC41FB0A49C000FEDED /* LocalizationToolkit.h */,
A370DEC51FB0A49C000FEDED /* String+Localization.swift */,
);
path = LocalizationToolkit;
sourceTree = "<group>";
};
A38EF2C61DECF97000637484 /* LocalizationToolkitTests */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -257,31 +265,31 @@
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
A3169E781DE083D900BABAFD /* LocalizationToolkit.h in Headers */,
A370DEC81FB0A49C000FEDED /* LocalizationToolkit.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
A3169E2A1DE07B3E00BABAFD /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
A3169E791DE083D900BABAFD /* LocalizationToolkit.h in Headers */,
A370DEC91FB0A49C000FEDED /* LocalizationToolkit.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
A3169E631DE0804300BABAFD /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
A3169E761DE083D900BABAFD /* LocalizationToolkit.h in Headers */,
A370DEC61FB0A49C000FEDED /* LocalizationToolkit.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
A3169E651DE0804D00BABAFD /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
A3169E771DE083D900BABAFD /* LocalizationToolkit.h in Headers */,
A370DEC71FB0A49C000FEDED /* LocalizationToolkit.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -907,7 +915,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A384D7AE1F9F35A70056B13D /* String+Localization.swift in Sources */,
A370DECA1FB0A49C000FEDED /* String+Localization.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -923,15 +931,15 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A384D7AF1F9F35A70056B13D /* String+Localization.swift in Sources */,
A370DECB1FB0A49C000FEDED /* String+Localization.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
A3169DEA1DE0718900BABAFD /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A384D7B01F9F35A70056B13D /* String+Localization.swift in Sources */,
A370DECC1FB0A49C000FEDED /* String+Localization.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -947,7 +955,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A384D7B11F9F35A70056B13D /* String+Localization.swift in Sources */,
A370DECD1FB0A49C000FEDED /* String+Localization.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -1156,7 +1164,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 14B4363650254BEA4ECF51B4 /* Pods-Tests-LocalizationToolkitTests-iOS.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 582762VK3P;
INFOPLIST_FILE = Tests/Info.plist;
Expand All @@ -1170,7 +1177,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = D401AD7E775380EB96D5AEAC /* Pods-Tests-LocalizationToolkitTests-iOS.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 582762VK3P;
INFOPLIST_FILE = Tests/Info.plist;
Expand Down Expand Up @@ -1275,7 +1281,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 569132CAD4E5D36B72006659 /* Pods-Tests-LocalizationToolkitTests-tvOS.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 582762VK3P;
INFOPLIST_FILE = Tests/Info.plist;
Expand All @@ -1291,7 +1296,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = BA9BFE9DFC91517A89E342E9 /* Pods-Tests-LocalizationToolkitTests-tvOS.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 582762VK3P;
INFOPLIST_FILE = Tests/Info.plist;
Expand Down Expand Up @@ -1354,7 +1358,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 04CE523D6CBC26B777F22A7C /* Pods-Tests-LocalizationToolkitTests-OSX.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 582762VK3P;
Expand All @@ -1371,7 +1374,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 2446A49CADD558DC4032B67F /* Pods-Tests-LocalizationToolkitTests-OSX.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 582762VK3P;
Expand Down
14 changes: 13 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
// swift-tools-version:4.0

import PackageDescription

let package = Package(
name: "LocalizationToolkit",
dependencies: [
products: [
.library(name: "LocalizationToolkit", targets: ["LocalizationToolkit"])
],
targets: [
.target(name: "LocalizationToolkit"),
.testTarget(
name: "LocalizationToolkitTests",
dependencies: [
"LocalizationToolkit"
]
)
]
)
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
LocalizationToolkit
=================================

[![Swift Version](https://img.shields.io/badge/swift-4.0-orange.svg?style=flat)](https://developer.apple.com/swift/)
[![Build Status](https://travis-ci.org/Digipolitan/localization-toolkit.svg?branch=master)](https://travis-ci.org/Digipolitan/localization-toolkit)
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/LocalizationToolkit.svg)](https://img.shields.io/cocoapods/v/LocalizationToolkit.svg)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Carthage Compatible](https://img.shields.io/badge/carthage-compatible-brightgreen.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Swift Package Manager Compatible](https://img.shields.io/badge/swift%20package%20manager-compatible-brightgreen.svg?style=flat)](https://swift.org/package-manager/)
[![Platform](https://img.shields.io/cocoapods/p/LocalizationToolkit.svg?style=flat)](http://cocoadocs.org/docsets/LocalizationToolkit)
[![Twitter](https://img.shields.io/badge/twitter-@Digipolitan-blue.svg?style=flat)](http://twitter.com/Digipolitan)

Expand All @@ -17,12 +19,43 @@ To install LocalizationToolkit with CocoaPods, add the following lines to your `

```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0' # or platform :osx, '10.10' if your target is OS X.
platform :ios, '9.0'
use_frameworks!

pod 'LocalizationToolkit'
```

### Carthage

[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with [Homebrew](http://brew.sh/) using the following command:

```bash
$ brew update
$ brew install carthage
```

To integrate LocalizationToolkit into your Xcode project using Carthage, specify it in your `Cartfile`:

```
github 'Digipolitan/localization-toolkit' ~> 1.0
```

Run `carthage update` to build the framework and drag the built `LocalizationToolkit.framework` into your Xcode project.

### Swift Package Manager

The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler.

Once you have your Swift package set up, adding LocalizationToolkit as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.

```swift
dependencies: [
.package(url: "https://github.com/Digipolitan/localization-toolkit.git", from: "1.0.0")
]
```

## The Basics

```swift
Expand Down
2 changes: 1 addition & 1 deletion Sources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<string>1.0.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSPrincipalClass</key>
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Tests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<string>1.0.1</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ xcode-select --install
<tr>
<th width="33%"><a href="http://brew.sh">Homebrew</a></td>
<th width="33%">Installer Script</td>
<th width="33%">Rubygems</td>
<th width="33%">RubyGems</td>
</tr>
<tr>
<td width="33%" align="center">macOS</td>
Expand Down

0 comments on commit 9e090bf

Please sign in to comment.