•  


GitHub - poligonosapp/firebase-unity-sdk: The Firebase SDK for Unity
Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

poligonosapp/firebase-unity-sdk

 
 

Folders and files

Name Name
Last commit message
Last commit date

Latest commit

 

History

334 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase Unity


Getting Started

You can clone the repo with the following command:

git clone https://github.com/firebase/firebase-unity-sdk.git

Prerequisites

The prerequisites for firebase cpp are required. Please install the following packages outlined in README.md for firebase cpp .

The following prerequisites are required for all platforms. Be sure to add any directories to your PATH as needed.

  • CMake version 3.13.3, or newer.
  • Mono version 5 or newer.
  • Unity version 5 or newer.
  • Swig3 version 3.0.6 or newer (Not version 4 though).

Prerequisites for Windows

On windows, to work around path length issues with google unity resolver enable long path support in git:

git config --system core.longpaths true

Prerequisites for Mac

Home brew can be used to install required dependencies:

#
 https://github.com/protocolbuffers/protobuf/blob/master/kokoro/macos/prepare_build_macos_rc#L20

ruby -e 
"
$(
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install
)
"

source
 $HOME
/.rvm/scripts/rvm
brew install cmake protobuf python2 mono swig@3
sudo chown -R 
$(
whoami
)
 /usr/local

export
 PATH=
"
/usr/local/opt/swig@3/bin:
$PATH
"

Building

The build uses CMake to generate the necessary build files, and supports out of source builds.

The following CMake options are avaliable:

  • FIREBASE_INCLUDE_UNITY : Build for unity only (no mono support)
  • FIREBASE_INCLUDE_MONO : Build for mono only (no unity support)
  • FIREBASE_UNI_LIBRARY : Build all native modules as one dynamic lib
  • FIREBASE_CPP_SDK_DIR : Local path to firebase cpp
  • FIREBASE_UNITY_SDK_VERSION : Set version string of firebase unity package
  • UNITY_ROOT_DIR : Local path to Unity's installation directory (path should end with version number)
  • MONO_DIR : Local path to mono's xbuild executable directory
  • OPENSSL_ROOT_DIR : Open ssl root directory
  • PROTOBUF_SRC_ROOT_FOLDER : Protobuf root directory

Note:
   UNITY_ROOT_DIR is a recommended setting for building unity, else CMake will make an effort to auto find unity.

Note:
???On windows, MONO_DIR is a required setting.

Example build command for linux:

mkdir build 
&&
 cd
 build
cmake .. -DFIREBASE_INCLUDE_MONO=ON -DFIREBASE_CPP_SDK_DIR=../../firebase-cpp-sdk
make -j 8

Note:
???There are build helper scripts in the root folder that will build the most common variants and can be used as examples on how to build firebase unity.

Building for iOS

CMake needs an extra argument specifing the tool chain to use:

-DCMAKE_TOOLCHAIN_FILE=../cmake/unity_ios.cmake -G Xcode

Building for Android

Run script ./build_android.sh on linux machine.

Unity Package Command

CPack is used to generate platform zip files with the same folder structure of the Unity plugin. Once each platform zip file is built, run unity packaging tool to generate a .unitypackage file.

cd build
cpack .
cd ../unity_packer
python export_unity_package.py --config_file=exports.json --guids_file=guids.json --assets_dir=.. --assets_zip=../build/*.zip --output_dir=../build/

Releases

No releases published

Packages

No packages published

Languages

  • C# 61.8%
  • C++ 17.4%
  • SWIG 8.2%
  • Python 7.9%
  • CMake 3.4%
  • Shell 0.5%
  • Other 0.8%
- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본