Skip to content

Commit

Permalink
Fixed Example
Browse files Browse the repository at this point in the history
  • Loading branch information
brennoumobi committed Jun 10, 2020
1 parent 53446b0 commit 7100364
Show file tree
Hide file tree
Showing 12 changed files with 349 additions and 51 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OS X
Open # OS X
.DS_Store

# Xcode
Expand Down Expand Up @@ -29,4 +29,6 @@ Demo/Pods
# Swift Package Manager
.build
Packages
Package.pins
Package.pins

Pods
25 changes: 25 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"object": {
"pins": [
{
"package": "Reachability",
"repositoryURL": "https://github.com/ashleymills/Reachability.swift",
"state": {
"branch": null,
"revision": "98e968e7b6c1318fb61df23e347bc319761e8acb",
"version": "5.0.0"
}
},
{
"package": "RxSwift",
"repositoryURL": "https://github.com/ReactiveX/RxSwift",
"state": {
"branch": null,
"revision": "002d325b0bdee94e7882e1114af5ff4fe1e96afa",
"version": "5.1.1"
}
}
]
},
"version": 1
}
11 changes: 11 additions & 0 deletions RxReachability-Example/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'RxReachability_Example' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for RxReachability
pod "RxReachability", :git => "https://github.com/RxSwiftCommunity/RxReachability.git", :branch => "develop"

end
43 changes: 43 additions & 0 deletions RxReachability-Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
PODS:
- ReachabilitySwift (5.0.0)
- RxCocoa (5.1.1):
- RxRelay (~> 5)
- RxSwift (~> 5)
- RxReachability (1.2.0):
- ReachabilitySwift (< 6.0, >= 5.0)
- RxCocoa (< 6.0, >= 5.0)
- RxSwift (< 6.0, >= 5.0)
- RxRelay (5.1.1):
- RxSwift (~> 5)
- RxSwift (5.1.1)

DEPENDENCIES:
- RxReachability (from `https://github.com/RxSwiftCommunity/RxReachability.git`, branch `develop`)

SPEC REPOS:
trunk:
- ReachabilitySwift
- RxCocoa
- RxRelay
- RxSwift

EXTERNAL SOURCES:
RxReachability:
:branch: develop
:git: https://github.com/RxSwiftCommunity/RxReachability.git

CHECKOUT OPTIONS:
RxReachability:
:commit: 53446b00335ec8959cfdb6b50a306ea08d78f545
:git: https://github.com/RxSwiftCommunity/RxReachability.git

SPEC CHECKSUMS:
ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
RxCocoa: 32065309a38d29b5b0db858819b5bf9ef038b601
RxReachability: d83ca6e6fa73abed38e2c5b120a8499521979e10
RxRelay: d77f7d771495f43c556cbc43eebd1bb54d01e8e9
RxSwift: 81470a2074fa8780320ea5fe4102807cb7118178

PODFILE CHECKSUM: b8c970ead33d2592e11cf8c1df0730a36f9915e3

COCOAPODS: 1.9.1
14 changes: 5 additions & 9 deletions RxReachability-Example/RxReachability/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
Expand All @@ -15,11 +11,11 @@
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="RxReachability_Example" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Hello RxReachability" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NaF-T6-G53">
<rect key="frame" x="109.5" y="333" width="156" height="21"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Hello RxReachability_Example" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NaF-T6-G53">
<rect key="frame" x="187" y="290" width="227" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 52;
objectVersion = 51;
objects = {

/* Begin PBXBuildFile section */
Expand All @@ -12,25 +12,30 @@
0CC2E75124914D3200430B43 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0CC2E74F24914D3200430B43 /* Main.storyboard */; };
0CC2E75324914D3300430B43 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0CC2E75224914D3300430B43 /* Assets.xcassets */; };
0CC2E75624914D3300430B43 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0CC2E75424914D3300430B43 /* LaunchScreen.storyboard */; };
0CC2E76424915DCB00430B43 /* RxReachability in Frameworks */ = {isa = PBXBuildFile; productRef = 0CC2E76324915DCB00430B43 /* RxReachability */; };
5E9EC013AF7EA4DFC2FC9510 /* Pods_RxReachability_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4773F0C6ADE5E9074850364 /* Pods_RxReachability_Example.framework */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
0CC2E74624914D3200430B43 /* RxReachability.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RxReachability.app; sourceTree = BUILT_PRODUCTS_DIR; };
0CC2E74624914D3200430B43 /* RxReachability_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RxReachability_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
0CC2E74924914D3200430B43 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
0CC2E74D24914D3200430B43 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
0CC2E75024914D3200430B43 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
0CC2E75224914D3300430B43 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
0CC2E75524914D3300430B43 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
0CC2E75724914D3300430B43 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
19FA38861B1E60886994A732 /* Pods-RxReachability.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RxReachability.debug.xcconfig"; path = "Target Support Files/Pods-RxReachability/Pods-RxReachability.debug.xcconfig"; sourceTree = "<group>"; };
56A76D436C25C1A013CB9DE1 /* Pods-RxReachability_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RxReachability_Example.release.xcconfig"; path = "Target Support Files/Pods-RxReachability_Example/Pods-RxReachability_Example.release.xcconfig"; sourceTree = "<group>"; };
6385654E3CB5167442094F27 /* Pods-RxReachability.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RxReachability.release.xcconfig"; path = "Target Support Files/Pods-RxReachability/Pods-RxReachability.release.xcconfig"; sourceTree = "<group>"; };
968ADC5647A82A17737C9C15 /* Pods-RxReachability_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RxReachability_Example.debug.xcconfig"; path = "Target Support Files/Pods-RxReachability_Example/Pods-RxReachability_Example.debug.xcconfig"; sourceTree = "<group>"; };
E4773F0C6ADE5E9074850364 /* Pods_RxReachability_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RxReachability_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
0CC2E74324914D3200430B43 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
0CC2E76424915DCB00430B43 /* RxReachability in Frameworks */,
5E9EC013AF7EA4DFC2FC9510 /* Pods_RxReachability_Example.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -42,13 +47,15 @@
children = (
0CC2E74824914D3200430B43 /* RxReachability */,
0CC2E74724914D3200430B43 /* Products */,
37712D017C7E0D25DECEE9CE /* Pods */,
42B4D60E7FC148A238600C99 /* Frameworks */,
);
sourceTree = "<group>";
};
0CC2E74724914D3200430B43 /* Products */ = {
isa = PBXGroup;
children = (
0CC2E74624914D3200430B43 /* RxReachability.app */,
0CC2E74624914D3200430B43 /* RxReachability_Example.app */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -66,27 +73,45 @@
path = RxReachability;
sourceTree = "<group>";
};
37712D017C7E0D25DECEE9CE /* Pods */ = {
isa = PBXGroup;
children = (
19FA38861B1E60886994A732 /* Pods-RxReachability.debug.xcconfig */,
6385654E3CB5167442094F27 /* Pods-RxReachability.release.xcconfig */,
968ADC5647A82A17737C9C15 /* Pods-RxReachability_Example.debug.xcconfig */,
56A76D436C25C1A013CB9DE1 /* Pods-RxReachability_Example.release.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
};
42B4D60E7FC148A238600C99 /* Frameworks */ = {
isa = PBXGroup;
children = (
E4773F0C6ADE5E9074850364 /* Pods_RxReachability_Example.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
0CC2E74524914D3200430B43 /* RxReachability */ = {
0CC2E74524914D3200430B43 /* RxReachability_Example */ = {
isa = PBXNativeTarget;
buildConfigurationList = 0CC2E75A24914D3300430B43 /* Build configuration list for PBXNativeTarget "RxReachability" */;
buildConfigurationList = 0CC2E75A24914D3300430B43 /* Build configuration list for PBXNativeTarget "RxReachability_Example" */;
buildPhases = (
71E8F6F43C0DD6F319B83B48 /* [CP] Check Pods Manifest.lock */,
0CC2E74224914D3200430B43 /* Sources */,
0CC2E74324914D3200430B43 /* Frameworks */,
0CC2E74424914D3200430B43 /* Resources */,
25DB544DA4F1421DC1C4433D /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
dependencies = (
);
name = RxReachability;
packageProductDependencies = (
0CC2E76324915DCB00430B43 /* RxReachability */,
);
name = RxReachability_Example;
productName = RxReachability;
productReference = 0CC2E74624914D3200430B43 /* RxReachability.app */;
productReference = 0CC2E74624914D3200430B43 /* RxReachability_Example.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
Expand All @@ -104,7 +129,7 @@
};
};
};
buildConfigurationList = 0CC2E74124914D3200430B43 /* Build configuration list for PBXProject "RxReachability" */;
buildConfigurationList = 0CC2E74124914D3200430B43 /* Build configuration list for PBXProject "RxReachability_Example" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
Expand All @@ -113,14 +138,11 @@
Base,
);
mainGroup = 0CC2E73D24914D3200430B43;
packageReferences = (
0CC2E76224915DCB00430B43 /* XCRemoteSwiftPackageReference "RxReachability" */,
);
productRefGroup = 0CC2E74724914D3200430B43 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
0CC2E74524914D3200430B43 /* RxReachability */,
0CC2E74524914D3200430B43 /* RxReachability_Example */,
);
};
/* End PBXProject section */
Expand All @@ -138,6 +160,48 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
25DB544DA4F1421DC1C4433D /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-RxReachability_Example/Pods-RxReachability_Example-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-RxReachability_Example/Pods-RxReachability_Example-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RxReachability_Example/Pods-RxReachability_Example-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
71E8F6F43C0DD6F319B83B48 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-RxReachability_Example-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/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# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
0CC2E74224914D3200430B43 /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand Down Expand Up @@ -286,6 +350,7 @@
};
0CC2E75B24914D3300430B43 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 968ADC5647A82A17737C9C15 /* Pods-RxReachability_Example.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
Expand All @@ -296,14 +361,15 @@
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.demo.RxReachability;
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = RxReachability_Example;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
};
name = Debug;
};
0CC2E75C24914D3300430B43 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 56A76D436C25C1A013CB9DE1 /* Pods-RxReachability_Example.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
Expand All @@ -314,7 +380,7 @@
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.demo.RxReachability;
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = RxReachability_Example;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
};
Expand All @@ -323,7 +389,7 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
0CC2E74124914D3200430B43 /* Build configuration list for PBXProject "RxReachability" */ = {
0CC2E74124914D3200430B43 /* Build configuration list for PBXProject "RxReachability_Example" */ = {
isa = XCConfigurationList;
buildConfigurations = (
0CC2E75824914D3300430B43 /* Debug */,
Expand All @@ -332,7 +398,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
0CC2E75A24914D3300430B43 /* Build configuration list for PBXNativeTarget "RxReachability" */ = {
0CC2E75A24914D3300430B43 /* Build configuration list for PBXNativeTarget "RxReachability_Example" */ = {
isa = XCConfigurationList;
buildConfigurations = (
0CC2E75B24914D3300430B43 /* Debug */,
Expand All @@ -342,25 +408,6 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
0CC2E76224915DCB00430B43 /* XCRemoteSwiftPackageReference "RxReachability" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/RxSwiftCommunity/RxReachability";
requirement = {
branch = develop;
kind = branch;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
0CC2E76324915DCB00430B43 /* RxReachability */ = {
isa = XCSwiftPackageProductDependency;
package = 0CC2E76224915DCB00430B43 /* XCRemoteSwiftPackageReference "RxReachability" */;
productName = RxReachability;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 0CC2E73E24914D3200430B43 /* Project object */;
}
Loading

0 comments on commit 7100364

Please sign in to comment.