diff --git a/Natives/AppDelegate.m b/Natives/AppDelegate.m
index 31ef04ed..3998613f 100644
--- a/Natives/AppDelegate.m
+++ b/Natives/AppDelegate.m
@@ -1,10 +1,18 @@
#import "AppDelegate.h"
+#import "LauncherViewController.h"
+
@implementation AppDelegate
-- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
-{
- // Override point for customization after application launch.
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+ UIWindow *window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
+ self.window = window;
+ [self.window setWindowLevel:3000.0];
+ [self.window makeKeyAndVisible];
+ self.window.backgroundColor = [UIColor blackColor];
+ LauncherViewController *vc = [[LauncherViewController alloc] init];
+ self.window.rootViewController = vc;
+
return YES;
}
diff --git a/Natives/Info.plist b/Natives/Info.plist
index ebfd80e9..66bd9259 100644
--- a/Natives/Info.plist
+++ b/Natives/Info.plist
@@ -1,63 +1,52 @@
-
- CFBundleDevelopmentRegion
- en
- CFBundleDisplayName
- PojavLauncher
- CFBundleExecutable
- PojavLauncher
- CFBundleIdentifier
- net.kdt.pojavlauncher
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- PojavLauncher
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleVersion
- 2
- LSRequiresIPhoneOS
-
- UIMainStoryboardFile
- Main
- UIDeviceFamily
-
- 1
- 2
-
- UIRequiredDeviceCapabilities
-
- arm64
- metal
-
- UISupportedInterfaceOrientations
-
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UISupportedInterfaceOrientations~ipad
-
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UIFileSharingEnabled
-
- LSSupportsOpeningDocumentsInPlace
-
-
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleDisplayName
+ PojavLauncher
+ CFBundleExecutable
+ PojavLauncher
+ CFBundleIdentifier
+ net.kdt.pojavlauncher
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ PojavLauncher
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 2
+ LSRequiresIPhoneOS
+
+ LSSupportsOpeningDocumentsInPlace
+
+ UIDeviceFamily
+
+ 1
+ 2
+
+ UIFileSharingEnabled
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+ metal
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+
diff --git a/Natives/LauncherViewController.h b/Natives/LauncherViewController.h
new file mode 100644
index 00000000..8c136d6e
--- /dev/null
+++ b/Natives/LauncherViewController.h
@@ -0,0 +1,5 @@
+#import
+
+@interface LauncherViewController : UIViewController
+
+@end
diff --git a/Natives/LauncherViewController.m b/Natives/LauncherViewController.m
new file mode 100644
index 00000000..6d3b4383
--- /dev/null
+++ b/Natives/LauncherViewController.m
@@ -0,0 +1,40 @@
+#import "LauncherViewController.h"
+#include "utils.h"
+
+@interface LauncherViewController () {
+}
+
+// - (void)method
+
+@end
+
+@implementation LauncherViewController
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+
+ CGRect screenBounds = [[UIScreen mainScreen] bounds];
+ CGFloat screenScale = [[UIScreen mainScreen] scale];
+
+ UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0.0, 0.0, screenBounds.size.width, screenBounds.size.height)];
+ scrollView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
+
+ UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
+ button.autoresizingMask = UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleWidth;
+ [button setTitle:@"Launch" forState:UIControlStateNormal];
+ button.frame = CGRectMake(10.0, 10.0, 100.0, 50.0);
+ [button addTarget:self action:@selector(showSinaWeiboUserClickHandler:) forControlEvents:UIControlEventTouchUpInside];
+ [scrollView addSubview:button];
+
+ self.view = scrollView;
+
+ // [self.view addSubview:scrollView];
+}
+
+- (void)viewWillAppear:(BOOL)animated
+{
+ [super viewWillAppear:animated];
+}
+
+@end
diff --git a/Natives/aminimake.sh b/Natives/aminimake.sh
index e35597af..210fe3df 100644
--- a/Natives/aminimake.sh
+++ b/Natives/aminimake.sh
@@ -5,7 +5,7 @@ set -e
CFLAGS="-fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof"
-clang -Wl,-rpath,/Applications/PojavLauncher.app/Frameworks -fobjc-arc -x objective-c -Fresources/Frameworks -framework UIKit -framework MetalANGLE -Iresources/Frameworks/MetalANGLE.framework/Headers -dynamiclib -isysroot /var/mobile/theos/sdks/iPhoneOS11.2.sdk $CFLAGS -o libpojavexec.dylib log.m AppDelegate.m UILauncher.m SurfaceViewController.m egl_bridge_ios.m egl_bridge.c input_bridge_v3.c utils.c -DGLES_TESTZ -DUSE_EGLZ
+clang -Wl,-rpath,/Applications/PojavLauncher.app/Frameworks -fobjc-arc -x objective-c -Fresources/Frameworks -framework UIKit -framework MetalANGLE -Iresources/Frameworks/MetalANGLE.framework/Headers -dynamiclib -isysroot /var/mobile/theos/sdks/iPhoneOS11.2.sdk $CFLAGS -o libpojavexec.dylib log.m AppDelegate.m UILauncher.m LauncherViewController.m SurfaceViewController.m egl_bridge_ios.m egl_bridge.c input_bridge_v3.c utils.c -DGLES_TESTZ -DUSE_EGLZ
ldid -S../entitlements.xml libpojavexec.dylib
diff --git a/Natives/en.lproj/Main.storyboard b/Natives/en.lproj/Surface.storyboard
similarity index 100%
rename from Natives/en.lproj/Main.storyboard
rename to Natives/en.lproj/Surface.storyboard
diff --git a/Natives/libpojavexec.dylib b/Natives/libpojavexec.dylib
index c1ced690..8b6effc9 100755
Binary files a/Natives/libpojavexec.dylib and b/Natives/libpojavexec.dylib differ