Last Christmas I bought my wife and myself a Synology NAS to store our pictures on. Given that I’d spent a lot of time over the last few years working on Git LFS, I always thought it would be pretty cool if you could use the NAS as an LFS server.
Like everything else these days, the thing can run apps. I looked around for what it would take to make an app for it and what I found seemed to be mostly a bunch of flaming hoops to jump through. I’m pretty lazy, so I dropped it.
The other day I was checking out Home Assistant and noticed it could be installed on the Synology via Docker. Wait … what? You can run Docker on it‽ Far out! It is Linux, so I guess that makes sense. Now it should be easy to set up an LFS server on it. We have a reference server that’ll do just fine for this.
To get running, first install the Docker app from Package Center. Start the app and head to the Registrytab. It’s hooked up to DockerHub by default. The search seems to love returning results for things you didn’t ask for, so it’s best to just search for rubyist. Searching for rubyist/git-lfs-server is far too specific, I guess, but that’s what you’re looking for. Click Download for download.
Once it’s downloaded, it’ll appear in the Image tab. Click Launch to launch.
This brings up the Docker app’s container wizard. It’s actually quite nice. Click the Advanced Settingsbutton. Set the following options in their respective tabs:
Advanced Settings: Enable auto-restart
Volume: Add a folder on the drive at a Mount Path of /var/git-lfs
Network: Select “Use the same network as Docker Host”
Environment: Configure any environment vars for the server
The full set of supported environment variables can be found in the lfs-test-server README, here are the ones you’ll need to set:
LFS_HOST: The host name of your NAS
LFS_ADMINUSER: The username of the admin user
LFS_ADMINPASS: The admin password
When setting LFS_HOST you’ll need to include the port that the LFS server is running on, which will be ":8080". For example, "foobar.localdomain:8080".
Once you’re done there, close the advanced settings and click the Next button. You’ll see a summary of the config. Click Apply.
Your LFS server is now running! Configure LFS by adding the following to the .lfsconfig file in the root of your repo:
Unity v5.6.5f1 이상에서 Build Settings에 옵션이 추가 됐는데 하단 소스 대응되는 옵션 스크린샷 추가 해놓음.
1. -(BOOL)prefersHomeIndicatorAutoHidden; // add this
-> Off 돼 있어야 함.
2. -(UIRectEdge)preferredScreenEdgesDeferringSystemGestures; // add this
-> 모두 On
[추가]
아래 소스를 적용해보니 Home Indicator가 Hide 되긴 하는데 아무 곳이나 터치(드래그 아님) 하면 Home Indicator가 활성화 되는 문제가 있어서 다른팀에 문의해보니 prefersHomeIndicatorAutoHidden을 YES로 하면 안된다고 한다.
prefersHomeIndicatorAutoHidden을 소스에서 없애라고 함.
없애고 테스트 해보니 원하는대로 동작(비활성화 상태에서 드래그하면 활성화 되면서 1회 드래그 무시)한다.
[설명]
Unity 5.6.4f1
XCode 9.1
XCode Project-Classes-UI 폴더에 가면 UnityViewControllerBaseiOS.h / UnityViewControllerBaseiOS.mm 파일이 있음.
XCode 최신 버전으로 업데이트 하고나서 빌드 하려니 GA 관련 Link 에러가 나서 찾아봤더니 아래 프레임워크가 필요하다고 한다.
리스트를 살펴보니 CoreData.framework가 빠져 있어서 수동 추가 후 정상 빌드 확인..
The Google Analytics SDK uses the CoreData and SystemConfiguration frameworks, so you will need to add the following to your application target's linked libraries: