iOS and Android cocos2d-x samples for the Firebase C++ SDK.
This sample is no longer actively maintained and is left here for reference only.
The setup_firebase_sample.py
script requires Python to be installed locally.
Visit the Python download page
for more information.
If you are running this script on a Mac, you will need CocoaPods installed. See the CocoaPods Getting Started guide for more details.
git clone https://github.com/firebase/cocos2dx-cpp-sample.git
python setup_firebase_sample.py FIREBASE_FEATURE
sample_project/cocos2d
directory and run the cocos2d-x setup script:
python setup.py
sample_project/proj.ios_mac/HelloCpp.xcworkspace
with Xcode. From
the Project Navigator, right click on HelloCpp
and select “Add files to
HelloCpp.” Find the GoogleService-Info.plist
file that you downloaded in
step 1 and click the Add button.sample_project/proj.android-studio/app
directory.sample_project
directory, compile the Cocos project
for Android:
cocos compile -p android --ap ## --android-studio --app-abi armeabi-v7a
Where ##
is the Android platform used for building the apk,
for example, android-22
.
sample_project/proj.android-studio
project in Android Studio and
run the app. To install the APK on a device, navigate to
sample_project/bin/debug/android
.https://firebase.google.com/support/
Copyright 2017 Google Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.