Skip to content

Commit

Permalink
Merge branch 'raw' into agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Cabanero authored and Carlos Cabanero committed Feb 17, 2021
2 parents 93f176a + 4492343 commit 426a9a8
Show file tree
Hide file tree
Showing 65 changed files with 1,481 additions and 1,160 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
path: |
xcfs/.build
Frameworks/ios_system/xcfs/.build
key: ${{ runner.os }}-${{ hashFiles('get_frameworks.sh', 'xcfs/Package.swift', 'Frameworks/ios_system/xcfs/Package.swift') }}
key: ${{ runner.os }}-${{ hashFiles('get_frameworks.sh', 'xcfs/Package.swift') }}

- name: get frameworks
if: steps.cache.outputs.cache-hit != 'true'
Expand Down
5 changes: 1 addition & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[submodule "Frameworks/UICKeyChainStore"]
path = Frameworks/UICKeyChainStore
url = https://github.com/kishikawakatsumi/UICKeyChainStore.git
[submodule "Frameworks/ios_system"]
path = Frameworks/ios_system
url = https://github.com/holzschu/ios_system.git
url = https://github.com/yury/ios_system.git
[submodule "Frameworks/MBProgressHUD"]
path = Frameworks/MBProgressHUD
url = https://github.com/blinksh/MBProgressHUD.git
41 changes: 41 additions & 0 deletions AppKitBridge/AppBridge.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
//////////////////////////////////////////////////////////////////////////////////
//
// B L I N K
//
// Copyright (C) 2016-2019 Blink Mobile Shell Project
//
// This file is part of Blink.
//
// Blink is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Blink is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Blink. If not, see <http://www.gnu.org/licenses/>.
//
// In addition, Blink is also subject to certain additional terms under
// GNU GPL version 3 section 7.
//
// You should have received a copy of these additional terms immediately
// following the terms and conditions of the GNU General Public License
// which accompanied the Blink Source Code. If not, see
// <http://www.github.com/blinksh/blink>.
//
////////////////////////////////////////////////////////////////////////////////


#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface AppBridge : NSObject
+ (void)tuneStyle;
@end

NS_ASSUME_NONNULL_END
48 changes: 48 additions & 0 deletions AppKitBridge/AppBridge.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
//////////////////////////////////////////////////////////////////////////////////
//
// B L I N K
//
// Copyright (C) 2016-2019 Blink Mobile Shell Project
//
// This file is part of Blink.
//
// Blink is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Blink is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Blink. If not, see <http://www.gnu.org/licenses/>.
//
// In addition, Blink is also subject to certain additional terms under
// GNU GPL version 3 section 7.
//
// You should have received a copy of these additional terms immediately
// following the terms and conditions of the GNU General Public License
// which accompanied the Blink Source Code. If not, see
// <http://www.github.com/blinksh/blink>.
//
////////////////////////////////////////////////////////////////////////////////


#import "AppBridge.h"
#import <AppKit/AppKit.h>

@implementation AppBridge

+ (void)tuneStyle {
NSApplication *app = [NSApplication sharedApplication];
// NSWindow * win = app.mainWindow;
for (NSWindow *win in app.windows) {
[[win standardWindowButton:NSWindowCloseButton] setHidden:YES];
[[win standardWindowButton:NSWindowMiniaturizeButton] setHidden:YES];
[[win standardWindowButton:NSWindowZoomButton] setHidden:YES];
}
}

@end
26 changes: 26 additions & 0 deletions AppKitBridge/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2021 Carlos Cabañero Projects SL. All rights reserved.</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
Loading

0 comments on commit 426a9a8

Please sign in to comment.