-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
255 additions
and
821 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-9.54 KB
(92%)
Tapper.xcworkspace/xcuserdata/yazantarifi.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// AppDelegate.swift | ||
// Tapper | ||
// | ||
// Created by Yazan Tarifi on 27/01/2024. | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
|
||
public final class AppDelegate: NSObject, NSApplicationDelegate { | ||
|
||
static private(set) var instance: AppDelegate! | ||
lazy var statusBarItem = NSStatusBar.system.statusItem(withLength: CGFloat(30)) | ||
let menu = TapperMenu() | ||
|
||
public func applicationDidFinishLaunching(_ notification: Notification) { | ||
AppDelegate.instance = self | ||
|
||
if let image = NSImage(named: NSImage.Name("WhiteLogo")) { | ||
// Set the desired width and height | ||
let logoWidth: CGFloat = 24 | ||
let logoHeight: CGFloat = 24 | ||
|
||
// Resize the image | ||
let resizedImage = NSImage(size: NSSize(width: logoWidth, height: logoHeight), flipped: false, drawingHandler: { rect in | ||
image.draw(in: NSRect(origin: .zero, size: NSSize(width: logoWidth, height: logoHeight))) | ||
return true | ||
}) | ||
|
||
// Assign the resized image to the button | ||
statusBarItem.button?.image = resizedImage | ||
statusBarItem.button?.imagePosition = .imageLeading | ||
statusBarItem.menu = menu.onCreateMenu() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "New Project Small.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "New Project Small 1.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "New Project Small 2.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{\rtf1\ansi\ansicpg1252\cocoartf2757 | ||
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;} | ||
{\colortbl;\red255\green255\blue255;} | ||
{\*\expandedcolortbl;;} | ||
\margl1440\margr1440\vieww9000\viewh8400\viewkind0 | ||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\qc\partightenfactor0 | ||
|
||
\f0\fs24 \cf0 Tapper\ | ||
Android Development Application Tool\ | ||
\ | ||
Tapper Built to help Android Developers do ADB Functions Faster also Automated via Desktop Application\ | ||
Tapper also an Open Source Application Built and Maintained by @Yazan98 on Github\ | ||
Project Website: https://tapperapp.com\ | ||
Project Docs: https://docs.tapperapp.com\ | ||
Project Source Code: https:.//github.com/tapper-app} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
// | ||
// TapperMenu.swift | ||
// Tapper | ||
// | ||
// Created by Yazan Tarifi on 27/01/2024. | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
|
||
public final class TapperMenu: NSObject { | ||
|
||
@Environment(\.openURL) var openUrl | ||
private let menu = NSMenu() | ||
|
||
public func onCreateMenu() -> NSMenu { | ||
let topView = TapperTopMenuView() | ||
let topViewToInsert = NSHostingController(rootView: topView) | ||
topViewToInsert.view.frame.size = CGSize(width: 300, height: 130) | ||
|
||
let topBarMenuItem = NSMenuItem() | ||
topBarMenuItem.view = topViewToInsert.view | ||
menu.addItem(topBarMenuItem) | ||
menu.addItem(NSMenuItem.separator()) | ||
|
||
let developerOptionsMenuItem = NSMenuItem( | ||
title: "Developer Options", | ||
action: #selector(onClickOnDeveloperOptionsItem), | ||
keyEquivalent: "" | ||
) | ||
|
||
let generalOptionsMenuItem = NSMenuItem( | ||
title: "General Options", | ||
action: #selector(onClickOnGeneralOptionsItem), | ||
keyEquivalent: "" | ||
) | ||
|
||
let testingOptionsMenuItem = NSMenuItem( | ||
title: "Testing Options", | ||
action: #selector(onClickOnTestingOptionsItem), | ||
keyEquivalent: "" | ||
) | ||
|
||
let monkeyTestingOptionsMenuItem = NSMenuItem( | ||
title: "Monkey Testing", | ||
action: #selector(onClickOnMonkeyTestingOptionsItem), | ||
keyEquivalent: "" | ||
) | ||
|
||
let aboutApplication = NSMenuItem( | ||
title: "About Tapper", | ||
action: #selector(onAboutClickListener), | ||
keyEquivalent: "" | ||
) | ||
|
||
developerOptionsMenuItem.target = self | ||
menu.addItem(developerOptionsMenuItem) | ||
|
||
generalOptionsMenuItem.target = self | ||
menu.addItem(generalOptionsMenuItem) | ||
|
||
testingOptionsMenuItem.target = self | ||
menu.addItem(testingOptionsMenuItem) | ||
|
||
monkeyTestingOptionsMenuItem.target = self | ||
menu.addItem(monkeyTestingOptionsMenuItem) | ||
|
||
aboutApplication.target = self | ||
menu.addItem(aboutApplication) | ||
|
||
return menu | ||
} | ||
|
||
@objc func onClickOnDeveloperOptionsItem(sender: NSMenuItem) { | ||
guard let url = URL(string: "tapper://\(TapperConsts.DEVELOPER_DEEPLINK_KEY)") else { | ||
return | ||
} | ||
|
||
openUrl(url) | ||
} | ||
|
||
@objc func onClickOnGeneralOptionsItem(sender: NSMenuItem) { | ||
guard let url = URL(string: "tapper://\(TapperConsts.GENERAL_DEEPLINK_KEY)") else { | ||
return | ||
} | ||
|
||
openUrl(url) | ||
} | ||
|
||
@objc func onClickOnTestingOptionsItem(sender: NSMenuItem) { | ||
guard let url = URL(string: "tapper://\(TapperConsts.TESTING_DEEPLINK_KEY)") else { | ||
return | ||
} | ||
|
||
openUrl(url) | ||
} | ||
|
||
@objc func onClickOnMonkeyTestingOptionsItem(sender: NSMenuItem) { | ||
guard let url = URL(string: "tapper://\(TapperConsts.MONKEY_TESTING_DEEPLINK_KEY)") else { | ||
return | ||
} | ||
|
||
openUrl(url) | ||
} | ||
|
||
@objc func onAboutClickListener(sender: NSMenuItem) { | ||
NSApp.orderFrontStandardAboutPanel(sender) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// TapperTopMenuView.swift | ||
// Tapper | ||
// | ||
// Created by Yazan Tarifi on 27/01/2024. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct TapperTopMenuView: View { | ||
var body: some View { | ||
VStack(alignment: .leading) { | ||
VStack(alignment: .leading) { | ||
Image("Logo") | ||
.resizable() | ||
.frame(width: 50, height: 50) | ||
.foregroundColor(TapperUtils.shared.getTextPrimaryColor()) | ||
|
||
|
||
Text("Tapper") | ||
.foregroundColor(TapperUtils.shared.getApplicationPrimaryColor()) | ||
.font(.title3) | ||
|
||
Text("Android Development Tool") | ||
.foregroundColor(TapperUtils.shared.getRedColor()) | ||
.font(.caption) | ||
|
||
Text("Automate, Change Developer Options In Your Android Applications Without Writing Code or Commands") | ||
.foregroundColor(TapperUtils.shared.getApplicationSecondColor()) | ||
.font(.caption2) | ||
.lineLimit(2) | ||
} | ||
.padding() | ||
} | ||
} | ||
} | ||
|
||
#Preview { | ||
TapperTopMenuView() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
builds/Version 0.0.8/Tapper.app/Contents/Frameworks/Realm.framework/Realm
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
builds/Version 0.0.8/Tapper.app/Contents/Frameworks/Realm.framework/Resources
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-21.3 MB
builds/Version 0.0.8/Tapper.app/Contents/Frameworks/Realm.framework/Versions/A/Realm
Binary file not shown.
48 changes: 0 additions & 48 deletions
48
...sion 0.0.8/Tapper.app/Contents/Frameworks/Realm.framework/Versions/A/Resources/Info.plist
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.