Skip to content

Commit

Permalink
Added example project
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricki Bin Yamin committed Sep 1, 2020
1 parent c7685fd commit 7f1a77d
Show file tree
Hide file tree
Showing 10 changed files with 474 additions and 0 deletions.
142 changes: 142 additions & 0 deletions RBPhotosGallery.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

/* Begin PBXBuildFile section */
0905EF4C24F33FA100CDFCEB /* RBPhotosGalleryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0905EF4B24F33FA100CDFCEB /* RBPhotosGalleryViewController.swift */; };
0967A87B24FE882E00660111 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0967A87A24FE882E00660111 /* AppDelegate.swift */; };
0967A87D24FE882E00660111 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0967A87C24FE882E00660111 /* SceneDelegate.swift */; };
0967A87F24FE882E00660111 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0967A87E24FE882E00660111 /* ViewController.swift */; };
0967A88224FE882E00660111 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0967A88024FE882E00660111 /* Main.storyboard */; };
0967A88424FE882F00660111 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0967A88324FE882F00660111 /* Assets.xcassets */; };
0967A88724FE882F00660111 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0967A88524FE882F00660111 /* LaunchScreen.storyboard */; };
09C34F8624F29EEB0082E6C1 /* RBPhotosGallery.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 09C34F7C24F29EEB0082E6C1 /* RBPhotosGallery.framework */; };
09C34F8B24F29EEB0082E6C1 /* RBPhotosGalleryTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09C34F8A24F29EEB0082E6C1 /* RBPhotosGalleryTests.swift */; };
09C34F8D24F29EEB0082E6C1 /* RBPhotosGallery.h in Headers */ = {isa = PBXBuildFile; fileRef = 09C34F7F24F29EEB0082E6C1 /* RBPhotosGallery.h */; settings = {ATTRIBUTES = (Public, ); }; };
Expand All @@ -25,6 +31,14 @@

/* Begin PBXFileReference section */
0905EF4B24F33FA100CDFCEB /* RBPhotosGalleryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RBPhotosGalleryViewController.swift; sourceTree = "<group>"; };
0967A87824FE882E00660111 /* RBPhotosGalleryExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RBPhotosGalleryExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
0967A87A24FE882E00660111 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
0967A87C24FE882E00660111 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
0967A87E24FE882E00660111 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
0967A88124FE882E00660111 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
0967A88324FE882F00660111 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
0967A88624FE882F00660111 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
0967A88824FE882F00660111 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
09C34F7C24F29EEB0082E6C1 /* RBPhotosGallery.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RBPhotosGallery.framework; sourceTree = BUILT_PRODUCTS_DIR; };
09C34F7F24F29EEB0082E6C1 /* RBPhotosGallery.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RBPhotosGallery.h; sourceTree = "<group>"; };
09C34F8024F29EEB0082E6C1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand All @@ -34,6 +48,13 @@
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
0967A87524FE882E00660111 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
09C34F7924F29EEB0082E6C1 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -59,11 +80,26 @@
name = Frameworks;
sourceTree = "<group>";
};
0967A87924FE882E00660111 /* RBPhotosGalleryExample */ = {
isa = PBXGroup;
children = (
0967A87A24FE882E00660111 /* AppDelegate.swift */,
0967A87C24FE882E00660111 /* SceneDelegate.swift */,
0967A87E24FE882E00660111 /* ViewController.swift */,
0967A88024FE882E00660111 /* Main.storyboard */,
0967A88324FE882F00660111 /* Assets.xcassets */,
0967A88524FE882F00660111 /* LaunchScreen.storyboard */,
0967A88824FE882F00660111 /* Info.plist */,
);
path = RBPhotosGalleryExample;
sourceTree = "<group>";
};
09C34F7224F29EEB0082E6C1 = {
isa = PBXGroup;
children = (
09C34F7E24F29EEB0082E6C1 /* RBPhotosGallery */,
09C34F8924F29EEB0082E6C1 /* RBPhotosGalleryTests */,
0967A87924FE882E00660111 /* RBPhotosGalleryExample */,
09C34F7D24F29EEB0082E6C1 /* Products */,
090E48CA24F2C7BA00233D42 /* Frameworks */,
);
Expand All @@ -74,6 +110,7 @@
children = (
09C34F7C24F29EEB0082E6C1 /* RBPhotosGallery.framework */,
09C34F8524F29EEB0082E6C1 /* RBPhotosGalleryTests.xctest */,
0967A87824FE882E00660111 /* RBPhotosGalleryExample.app */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -111,6 +148,23 @@
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
0967A87724FE882E00660111 /* RBPhotosGalleryExample */ = {
isa = PBXNativeTarget;
buildConfigurationList = 0967A88B24FE882F00660111 /* Build configuration list for PBXNativeTarget "RBPhotosGalleryExample" */;
buildPhases = (
0967A87424FE882E00660111 /* Sources */,
0967A87524FE882E00660111 /* Frameworks */,
0967A87624FE882E00660111 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = RBPhotosGalleryExample;
productName = RBPhotosGalleryExample;
productReference = 0967A87824FE882E00660111 /* RBPhotosGalleryExample.app */;
productType = "com.apple.product-type.application";
};
09C34F7B24F29EEB0082E6C1 /* RBPhotosGallery */ = {
isa = PBXNativeTarget;
buildConfigurationList = 09C34F9024F29EEB0082E6C1 /* Build configuration list for PBXNativeTarget "RBPhotosGallery" */;
Expand Down Expand Up @@ -157,6 +211,9 @@
LastUpgradeCheck = 1130;
ORGANIZATIONNAME = "Ricki Bin Yamin";
TargetAttributes = {
0967A87724FE882E00660111 = {
CreatedOnToolsVersion = 11.3.1;
};
09C34F7B24F29EEB0082E6C1 = {
CreatedOnToolsVersion = 11.3.1;
LastSwiftMigration = 1130;
Expand All @@ -181,11 +238,22 @@
targets = (
09C34F7B24F29EEB0082E6C1 /* RBPhotosGallery */,
09C34F8424F29EEB0082E6C1 /* RBPhotosGalleryTests */,
0967A87724FE882E00660111 /* RBPhotosGalleryExample */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
0967A87624FE882E00660111 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
0967A88724FE882F00660111 /* LaunchScreen.storyboard in Resources */,
0967A88424FE882F00660111 /* Assets.xcassets in Resources */,
0967A88224FE882E00660111 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
09C34F7A24F29EEB0082E6C1 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -203,6 +271,16 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
0967A87424FE882E00660111 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
0967A87F24FE882E00660111 /* ViewController.swift in Sources */,
0967A87B24FE882E00660111 /* AppDelegate.swift in Sources */,
0967A87D24FE882E00660111 /* SceneDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
09C34F7824F29EEB0082E6C1 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -229,7 +307,62 @@
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
0967A88024FE882E00660111 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
0967A88124FE882E00660111 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
0967A88524FE882F00660111 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
0967A88624FE882F00660111 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
0967A88924FE882F00660111 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 6NMANHT3A2;
INFOPLIST_FILE = RBPhotosGalleryExample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = id.erbe.core.RBPhotosGalleryExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
0967A88A24FE882F00660111 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 6NMANHT3A2;
INFOPLIST_FILE = RBPhotosGalleryExample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = id.erbe.core.RBPhotosGalleryExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
09C34F8E24F29EEB0082E6C1 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
Expand Down Expand Up @@ -450,6 +583,15 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
0967A88B24FE882F00660111 /* Build configuration list for PBXNativeTarget "RBPhotosGalleryExample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
0967A88924FE882F00660111 /* Debug */,
0967A88A24FE882F00660111 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
09C34F7624F29EEB0082E6C1 /* Build configuration list for PBXProject "RBPhotosGallery" */ = {
isa = XCConfigurationList;
buildConfigurations = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>RBPhotosGalleryExample.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
</dict>
</dict>
</dict>
</plist>
37 changes: 37 additions & 0 deletions RBPhotosGalleryExample/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//
// AppDelegate.swift
// RBPhotosGalleryExample
//
// Created by Ricki Bin Yamin on 01/09/20.
// Copyright © 2020 Ricki Bin Yamin. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {



func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}

// MARK: UISceneSession Lifecycle

func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}

func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}


}

Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
6 changes: 6 additions & 0 deletions RBPhotosGalleryExample/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading

0 comments on commit 7f1a77d

Please sign in to comment.