Skip to content

Commit

Permalink
misc changes - ignore
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
Salakar committed May 22, 2019
1 parent b068be4 commit 8be3e97
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class UniversalFirebaseMLNaturalLanguageSmartReplyModule extends UniversalFireba
@Override
public void onTearDown() {
super.onTearDown();
UniversalFirebaseMLNaturalLanguageSmartReplyConversation.destroyAllConversations();
// UniversalFirebaseMLNaturalLanguageSmartReplyConversation.destroyAllConversations();
}

/**
Expand Down
7 changes: 2 additions & 5 deletions tests/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -120,26 +120,23 @@ android {
}

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
implementation 'com.facebook.react:react-native:+'
//noinspection GradleDynamicVersion
implementation 'org.webkit:android-jsc:+'
/* ----------------------------
* REACT NATIVE FIREBASE
* ---------------------------- */

firebasePackages.each { firebasePackage ->
implementation project(path: ":@react-native-firebase_${firebasePackage}")
}

/* ------------------------
* TESTING SDKS/LIBRARIES
* ------------------------ */
implementation(project(path: ':jet')) {
transitive = false
}

androidTestImplementation('com.wix:detox:+') { transitive = true }
androidTestImplementation 'junit:junit:4.12'
}
Expand Down
34 changes: 17 additions & 17 deletions tests/e2e/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,24 @@ const { requirePackageTests } = require('./helpers');
const { detox: config } = require('../package.json');

const PACKAGES = [
// 'app',
// 'iid',
// 'perf',
// 'fiam',
// 'functions',
// 'analytics',
// 'config',
// 'crashlytics',
// 'utils',
'app',
'iid',
'perf',
'fiam',
'functions',
'analytics',
'config',
'crashlytics',
'utils',
// 'mlkit',
'ml-natural-language',
// 'invites',
// 'fiam',
// 'auth',
// // 'firestore',
// 'links',
// // 'messaging',
// 'storage',
// 'ml-natural-language',
'invites',
'fiam',
'auth',
// 'firestore',
'links',
// 'messaging',
'storage',
];

for (let i = 0; i < PACKAGES.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--timeout 260000
--reporter spec
--slow 2000
--retries 0
--retries 2
--bail
--exit
--require node_modules/jet/platform/node
2 changes: 1 addition & 1 deletion tests/index.android.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
require('./app.smartreply');
require('./app');
65 changes: 31 additions & 34 deletions tests/type-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,34 @@ import '@react-native-firebase/storage';
import '@react-native-firebase/perf';
import '@react-native-firebase/functions';

import { firebase } from '@react-native-firebase/analytics';

const foo = async () => {
const task = firebase
.app()
.storage('gs://foo')
.ref('foo')
.putFile('');

task.finally

task.on(firebase.storage.TaskEvent.STATE_CHANGED, taskSnapshot => {
if (taskSnapshot.state === firebase.storage.TaskState.) {
console.log('cancelling task!');
taskSnapshot.task.cancel();
}
});

task.catch(e => {
return 'bar';
});

task.then(snapshot => {
snapshot.metadata.bucket;
return 'foo';
});

firebase.storage.TaskState.CANCELLED;
firebase.storage.TaskEvent.STATE_CHANGED;
firebase.perf().newHttpMetric('', 'GET');
// firebase.functions.HttpsErrorCode.ABORTED;
};

foo();
//
// const foo = async () => {
// const task = firebase
// .app()
// .storage('gs://foo')
// .ref('foo')
// .putFile('');
//
// task.on(firebase.storage.TaskEvent.STATE_CHANGED, taskSnapshot => {
// if (taskSnapshot.state === firebase.storage.TaskState.) {
// console.log('cancelling task!');
// taskSnapshot.task.cancel();
// }
// });
//
// task.catch(e => {
// return 'bar';
// });
//
// task.then(snapshot => {
// snapshot.metadata.bucket;
// return 'foo';
// });
//
// firebase.storage.TaskState.CANCELLED;
// firebase.storage.TaskEvent.STATE_CHANGED;
// firebase.perf().newHttpMetric('', 'GET');
// // firebase.functions.HttpsErrorCode.ABORTED;
// };
//
// foo();
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1549,6 +1549,14 @@
xcode "^2.0.0"
xmldoc "^0.4.0"

"@react-native-firebase/mlkit@6.0.0-alpha.22":
version "6.0.0-alpha.22"
resolved "https://registry.yarnpkg.com/@react-native-firebase/mlkit/-/mlkit-6.0.0-alpha.22.tgz#20fb3dd29225b131a68b469b81aade12d55cf2cd"
integrity sha512-MRUFkWAMF5XQBwpBsYFz4nGJWkSU/PJ9i3FJkSt1+vGHjY2Q10ukEzTnveQSevjZGc8J0oUyFUVB1dsk/XHxqA==
dependencies:
"@react-native-firebase/app-types" "6.0.0-alpha.22"
"@react-native-firebase/common" "6.0.0-alpha.22"

"@react-native-firebase/private-tests-firebase-functions@^0.0.1":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@react-native-firebase/private-tests-firebase-functions/-/private-tests-firebase-functions-0.0.1.tgz#bbee243641e92a3d50925cb95e95dbcd28f7fc27"
Expand Down

0 comments on commit 8be3e97

Please sign in to comment.