From 33a4c8c994d20163e3ba65bdee35cc4e55c960cf Mon Sep 17 00:00:00 2001 From: Tanvi Jagtap Date: Wed, 13 Dec 2023 11:16:29 +0000 Subject: [PATCH] Internal configuration cleanup PiperOrigin-RevId: 590529857 --- .../tests/Hosts/ios-host/AppDelegate.github.h | 25 +++++++++++ .../tests/Hosts/ios-host/AppDelegate.github.m | 27 ++++++++++++ .../tests/Hosts/ios-host/Info.github.plist | 41 +++++++++++++++++++ .../tests/Hosts/ios-host/main.github.m | 26 ++++++++++++ 4 files changed, 119 insertions(+) create mode 100644 src/objective-c/tests/Hosts/ios-host/AppDelegate.github.h create mode 100644 src/objective-c/tests/Hosts/ios-host/AppDelegate.github.m create mode 100644 src/objective-c/tests/Hosts/ios-host/Info.github.plist create mode 100644 src/objective-c/tests/Hosts/ios-host/main.github.m diff --git a/src/objective-c/tests/Hosts/ios-host/AppDelegate.github.h b/src/objective-c/tests/Hosts/ios-host/AppDelegate.github.h new file mode 100644 index 00000000000..daf5a5eb6d1 --- /dev/null +++ b/src/objective-c/tests/Hosts/ios-host/AppDelegate.github.h @@ -0,0 +1,25 @@ +/* + * + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#import + +@interface AppDelegate : UIResponder + +@property(strong, nonatomic) UIWindow* window; + +@end \ No newline at end of file diff --git a/src/objective-c/tests/Hosts/ios-host/AppDelegate.github.m b/src/objective-c/tests/Hosts/ios-host/AppDelegate.github.m new file mode 100644 index 00000000000..2d7c5122c1e --- /dev/null +++ b/src/objective-c/tests/Hosts/ios-host/AppDelegate.github.m @@ -0,0 +1,27 @@ +/* + * + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#import "AppDelegate.h" + +@interface AppDelegate () + +@end + +@implementation AppDelegate + +@end \ No newline at end of file diff --git a/src/objective-c/tests/Hosts/ios-host/Info.github.plist b/src/objective-c/tests/Hosts/ios-host/Info.github.plist new file mode 100644 index 00000000000..42c9f612977 --- /dev/null +++ b/src/objective-c/tests/Hosts/ios-host/Info.github.plist @@ -0,0 +1,41 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + \ No newline at end of file diff --git a/src/objective-c/tests/Hosts/ios-host/main.github.m b/src/objective-c/tests/Hosts/ios-host/main.github.m new file mode 100644 index 00000000000..f1a3c9bab10 --- /dev/null +++ b/src/objective-c/tests/Hosts/ios-host/main.github.m @@ -0,0 +1,26 @@ +/* + * + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#import +#import "AppDelegate.h" + +int main(int argc, char* argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} \ No newline at end of file