Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chemerisuk committed Sep 6, 2017
0 parents commit 4d58e51
Show file tree
Hide file tree
Showing 6 changed files with 160 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Maksim Chemerisuk

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.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# cordova-support-google-services
> Cordova plugin to add google service support
As part of enabling Google APIs or Firebase services in your Android application you may have to add the [google-services plugin](https://developers.google.com/android/guides/google-services-plugin) to your `build.gradle` file.

## Installation

cordova plugin add cordova-support-google-services --save

Read details about the gradle plugin at https://developers.google.com/android/guides/google-services-plugin.
17 changes: 17 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:+'
classpath 'com.google.gms:google-services:3.1.0'
}
}

// apply plugin: 'com.google.gms.google-services'
// class must be used instead of id(string) to be able to apply plugin from non-root gradle file
ext.postBuildExtras = {
apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
}
32 changes: 32 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "cordova-support-google-services",
"version": "1.0.0",
"description": "Cordova plugin to add google service support",
"scripts": {
"version": "replace -s 'version=\"(.+)(?=\">)' 'version=\"'$npm_package_version plugin.xml && git add plugin.xml",
"postversion": "git push && git push --tags"
},
"cordova": {
"id": "cordova-support-google-services",
"platforms": [
"android"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/chemerisuk/cordova-support-google-services.git"
},
"author": "Maksim Chemerisuk <[email protected]> (https://github.com/chemerisuk)",
"license": "MIT",
"bugs": {
"url": "https://github.com/chemerisuk/cordova-support-google-services/issues"
},
"homepage": "https://github.com/chemerisuk/cordova-support-google-services#readme",
"keywords": [
"cordova",
"google services",
"firebase",
"ecosystem:cordova",
"cordova-android"
]
}
21 changes: 21 additions & 0 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-support-google-services"
version="1.0.0">

<name>cordova-support-google-services</name>
<description>Cordova plugin to add google service support</description>
<license>MIT</license>
<keywords>cordova</keywords>
<repo>https://github.com/chemerisuk/cordova-support-google-services</repo>
<issue>https://github.com/chemerisuk/cordova-support-google-services/issues</issue>

<engines>
<engine name="cordova" version=">=3.5.0"/>
</engines>

<platform name="android">
<framework src="build.gradle" custom="true" type="gradleReference" />
</platform>

</plugin>

0 comments on commit 4d58e51

Please sign in to comment.