Skip to content

Commit

Permalink
Objc header Added
Browse files Browse the repository at this point in the history
  • Loading branch information
sa-utsav committed Mar 7, 2019
1 parent 53e7c17 commit 7a30ea6
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 4 deletions.
41 changes: 41 additions & 0 deletions newproj/newproj.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
2DBD84972231266700A5B3A2 /* ProfileController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DBD84962231266700A5B3A2 /* ProfileController.swift */; };
2DBD849A2231313B00A5B3A2 /* Defaults.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DBD84992231313B00A5B3A2 /* Defaults.swift */; };
2DBD849C2231314300A5B3A2 /* AppDefault.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DBD849B2231314300A5B3A2 /* AppDefault.swift */; };
2DBD84A722313B4000A5B3A2 /* MyClass.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DBD84A622313B4000A5B3A2 /* MyClass.m */; };
6AF8D0121FBF631C00C18FD1 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AF8D0111FBF631C00C18FD1 /* AppDelegate.swift */; };
6AF8D0141FBF631C00C18FD1 /* HomeTabController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AF8D0131FBF631C00C18FD1 /* HomeTabController.swift */; };
6AF8D0171FBF631D00C18FD1 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6AF8D0151FBF631D00C18FD1 /* Main.storyboard */; };
Expand All @@ -32,6 +33,9 @@
2DBD84962231266700A5B3A2 /* ProfileController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProfileController.swift; sourceTree = "<group>"; };
2DBD84992231313B00A5B3A2 /* Defaults.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Defaults.swift; sourceTree = "<group>"; };
2DBD849B2231314300A5B3A2 /* AppDefault.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDefault.swift; sourceTree = "<group>"; };
2DBD84A022313AEA00A5B3A2 /* newproj-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "newproj-Bridging-Header.h"; sourceTree = "<group>"; };
2DBD84A522313B4000A5B3A2 /* MyClass.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyClass.h; sourceTree = "<group>"; };
2DBD84A622313B4000A5B3A2 /* MyClass.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MyClass.m; sourceTree = "<group>"; };
6AF8D00E1FBF631C00C18FD1 /* newproj.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = newproj.app; sourceTree = BUILT_PRODUCTS_DIR; };
6AF8D0111FBF631C00C18FD1 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
6AF8D0131FBF631C00C18FD1 /* HomeTabController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeTabController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -61,6 +65,7 @@
2D38385E2200450500886A76 /* src */ = {
isa = PBXGroup;
children = (
2DBD84A422313B2800A5B3A2 /* objc */,
2DBD84982231312700A5B3A2 /* Defaults */,
2DBD848F22311A6800A5B3A2 /* Extentions */,
2D3838612200453B00886A76 /* Storyboards */,
Expand All @@ -81,6 +86,7 @@
2D3838602200451500886A76 /* config */ = {
isa = PBXGroup;
children = (
2DBD84A022313AEA00A5B3A2 /* newproj-Bridging-Header.h */,
6AF8D0411FBF771A00C18FD1 /* Info.plist */,
6AF8D0371FBF73BB00C18FD1 /* Development.xcconfig */,
6AF8D0391FBF73D100C18FD1 /* Production.xcconfig */,
Expand Down Expand Up @@ -163,6 +169,15 @@
path = Tabs;
sourceTree = "<group>";
};
2DBD84A422313B2800A5B3A2 /* objc */ = {
isa = PBXGroup;
children = (
2DBD84A522313B4000A5B3A2 /* MyClass.h */,
2DBD84A622313B4000A5B3A2 /* MyClass.m */,
);
path = objc;
sourceTree = "<group>";
};
6AF8D0051FBF631C00C18FD1 = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -291,6 +306,7 @@
6AF8D04A1FC0329300C18FD1 /* Environment.swift in Sources */,
6AF8D0121FBF631C00C18FD1 /* AppDelegate.swift in Sources */,
2DBD84972231266700A5B3A2 /* ProfileController.swift in Sources */,
2DBD84A722313B4000A5B3A2 /* MyClass.m in Sources */,
2DBD84952231264500A5B3A2 /* DashboardContoller.swift in Sources */,
2DBD849A2231313B00A5B3A2 /* Defaults.swift in Sources */,
2DBD849122311A7600A5B3A2 /* UIStoryboard+UIViewController.swift in Sources */,
Expand Down Expand Up @@ -386,6 +402,7 @@
baseConfigurationReference = 6AF8D0371FBF73BB00C18FD1 /* Development.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = "${icon_name}";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = newproj/config/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -394,6 +411,8 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "${bundle_id}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "newproj/config/newproj-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down Expand Up @@ -460,6 +479,7 @@
baseConfigurationReference = 6AF8D0371FBF73BB00C18FD1 /* Development.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = "${icon_name}";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = newproj/config/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -468,6 +488,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "${bundle_id}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "newproj/config/newproj-Bridging-Header.h";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down Expand Up @@ -538,6 +559,7 @@
baseConfigurationReference = 6AF8D0391FBF73D100C18FD1 /* Production.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = "${icon_name}";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = newproj/config/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -546,6 +568,8 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "${bundle_id}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "newproj/config/newproj-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down Expand Up @@ -610,6 +634,7 @@
baseConfigurationReference = 6AF8D0391FBF73D100C18FD1 /* Production.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = "${icon_name}";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = newproj/config/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -618,6 +643,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "${bundle_id}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "newproj/config/newproj-Bridging-Header.h";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down Expand Up @@ -688,6 +714,7 @@
baseConfigurationReference = 6AF8D03A1FBF73DC00C18FD1 /* UAT.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = "${icon_name}";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = newproj/config/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -696,6 +723,8 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "${bundle_id}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "newproj/config/newproj-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down Expand Up @@ -760,6 +789,7 @@
baseConfigurationReference = 6AF8D03A1FBF73DC00C18FD1 /* UAT.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = "${icon_name}";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = newproj/config/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -768,6 +798,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "${bundle_id}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "newproj/config/newproj-Bridging-Header.h";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down Expand Up @@ -838,6 +869,7 @@
baseConfigurationReference = 6AF8D03B1FBF73EB00C18FD1 /* QA.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = "${icon_name}";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = newproj/config/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -846,6 +878,8 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "${bundle_id}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "newproj/config/newproj-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down Expand Up @@ -910,6 +944,7 @@
baseConfigurationReference = 6AF8D03B1FBF73EB00C18FD1 /* QA.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = "${icon_name}";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = newproj/config/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -918,6 +953,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "${bundle_id}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "newproj/config/newproj-Bridging-Header.h";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down Expand Up @@ -988,6 +1024,7 @@
baseConfigurationReference = 6AF8D03F1FBF740E00C18FD1 /* Beta.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = "${icon_name}";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = newproj/config/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -996,6 +1033,8 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "${bundle_id}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "newproj/config/newproj-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down Expand Up @@ -1060,6 +1099,7 @@
baseConfigurationReference = 6AF8D03F1FBF740E00C18FD1 /* Beta.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = "${icon_name}";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = newproj/config/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -1068,6 +1108,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "${bundle_id}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "newproj/config/newproj-Bridging-Header.h";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down
Binary file not shown.
5 changes: 5 additions & 0 deletions newproj/newproj/config/newproj-Bridging-Header.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//

#import "MyClass.h"
1 change: 1 addition & 0 deletions newproj/newproj/src/Modules/AppRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class AppRouter {
func startApp() {
// Print Environment
Environment.printEnv()
MyClass.init().test()
let isLogin = !user.value.isEmpty
if isLogin {
openHome()
Expand Down
14 changes: 14 additions & 0 deletions newproj/newproj/src/objc/MyClass.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// EventCenter.h
// Itsycal
//
// Created by Sanjay Madan on 2/12/15.
// Copyright (c) 2015 mowglii.com. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MyClass : NSObject
- (void)test;
@end

17 changes: 17 additions & 0 deletions newproj/newproj/src/objc/MyClass.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// EventCenter.m
// Itsycal
//
// Created by Sanjay Madan on 2/12/15.
// Copyright (c) 2015 mowglii.com. All rights reserved.
//

#import "MyClass.h"

@implementation MyClass

- (void)test {
NSLog(@"New test NSLog function from Objective C");
}

@end
10 changes: 6 additions & 4 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@ mv "$OLDNAME" "$NEWNAME"
mv "${OLDNAME}.xcodeproj" "${NEWNAME}.xcodeproj"

# Rename the shared scheme
mv "${NEWNAME}.xcodeproj/xcshareddata/xcschemes/${OLDNAME}.xcscheme" "${NEWNAME}.xcodeproj/xcshareddata/xcschemes/${NEWNAME}.xcscheme"
# Not needed for Now
#mv "${NEWNAME}.xcodeproj/xcshareddata/xcschemes/${OLDNAME}.xcscheme" "${NEWNAME}.xcodeproj/xcshareddata/xcschemes/${NEWNAME}.xcscheme"

# Rename the shared scheme for swift
mv "${NEWNAME}.xcodeproj/xcuserdata/iosdev.xcuserdatad/xcschemes/${OLDNAME}.xcscheme" "${NEWNAME}.xcodeproj/xcuserdata/iosdev.xcuserdatad/xcschemes/${NEWNAME}.xcscheme"
# Not needed for Now
#mv "${NEWNAME}.xcodeproj/xcuserdata/iosdev.xcuserdatad/xcschemes/${OLDNAME}.xcscheme" "${NEWNAME}.xcodeproj/xcuserdata/iosdev.xcuserdatad/xcschemes/${NEWNAME}.xcscheme"

# Rename the 'OLDNAME-Bridging-Header' file for swift
#mv "${NEWNAME}/${OLDNAME}-Bridging-Header.h" "${NEWNAME}/${NEWNAME}-Bridging-Header.h"
mv "${NEWNAME}/config/${OLDNAME}-Bridging-Header.h" "${NEWNAME}/config/${NEWNAME}-Bridging-Header.h"

# Rename the 'OLDNAME.xcdatamodeld' file for coreData
#mv "${NEWNAME}/${OLDNAME}.xcdatamodeld" "${NEWNAME}/${NEWNAME}.xcdatamodeld"
Expand All @@ -74,5 +76,5 @@ mv "${NEWNAME}.xcodeproj/xcuserdata/iosdev.xcuserdatad/xcschemes/${OLDNAME}.xcsc
find . -type f -print0 | xargs -0 sed -i '' "s/${OLDNAME}/${NEWNAME}/g"
echo "Operation completed."

echo "Opening directory..."
echo "Opening project directory..."
open .

0 comments on commit 7a30ea6

Please sign in to comment.