diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 500efae..1a3b8a6 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -8,17 +8,8 @@ - - - - - - - - - - - + + diff --git a/.md b/.md new file mode 100644 index 0000000..e69de29 diff --git a/笔记文件/2.笔记/Adjust匹配id上报到灵动平台.md b/笔记文件/2.笔记/Adjust匹配id上报到灵动平台.md new file mode 100644 index 0000000..f8b8e06 --- /dev/null +++ b/笔记文件/2.笔记/Adjust匹配id上报到灵动平台.md @@ -0,0 +1,15 @@ +#灵感 + +链接参考:https://inspire.sg.larksuite.com/docx/KXRrdhlm8ogy1Dx9VbCuUofMsVf + +![[Pasted image 20250409092353.png]] + +![[Pasted image 20250409092416.png]] + +归因接口: + +![[Pasted image 20250409093901.png]] + +参考海拓调用逻辑: + +![[img_v3_02l6_57d7c201-a992-4209-85e9-bd1a3b5ee5hu.jpg]] \ No newline at end of file diff --git a/笔记文件/2.笔记/osascript.md b/笔记文件/2.笔记/osascript.md new file mode 100644 index 0000000..4a4d0b1 --- /dev/null +++ b/笔记文件/2.笔记/osascript.md @@ -0,0 +1,104 @@ +#ios + +osascript 是 macOS 系统自带的 AppleScript 和 JavaScript 解释器,主要用于通过命令行执行自动化脚本操作。以下是关键信息: + +### 核心功能 + +1. 执行 AppleScript + +``` shell + # 弹出对话框 + osascript -e 'display dialog "Hello macOS"' +``` + +2. 运行 JavaScript (JXA) + +``` shell + # 使用 JavaScript 操作 Finder + osascript -l JavaScript -e 'Application("Finder").emptyTrash()' +``` + +3. 脚本文件执行 + +``` shell + osascript /path/to/script.scpt +``` + +### 典型应用场景 + + +``` +| 场景 | 示例命令 | + +|---------------------|--------------------------------------------------------------------------| + +| 系统控制 | osascript -e 'tell app "System Events" to shut down' | + +| 应用自动化 | osascript -e 'tell app "Safari" to open location "https://example.com"'| + +| 文件操作 | osascript -e 'tell app "Finder" to delete file "test.txt"' | + +| 数据交换 | osascript -e 'text returned of (display dialog "输入内容" default answer "")' | + +``` + +### 高级用法 + +1. 传递参数 + +``` shell + osascript -e 'on run argv' -e 'return item 1 of argv' -e 'end run' -- "参数" +``` + +2. 获取返回值 + +``` shell + result=$(osascript -e 'return "输出内容"') + echo $result # 输出:输出内容 +``` + +3. 与 Shell 脚本集成 + +``` shell + # 获取当前WiFi名称 + wifi_name=$(osascript -e 'do shell script "networksetup -getairportnetwork en0 | cut -c 24-"') +``` + +### 安全限制 + +- macOS 10.15+ 需要授权: + +系统偏好设置 → 安全性与隐私 → 自动化 + +!自动化权限设置 + +- 敏感操作需终端授权: + +``` shell + # 首次执行会弹出权限请求 + osascript -e 'tell app "Terminal" to do script "echo hello"' +``` + +### 性能对比 + +| 脚本类型 | 启动时间 | 内存占用 | 适用场景 | + +|--------------|----------|----------|-----------------------| + +| AppleScript | 快 | 低 | 系统级自动化 | + +| JavaScript | 中 | 中 | 复杂数据处理 | + +| Python | 慢 | 高 | 跨平台/复杂逻辑 | + +--- + +### 替代方案 + +- Swift 脚本:性能更好,但学习成本高 + +- Python/Ruby:跨平台但需要环境配置 + +- Automator:图形化操作但灵活性低 + +建议:需要深度 macOS 集成时优先使用 osascript,跨平台需求则选择其他语言。 \ No newline at end of file diff --git a/笔记文件/2.笔记/安卓依赖库 导入 后处理.md b/笔记文件/2.笔记/安卓依赖库 导入 后处理.md index 5d98f95..98a34b8 100644 --- a/笔记文件/2.笔记/安卓依赖库 导入 后处理.md +++ b/笔记文件/2.笔记/安卓依赖库 导入 后处理.md @@ -12,6 +12,9 @@ ![[img_v3_02ka_c0698d1e-30c7-48e4-bab6-58bc51fe4dhu.jpg]] 最终实现,逻辑参考: +其中优化点思考: +1、DidReloadScripts这个标签,是不是过重,因为是每次编译代码,都会跑一遍这里 +2、如果没有打开unity,是否就不会触发这里,另外是否不使用DidReloadScripts,而是在切换编译平台的时候, ## ExternalDependencyManagerResolver ``` cs diff --git a/笔记文件/2.笔记/广告试玩 临时记录.md b/笔记文件/2.笔记/广告试玩 临时记录.md new file mode 100644 index 0000000..8aebf67 --- /dev/null +++ b/笔记文件/2.笔记/广告试玩 临时记录.md @@ -0,0 +1,5 @@ +#灵感 + +市场需求链接: + +https://inspire.sg.larksuite.com/docx/DFyMdV52YogL7nxFl4ylCiJiguh?from=message&source_type=message&disposable_login_token=eyJ1c2VyX2lkIjoiNzQwOTg2MDY2MjA2ODgyMjAyMSIsImRldmljZV9sb2dpbl9pZCI6Ijc0NzE4OTQyMDUxODMzMjgyODciLCJ0aW1lc3RhbXAiOjE3NDQxOTA5NjMsInVuaXQiOiJsYXJrc2dhd3MiLCJwd2RfbGVzc19sb2dpbl9hdXRoIjoiMSIsInZlcnNpb24iOiJ2MyIsInRlbmFudF9icmFuZCI6ImxhcmsiLCJwa2dfYnJhbmQiOiLpo57kuaYifQ==.a46edcaf4fc29d5832108389a129210e0a83a740f4cb01ef8dd2231b7a710d5b \ No newline at end of file diff --git a/笔记文件/日记/2025_04_09_星期三.md b/笔记文件/日记/2025_04_09_星期三.md index 84da798..3a97a7d 100644 --- a/笔记文件/日记/2025_04_09_星期三.md +++ b/笔记文件/日记/2025_04_09_星期三.md @@ -22,6 +22,12 @@ # 今日任务 - [ ] 记得再看一下,瑞幸咖啡券115的,具体在哪里 +- [x] 记得同步一下 周五讲课的事情 +- [ ] AdjustID匹配uid上报到Adjust埋点平台 +- [ ] 把灵动平台修改后的版本,同步到slot项目 +- [x] 完善一下 OKR --- - +[[Adjust匹配id上报到灵动平台]] +[[osascript]] +[[广告试玩 临时记录]] # Journal diff --git a/笔记文件/附件/Pasted image 20250409092353.png b/笔记文件/附件/Pasted image 20250409092353.png new file mode 100644 index 0000000..0bd1992 Binary files /dev/null and b/笔记文件/附件/Pasted image 20250409092353.png differ diff --git a/笔记文件/附件/Pasted image 20250409092416.png b/笔记文件/附件/Pasted image 20250409092416.png new file mode 100644 index 0000000..a495884 Binary files /dev/null and b/笔记文件/附件/Pasted image 20250409092416.png differ diff --git a/笔记文件/附件/Pasted image 20250409093901.png b/笔记文件/附件/Pasted image 20250409093901.png new file mode 100644 index 0000000..5079fba Binary files /dev/null and b/笔记文件/附件/Pasted image 20250409093901.png differ diff --git a/笔记文件/附件/img_v3_02l6_57d7c201-a992-4209-85e9-bd1a3b5ee5hu.jpg b/笔记文件/附件/img_v3_02l6_57d7c201-a992-4209-85e9-bd1a3b5ee5hu.jpg new file mode 100644 index 0000000..ed418c4 Binary files /dev/null and b/笔记文件/附件/img_v3_02l6_57d7c201-a992-4209-85e9-bd1a3b5ee5hu.jpg differ