Skip to content

Commit

Permalink
Make the constructor accessable from the outside
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Oster committed Oct 24, 2016
1 parent 5ec549b commit 8fd6b85
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 6 deletions.
21 changes: 21 additions & 0 deletions ROGoogleTranslate.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Be sure to run `pod lib lint ROGoogleTranslate.podspec' to ensure this is a
# valid spec and remove all comments before submitting the spec.
#
# Any lines starting with a # are optional, but encouraged
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |spec|
spec.name = 'ROGoogleTranslate'
spec.version = '0.0.2'
spec.license = { :type => 'MIT' }
spec.homepage = 'https://github.com/prine/ROGoogleTranslate'
spec.authors = { 'Robin Oster' => '[email protected]' }
spec.summary = 'Simplifies the usage of the Google Translate API via Swift'
spec.source = { :git => 'https://github.com/prine/ROGoogleTranslate.git', :tag => "0.0.2" }
spec.source_files = 'Source/**/*'
spec.framework = 'SystemConfiguration'
spec.ios.deployment_target = '9.0'
end
8 changes: 4 additions & 4 deletions ROGoogleTranslate.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@
objects = {

/* Begin PBXBuildFile section */
CB46171F1DBE32740066AD96 /* ROGoogleTranslate.podspec in Resources */ = {isa = PBXBuildFile; fileRef = CB46171E1DBE32740066AD96 /* ROGoogleTranslate.podspec */; };
CBCA3FBD1DB90B850025D8E4 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CBCA3FBC1DB90B850025D8E4 /* AppDelegate.swift */; };
CBCA3FBF1DB90B850025D8E4 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CBCA3FBE1DB90B850025D8E4 /* ViewController.swift */; };
CBCA3FC21DB90B850025D8E4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CBCA3FC01DB90B850025D8E4 /* Main.storyboard */; };
CBCA3FC41DB90B850025D8E4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CBCA3FC31DB90B850025D8E4 /* Assets.xcassets */; };
CBCA3FC71DB90B850025D8E4 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CBCA3FC51DB90B850025D8E4 /* LaunchScreen.storyboard */; };
CBCA3FD01DB90C280025D8E4 /* ROGoogleTranslate.podspec in Resources */ = {isa = PBXBuildFile; fileRef = CBCA3FCF1DB90C280025D8E4 /* ROGoogleTranslate.podspec */; };
CBCA3FD21DB90F970025D8E4 /* ROGoogleTranslate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CBCA3FD11DB90F970025D8E4 /* ROGoogleTranslate.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
CB46171E1DBE32740066AD96 /* ROGoogleTranslate.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ROGoogleTranslate.podspec; sourceTree = SOURCE_ROOT; };
CBCA3FB91DB90B850025D8E4 /* ROGoogleTranslate.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ROGoogleTranslate.app; sourceTree = BUILT_PRODUCTS_DIR; };
CBCA3FBC1DB90B850025D8E4 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
CBCA3FBE1DB90B850025D8E4 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
CBCA3FC11DB90B850025D8E4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
CBCA3FC31DB90B850025D8E4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
CBCA3FC61DB90B850025D8E4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
CBCA3FC81DB90B850025D8E4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
CBCA3FCF1DB90C280025D8E4 /* ROGoogleTranslate.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ROGoogleTranslate.podspec; sourceTree = "<group>"; };
CBCA3FD11DB90F970025D8E4 /* ROGoogleTranslate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ROGoogleTranslate.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -66,14 +66,14 @@
CBCA3FBB1DB90B850025D8E4 /* ROGoogleTranslate */ = {
isa = PBXGroup;
children = (
CB46171E1DBE32740066AD96 /* ROGoogleTranslate.podspec */,
CBCA3FCE1DB90B8C0025D8E4 /* Source */,
CBCA3FBC1DB90B850025D8E4 /* AppDelegate.swift */,
CBCA3FBE1DB90B850025D8E4 /* ViewController.swift */,
CBCA3FC01DB90B850025D8E4 /* Main.storyboard */,
CBCA3FC31DB90B850025D8E4 /* Assets.xcassets */,
CBCA3FC51DB90B850025D8E4 /* LaunchScreen.storyboard */,
CBCA3FC81DB90B850025D8E4 /* Info.plist */,
CBCA3FCF1DB90C280025D8E4 /* ROGoogleTranslate.podspec */,
);
path = ROGoogleTranslate;
sourceTree = "<group>";
Expand Down Expand Up @@ -147,7 +147,7 @@
buildActionMask = 2147483647;
files = (
CBCA3FC71DB90B850025D8E4 /* LaunchScreen.storyboard in Resources */,
CBCA3FD01DB90C280025D8E4 /* ROGoogleTranslate.podspec in Resources */,
CB46171F1DBE32740066AD96 /* ROGoogleTranslate.podspec in Resources */,
CBCA3FC41DB90B850025D8E4 /* Assets.xcassets in Resources */,
CBCA3FC21DB90B850025D8E4 /* Main.storyboard in Resources */,
);
Expand Down
2 changes: 1 addition & 1 deletion ROGoogleTranslate/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.0.1</string>
<string>0.0.2</string>
<key>CFBundleVersion</key>
<string>16298</string>
<key>LSRequiresIPhoneOS</key>
Expand Down
9 changes: 8 additions & 1 deletion ROGoogleTranslate/ROGoogleTranslate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ public struct ROGoogleTranslateParams {
open class ROGoogleTranslate {

/// Store here the Google Translate API Key
var apiKey = ""
public var apiKey = ""

///
/// Initial constructor
///
public init() {

}

///
/// Translate a phrase from one language into another
Expand Down

0 comments on commit 8fd6b85

Please sign in to comment.