Skip to content

Commit

Permalink
chore: bump
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Mar 21, 2022
1 parent 0182618 commit 3d4175c
Show file tree
Hide file tree
Showing 31 changed files with 76 additions and 58 deletions.
65 changes: 42 additions & 23 deletions apps/demo/src/plugin-demos/firebase-firestore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,14 @@ export function navigatingTo(args: EventData) {
}

export class DemoModel extends DemoSharedFirebaseFirestore {

constructor() {
super();
Promise.all(
[
this.invalid_field_path()
]
)
Promise.all([this.init(),this.invalid_field_path()]);
}

async init() {
firebase().firestore()
firebase()
.firestore()
.collection('users')
.add({
first: 'Ada',
Expand All @@ -35,7 +31,8 @@ export class DemoModel extends DemoSharedFirebaseFirestore {
});

const geo = new GeoPoint(10, -10);
firebase().firestore()
firebase()
.firestore()
.collection('geo')
.add({
thing: 'it',
Expand All @@ -48,29 +45,51 @@ export class DemoModel extends DemoSharedFirebaseFirestore {
console.error('Error adding geo document: ', error);
});


firebase().firestore().collection('items')
firebase()
.firestore()
.collection('items')
.get()
.then(items => {
console.log(items.docs[0].data())
})
.then((items) => {
console.log(items.docs[0].data());
});

const exampleDoc = firebase().firestore().collection('things').doc('exampleDoc');
const exampleDoc2 = firebase().firestore().collection('things').doc('exampleDoc2');

firebase()
.firestore()
.batch()
.set(exampleDoc, {
message: 'Hello doc',
})
.set(exampleDoc2, {
date: new Date(),
})
.commit()
.then(() => {})
.catch((error) => {
console.error(error);
});
}


async invalid_field_path() {
try {
await firebase().firestore()
.collection("products")
.doc("Oq4eU5p4Lj7Eh6dfjbBX")
await firebase()
.firestore()
.collection('products')
.doc('Oq4eU5p4Lj7Eh6dfjbBX')
.set({
name: "Product 1",
ts: Timestamp.fromDate(new Date())
name: 'Product 1',
ts: Timestamp.fromDate(new Date()),
});
await firebase().firestore()
.collection("products")
.doc("Oq4eU5p4Lj7Eh6dfjbBX")
await firebase()
.firestore()
.collection('products')
.doc('Oq4eU5p4Lj7Eh6dfjbBX')
.update({
name: "Product 2",
ts: Timestamp.fromDate(new Date())
name: 'Product 2',
ts: Timestamp.fromDate(new Date()),
});
} catch (error) {
console.log('error', error);
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-admob/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-admob",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - Admob",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-analytics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-analytics",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - Analytics",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-app-check-debug/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-app-check-debug",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - App Check",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-app-check/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-app-check",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - App Check",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-auth",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - Auth",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-auth/platforms/android/include.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dependencies {
def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.3.1" }
def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.4.2" }
implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
implementation 'com.google.firebase:firebase-auth'
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
def computeFirebaseBomVersion = { ->
project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.3.1" }
project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.4.2" }
implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
implementation 'com.google.firebase:firebase-auth'
}
2 changes: 1 addition & 1 deletion packages/firebase-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-core",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - Core",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-core/platforms/android/include.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ dependencies {
def computeKotlinVersion = { -> project.hasProperty("kotlinVersion") ? kotlinVersion : "1.4.32" }
implementation "org.jetbrains.kotlin:kotlin-stdlib:$computeKotlinVersion"

def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.3.1" }
def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.4.2" }
implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
}
2 changes: 1 addition & 1 deletion packages/firebase-crashlytics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-crashlytics",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - Crashlytics",
"main": "index",
"typings": "index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ android {

dependencies {
def computeFirebaseBomVersion = { ->
project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.3.1" }
project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.4.2" }
implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-database/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-database",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - Database",
"main": "index",
"typings": "index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ dependencies {
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation platform('com.google.firebase:firebase-bom:28.3.1')
implementation platform('com.google.firebase:firebase-bom:28.4.2')
implementation 'com.google.firebase:firebase-database'
}
2 changes: 1 addition & 1 deletion packages/firebase-dynamic-links/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-dynamic-links",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - Dynamic Links",
"main": "index",
"typings": "index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ android {

dependencies {
def computeFirebaseBomVersion = { ->
project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.3.1" }
project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.4.2" }
implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-firestore/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-firestore",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - Firestore",
"main": "index",
"typings": "index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

def computeFirebaseBomVersion = { ->
project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.3.1" }
project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.4.2" }
implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
implementation 'com.google.firebase:firebase-firestore'
}
2 changes: 1 addition & 1 deletion packages/firebase-functions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-functions",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - Functions",
"main": "index",
"typings": "index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
def computeFirebaseBomVersion = { ->
project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.3.1" }
project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.4.2" }
implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
implementation 'com.google.firebase:firebase-functions'
}
2 changes: 1 addition & 1 deletion packages/firebase-in-app-messaging/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-in-app-messaging",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - In App Messaging",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-installations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-installations",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - Installations",
"main": "index",
"typings": "index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ android {

dependencies {
def computeFirebaseBomVersion = { ->
project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.3.1" }
project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.4.2" }
implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-messaging/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-messaging",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - Messaging",
"main": "index",
"typings": "index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
}

dependencies {
def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.3.1" }
def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.4.2" }
implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-performance/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-performance",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - Performancee",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-remote-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-remote-config",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - Remote Config",
"main": "index",
"typings": "index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ android {

dependencies {
def computeFirebaseBomVersion = { ->
project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.3.1" }
project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "28.4.2" }
implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-storage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-storage",
"version": "1.1.6",
"version": "1.2.0",
"description": "NativeScript Firebase - Storage",
"main": "index",
"typings": "index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ dependencies {
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation platform('com.google.firebase:firebase-bom:28.3.1')
implementation platform('com.google.firebase:firebase-bom:28.4.2')
implementation 'com.google.firebase:firebase-storage'
}
11 changes: 5 additions & 6 deletions tools/assets/App_Resources/Android/app.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Add your native dependencies here:

// Uncomment to add recyclerview-v7 dependency
//dependencies {
// compile 'com.android.support:recyclerview-v7:+'
//}
dependencies {
constraints {
implementation 'androidx.work:work-runtime:2.7.0'
}
}

android {
compileSdkVersion 31
Expand Down

0 comments on commit 3d4175c

Please sign in to comment.