Search
March 2023 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Categories
Hours & Info
Bookmark
Author Archives: Tang
Cocoapod tips
check installed cocoapod plugin gem list –local | grep cocoapods create pod pod spec create POD_NAME https://eladnava.com/publish-a-universal-binary-ios-framework-in-swift-using-cocoapods/ Register an account by running the following, entering your full name and e-mail address: pod trunk register you@email.com 'Full Name' create pod demo … Continue reading
Hide implementation of swift framework when distributing
In this article, I will demonstrate how to create a Swift NiceLogger framework and push to Cocoapods without sharing source code. You can download the final project from NiceLogger 1. Create a Swift framework 1.1 Create a new framework project … Continue reading
iOS Grand Central Dispatch
GCD provides three main types of queues:  1.1 Main queue Main queue runs on the main thread and is a serial queue. This is a common choice to update the UI after completing work in a task on a … Continue reading
RxSwift Scheduler
Where we call subscribeOn() in a chain doesn't really matter when to call it. Where we call observeOn() does matter. subscribeOn() tells the whole chain which thread to start processing on. We should only call it once per chain. If … Continue reading
How to generate **.cer** and **.p12** file for iOS push notification
Every time I created a new app with push notifications, iOS, I'm sure I've got everything right and then something refused to work. So this time I'm writing it down so I can't possibly get it wrong again.  Generally, … Continue reading
VI常用命令
vi / vim 删除以及其它命令 Commands Comments dd 删除一行 d$ 删除以当前字符开始的一行字符 D 与d$同义 d 回车删除2行 ndd 删除以当前行开始的n行 dw 删除以当前字符开始的一个字 ndw 删除以当前字符开始的n个字 d) 删除到下一句的开始 d} 删除到下一段的开始 ndw 或 ndW 删除光标处开始及其后的 n-1 个字符。 d0 删至行首。 d$ 删至行尾。 ndd 删除当前行及其后 n-1 行。 x 或X … Continue reading
Vim notes
Column selection: Ctrl + V Replace Replace all A with B %s/A/B Find in current line find < f< Remove content between 2 characters For example, remove the content between [ and ]: [routeName] {ExampleRoutes[routeName].name}</Text Vim commands(go to the beginning … Continue reading
React Study
Learn Redux with Wesbos https://courses.wesbos.com/account/access/59994e0dac34560554c277a8 const router = ( ) render(router, document.getElementById(‘root’));
How to use Android Battery Historian
1. Install Docker: https://docs.docker.com/docker-for-mac/install/#install-and-run-docker-for-mac 2. Run Docker docker run -p 5001:9999 gcr.io/android-battery-historian/stable:3.0 –port 9999 3. Fetch battery report To obtain a bug report from your development device running Android 7.0 and higher: $ adb bugreport bugreport.zip For devices 6.0 and … Continue reading
Posted in Android, Mac, Mobile
2 Comments