nestjs-firebase-admin 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nvmrc +1 -0
- package/SECURITY.md +21 -0
- package/dist/modules/admin/admin.service.d.ts +3 -1
- package/dist/modules/admin/admin.service.js +10 -2
- package/dist/modules/admin/types/admin.type.d.ts +2 -2
- package/examples/android/java/.idea/.name +1 -0
- package/examples/android/java/.idea/compiler.xml +6 -0
- package/examples/android/java/.idea/google-java-format.xml +6 -0
- package/examples/android/java/.idea/gradle.xml +19 -0
- package/examples/android/java/.idea/misc.xml +10 -0
- package/examples/android/java/.idea/vcs.xml +6 -0
- package/examples/android/java/app/build.gradle +46 -0
- package/examples/android/java/app/proguard-rules.pro +21 -0
- package/examples/android/java/app/src/androidTest/java/com/example/nestjs_firebase_admin/ExampleInstrumentedTest.java +26 -0
- package/examples/android/java/app/src/main/AndroidManifest.xml +32 -0
- package/examples/android/java/app/src/main/java/com/example/nestjs_firebase_admin/FirstFragment.java +47 -0
- package/examples/android/java/app/src/main/java/com/example/nestjs_firebase_admin/MainActivity.java +102 -0
- package/examples/android/java/app/src/main/java/com/example/nestjs_firebase_admin/SecondFragment.java +47 -0
- package/examples/android/java/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
- package/examples/android/java/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +30 -0
- package/examples/android/java/app/src/main/res/layout/activity_main.xml +34 -0
- package/examples/android/java/app/src/main/res/layout/content_main.xml +19 -0
- package/examples/android/java/app/src/main/res/layout/fragment_first.xml +28 -0
- package/examples/android/java/app/src/main/res/layout/fragment_second.xml +27 -0
- package/examples/android/java/app/src/main/res/menu/menu_main.xml +10 -0
- package/examples/android/java/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- package/examples/android/java/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- package/examples/android/java/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- package/examples/android/java/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- package/examples/android/java/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- package/examples/android/java/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- package/examples/android/java/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- package/examples/android/java/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- package/examples/android/java/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- package/examples/android/java/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- package/examples/android/java/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- package/examples/android/java/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- package/examples/android/java/app/src/main/res/navigation/nav_graph.xml +28 -0
- package/examples/android/java/app/src/main/res/values/colors.xml +10 -0
- package/examples/android/java/app/src/main/res/values/dimens.xml +3 -0
- package/examples/android/java/app/src/main/res/values/strings.xml +12 -0
- package/examples/android/java/app/src/main/res/values/themes.xml +25 -0
- package/examples/android/java/app/src/main/res/values-land/dimens.xml +3 -0
- package/examples/android/java/app/src/main/res/values-night/themes.xml +16 -0
- package/examples/android/java/app/src/main/res/values-w1240dp/dimens.xml +3 -0
- package/examples/android/java/app/src/main/res/values-w600dp/dimens.xml +3 -0
- package/examples/android/java/app/src/main/res/xml/backup_rules.xml +13 -0
- package/examples/android/java/app/src/main/res/xml/data_extraction_rules.xml +19 -0
- package/examples/android/java/app/src/test/java/com/example/nestjs_firebase_admin/ExampleUnitTest.java +17 -0
- package/examples/android/java/build.gradle +9 -0
- package/examples/android/java/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/android/java/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/examples/android/java/gradle.properties +21 -0
- package/examples/android/java/gradlew +185 -0
- package/examples/android/java/gradlew.bat +89 -0
- package/examples/android/java/settings.gradle +16 -0
- package/package.json +16 -13
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
xmlns:aapt="http://schemas.android.com/aapt"
|
|
3
|
+
android:width="108dp"
|
|
4
|
+
android:height="108dp"
|
|
5
|
+
android:viewportWidth="108"
|
|
6
|
+
android:viewportHeight="108">
|
|
7
|
+
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
|
|
8
|
+
<aapt:attr name="android:fillColor">
|
|
9
|
+
<gradient
|
|
10
|
+
android:endX="85.84757"
|
|
11
|
+
android:endY="92.4963"
|
|
12
|
+
android:startX="42.9492"
|
|
13
|
+
android:startY="49.59793"
|
|
14
|
+
android:type="linear">
|
|
15
|
+
<item
|
|
16
|
+
android:color="#44000000"
|
|
17
|
+
android:offset="0.0" />
|
|
18
|
+
<item
|
|
19
|
+
android:color="#00000000"
|
|
20
|
+
android:offset="1.0" />
|
|
21
|
+
</gradient>
|
|
22
|
+
</aapt:attr>
|
|
23
|
+
</path>
|
|
24
|
+
<path
|
|
25
|
+
android:fillColor="#FFFFFF"
|
|
26
|
+
android:fillType="nonZero"
|
|
27
|
+
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
|
|
28
|
+
android:strokeWidth="1"
|
|
29
|
+
android:strokeColor="#00000000" />
|
|
30
|
+
</vector>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="match_parent"
|
|
7
|
+
tools:context=".MainActivity">
|
|
8
|
+
|
|
9
|
+
<com.google.android.material.appbar.AppBarLayout
|
|
10
|
+
android:layout_width="match_parent"
|
|
11
|
+
android:layout_height="wrap_content"
|
|
12
|
+
android:theme="@style/Theme.Nestjsfirebaseadmin.AppBarOverlay">
|
|
13
|
+
|
|
14
|
+
<androidx.appcompat.widget.Toolbar
|
|
15
|
+
android:id="@+id/toolbar"
|
|
16
|
+
android:layout_width="match_parent"
|
|
17
|
+
android:layout_height="?attr/actionBarSize"
|
|
18
|
+
android:background="?attr/colorPrimary"
|
|
19
|
+
app:popupTheme="@style/Theme.Nestjsfirebaseadmin.PopupOverlay" />
|
|
20
|
+
|
|
21
|
+
</com.google.android.material.appbar.AppBarLayout>
|
|
22
|
+
|
|
23
|
+
<include layout="@layout/content_main" />
|
|
24
|
+
|
|
25
|
+
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
26
|
+
android:id="@+id/fab"
|
|
27
|
+
android:layout_width="wrap_content"
|
|
28
|
+
android:layout_height="wrap_content"
|
|
29
|
+
android:layout_gravity="bottom|end"
|
|
30
|
+
android:layout_marginEnd="@dimen/fab_margin"
|
|
31
|
+
android:layout_marginBottom="16dp"
|
|
32
|
+
app:srcCompat="@android:drawable/ic_dialog_email" />
|
|
33
|
+
|
|
34
|
+
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
android:layout_width="match_parent"
|
|
5
|
+
android:layout_height="match_parent"
|
|
6
|
+
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
7
|
+
|
|
8
|
+
<fragment
|
|
9
|
+
android:id="@+id/nav_host_fragment_content_main"
|
|
10
|
+
android:name="androidx.navigation.fragment.NavHostFragment"
|
|
11
|
+
android:layout_width="0dp"
|
|
12
|
+
android:layout_height="0dp"
|
|
13
|
+
app:defaultNavHost="true"
|
|
14
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
15
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
16
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
17
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
18
|
+
app:navGraph="@navigation/nav_graph" />
|
|
19
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="match_parent"
|
|
7
|
+
tools:context=".FirstFragment">
|
|
8
|
+
|
|
9
|
+
<TextView
|
|
10
|
+
android:id="@+id/textview_first"
|
|
11
|
+
android:layout_width="wrap_content"
|
|
12
|
+
android:layout_height="wrap_content"
|
|
13
|
+
android:text="@string/hello_first_fragment"
|
|
14
|
+
app:layout_constraintBottom_toTopOf="@id/button_first"
|
|
15
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
16
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
17
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
18
|
+
|
|
19
|
+
<Button
|
|
20
|
+
android:id="@+id/button_first"
|
|
21
|
+
android:layout_width="wrap_content"
|
|
22
|
+
android:layout_height="wrap_content"
|
|
23
|
+
android:text="@string/next"
|
|
24
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
25
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
26
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
27
|
+
app:layout_constraintTop_toBottomOf="@id/textview_first" />
|
|
28
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="match_parent"
|
|
7
|
+
tools:context=".SecondFragment">
|
|
8
|
+
|
|
9
|
+
<TextView
|
|
10
|
+
android:id="@+id/textview_second"
|
|
11
|
+
android:layout_width="wrap_content"
|
|
12
|
+
android:layout_height="wrap_content"
|
|
13
|
+
app:layout_constraintBottom_toTopOf="@id/button_second"
|
|
14
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
15
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
16
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
17
|
+
|
|
18
|
+
<Button
|
|
19
|
+
android:id="@+id/button_second"
|
|
20
|
+
android:layout_width="wrap_content"
|
|
21
|
+
android:layout_height="wrap_content"
|
|
22
|
+
android:text="@string/previous"
|
|
23
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
24
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
25
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
26
|
+
app:layout_constraintTop_toBottomOf="@id/textview_second" />
|
|
27
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
3
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
4
|
+
tools:context="com.example.nestjs_firebase_admin.MainActivity">
|
|
5
|
+
<item
|
|
6
|
+
android:id="@+id/action_settings"
|
|
7
|
+
android:orderInCategory="100"
|
|
8
|
+
android:title="@string/action_settings"
|
|
9
|
+
app:showAsAction="never" />
|
|
10
|
+
</menu>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
|
+
<background android:drawable="@drawable/ic_launcher_background" />
|
|
4
|
+
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
|
5
|
+
</adaptive-icon>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
|
+
<background android:drawable="@drawable/ic_launcher_background" />
|
|
4
|
+
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
|
5
|
+
</adaptive-icon>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
+
android:id="@+id/nav_graph"
|
|
6
|
+
app:startDestination="@id/FirstFragment">
|
|
7
|
+
|
|
8
|
+
<fragment
|
|
9
|
+
android:id="@+id/FirstFragment"
|
|
10
|
+
android:name="com.example.nestjs_firebase_admin.FirstFragment"
|
|
11
|
+
android:label="@string/first_fragment_label"
|
|
12
|
+
tools:layout="@layout/fragment_first">
|
|
13
|
+
|
|
14
|
+
<action
|
|
15
|
+
android:id="@+id/action_FirstFragment_to_SecondFragment"
|
|
16
|
+
app:destination="@id/SecondFragment" />
|
|
17
|
+
</fragment>
|
|
18
|
+
<fragment
|
|
19
|
+
android:id="@+id/SecondFragment"
|
|
20
|
+
android:name="com.example.nestjs_firebase_admin.SecondFragment"
|
|
21
|
+
android:label="@string/second_fragment_label"
|
|
22
|
+
tools:layout="@layout/fragment_second">
|
|
23
|
+
|
|
24
|
+
<action
|
|
25
|
+
android:id="@+id/action_SecondFragment_to_FirstFragment"
|
|
26
|
+
app:destination="@id/FirstFragment" />
|
|
27
|
+
</fragment>
|
|
28
|
+
</navigation>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<resources>
|
|
3
|
+
<color name="purple_200">#FFBB86FC</color>
|
|
4
|
+
<color name="purple_500">#FF6200EE</color>
|
|
5
|
+
<color name="purple_700">#FF3700B3</color>
|
|
6
|
+
<color name="teal_200">#FF03DAC5</color>
|
|
7
|
+
<color name="teal_700">#FF018786</color>
|
|
8
|
+
<color name="black">#FF000000</color>
|
|
9
|
+
<color name="white">#FFFFFFFF</color>
|
|
10
|
+
</resources>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<resources>
|
|
2
|
+
<string name="app_name">nestjs-firebase-admin</string>
|
|
3
|
+
<string name="action_settings">Settings</string>
|
|
4
|
+
<!-- Strings used for fragments for navigation -->
|
|
5
|
+
<string name="first_fragment_label">First Fragment</string>
|
|
6
|
+
<string name="second_fragment_label">Second Fragment</string>
|
|
7
|
+
<string name="next">Next</string>
|
|
8
|
+
<string name="previous">Previous</string>
|
|
9
|
+
|
|
10
|
+
<string name="hello_first_fragment">Hello first fragment</string>
|
|
11
|
+
<string name="hello_second_fragment">Hello second fragment. Arg: %1$s</string>
|
|
12
|
+
</resources>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<resources xmlns:tools="http://schemas.android.com/tools">
|
|
2
|
+
<!-- Base application theme. -->
|
|
3
|
+
<style name="Theme.Nestjsfirebaseadmin" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
|
4
|
+
<!-- Primary brand color. -->
|
|
5
|
+
<item name="colorPrimary">@color/purple_500</item>
|
|
6
|
+
<item name="colorPrimaryVariant">@color/purple_700</item>
|
|
7
|
+
<item name="colorOnPrimary">@color/white</item>
|
|
8
|
+
<!-- Secondary brand color. -->
|
|
9
|
+
<item name="colorSecondary">@color/teal_200</item>
|
|
10
|
+
<item name="colorSecondaryVariant">@color/teal_700</item>
|
|
11
|
+
<item name="colorOnSecondary">@color/black</item>
|
|
12
|
+
<!-- Status bar color. -->
|
|
13
|
+
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
|
|
14
|
+
<!-- Customize your theme here. -->
|
|
15
|
+
</style>
|
|
16
|
+
|
|
17
|
+
<style name="Theme.Nestjsfirebaseadmin.NoActionBar">
|
|
18
|
+
<item name="windowActionBar">false</item>
|
|
19
|
+
<item name="windowNoTitle">true</item>
|
|
20
|
+
</style>
|
|
21
|
+
|
|
22
|
+
<style name="Theme.Nestjsfirebaseadmin.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
|
|
23
|
+
|
|
24
|
+
<style name="Theme.Nestjsfirebaseadmin.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
|
|
25
|
+
</resources>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<resources xmlns:tools="http://schemas.android.com/tools">
|
|
2
|
+
<!-- Base application theme. -->
|
|
3
|
+
<style name="Theme.Nestjsfirebaseadmin" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
|
4
|
+
<!-- Primary brand color. -->
|
|
5
|
+
<item name="colorPrimary">@color/purple_200</item>
|
|
6
|
+
<item name="colorPrimaryVariant">@color/purple_700</item>
|
|
7
|
+
<item name="colorOnPrimary">@color/black</item>
|
|
8
|
+
<!-- Secondary brand color. -->
|
|
9
|
+
<item name="colorSecondary">@color/teal_200</item>
|
|
10
|
+
<item name="colorSecondaryVariant">@color/teal_200</item>
|
|
11
|
+
<item name="colorOnSecondary">@color/black</item>
|
|
12
|
+
<!-- Status bar color. -->
|
|
13
|
+
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
|
|
14
|
+
<!-- Customize your theme here. -->
|
|
15
|
+
</style>
|
|
16
|
+
</resources>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?><!--
|
|
2
|
+
Sample backup rules file; uncomment and customize as necessary.
|
|
3
|
+
See https://developer.android.com/guide/topics/data/autobackup
|
|
4
|
+
for details.
|
|
5
|
+
Note: This file is ignored for devices older that API 31
|
|
6
|
+
See https://developer.android.com/about/versions/12/backup-restore
|
|
7
|
+
-->
|
|
8
|
+
<full-backup-content>
|
|
9
|
+
<!--
|
|
10
|
+
<include domain="sharedpref" path="."/>
|
|
11
|
+
<exclude domain="sharedpref" path="device.xml"/>
|
|
12
|
+
-->
|
|
13
|
+
</full-backup-content>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?><!--
|
|
2
|
+
Sample data extraction rules file; uncomment and customize as necessary.
|
|
3
|
+
See https://developer.android.com/about/versions/12/backup-restore#xml-changes
|
|
4
|
+
for details.
|
|
5
|
+
-->
|
|
6
|
+
<data-extraction-rules>
|
|
7
|
+
<cloud-backup>
|
|
8
|
+
<!-- TODO: Use <include> and <exclude> to control what is backed up.
|
|
9
|
+
<include .../>
|
|
10
|
+
<exclude .../>
|
|
11
|
+
-->
|
|
12
|
+
</cloud-backup>
|
|
13
|
+
<!--
|
|
14
|
+
<device-transfer>
|
|
15
|
+
<include .../>
|
|
16
|
+
<exclude .../>
|
|
17
|
+
</device-transfer>
|
|
18
|
+
-->
|
|
19
|
+
</data-extraction-rules>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
package com.example.nestjs_firebase_admin;
|
|
2
|
+
|
|
3
|
+
import org.junit.Test;
|
|
4
|
+
|
|
5
|
+
import static org.junit.Assert.*;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Example local unit test, which will execute on the development machine (host).
|
|
9
|
+
*
|
|
10
|
+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
|
11
|
+
*/
|
|
12
|
+
public class ExampleUnitTest {
|
|
13
|
+
@Test
|
|
14
|
+
public void addition_isCorrect() {
|
|
15
|
+
assertEquals(4, 2 + 2);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
buildscript {
|
|
2
|
+
dependencies {
|
|
3
|
+
classpath 'com.google.gms:google-services:4.3.14'
|
|
4
|
+
}
|
|
5
|
+
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
6
|
+
plugins {
|
|
7
|
+
id 'com.android.application' version '7.3.0' apply false
|
|
8
|
+
id 'com.android.library' version '7.3.0' apply false
|
|
9
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Project-wide Gradle settings.
|
|
2
|
+
# IDE (e.g. Android Studio) users:
|
|
3
|
+
# Gradle settings configured through the IDE *will override*
|
|
4
|
+
# any settings specified in this file.
|
|
5
|
+
# For more details on how to configure your build environment visit
|
|
6
|
+
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
|
7
|
+
# Specifies the JVM arguments used for the daemon process.
|
|
8
|
+
# The setting is particularly useful for tweaking memory settings.
|
|
9
|
+
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
|
10
|
+
# When configured, Gradle will run in incubating parallel mode.
|
|
11
|
+
# This option should only be used with decoupled projects. More details, visit
|
|
12
|
+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
13
|
+
# org.gradle.parallel=true
|
|
14
|
+
# AndroidX package structure to make it clearer which packages are bundled with the
|
|
15
|
+
# Android operating system, and which are packaged with your app's APK
|
|
16
|
+
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
|
17
|
+
android.useAndroidX=true
|
|
18
|
+
# Enables namespacing of each library's R class so that its R class includes only the
|
|
19
|
+
# resources declared in the library itself and none from the library's dependencies,
|
|
20
|
+
# thereby reducing the size of the R class for that library
|
|
21
|
+
android.nonTransitiveRClass=true
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
|
|
3
|
+
#
|
|
4
|
+
# Copyright 2015 the original author or authors.
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
##############################################################################
|
|
20
|
+
##
|
|
21
|
+
## Gradle start up script for UN*X
|
|
22
|
+
##
|
|
23
|
+
##############################################################################
|
|
24
|
+
|
|
25
|
+
# Attempt to set APP_HOME
|
|
26
|
+
# Resolve links: $0 may be a link
|
|
27
|
+
PRG="$0"
|
|
28
|
+
# Need this for relative symlinks.
|
|
29
|
+
while [ -h "$PRG" ] ; do
|
|
30
|
+
ls=`ls -ld "$PRG"`
|
|
31
|
+
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
32
|
+
if expr "$link" : '/.*' > /dev/null; then
|
|
33
|
+
PRG="$link"
|
|
34
|
+
else
|
|
35
|
+
PRG=`dirname "$PRG"`"/$link"
|
|
36
|
+
fi
|
|
37
|
+
done
|
|
38
|
+
SAVED="`pwd`"
|
|
39
|
+
cd "`dirname \"$PRG\"`/" >/dev/null
|
|
40
|
+
APP_HOME="`pwd -P`"
|
|
41
|
+
cd "$SAVED" >/dev/null
|
|
42
|
+
|
|
43
|
+
APP_NAME="Gradle"
|
|
44
|
+
APP_BASE_NAME=`basename "$0"`
|
|
45
|
+
|
|
46
|
+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
47
|
+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
48
|
+
|
|
49
|
+
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
50
|
+
MAX_FD="maximum"
|
|
51
|
+
|
|
52
|
+
warn () {
|
|
53
|
+
echo "$*"
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
die () {
|
|
57
|
+
echo
|
|
58
|
+
echo "$*"
|
|
59
|
+
echo
|
|
60
|
+
exit 1
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
# OS specific support (must be 'true' or 'false').
|
|
64
|
+
cygwin=false
|
|
65
|
+
msys=false
|
|
66
|
+
darwin=false
|
|
67
|
+
nonstop=false
|
|
68
|
+
case "`uname`" in
|
|
69
|
+
CYGWIN* )
|
|
70
|
+
cygwin=true
|
|
71
|
+
;;
|
|
72
|
+
Darwin* )
|
|
73
|
+
darwin=true
|
|
74
|
+
;;
|
|
75
|
+
MINGW* )
|
|
76
|
+
msys=true
|
|
77
|
+
;;
|
|
78
|
+
NONSTOP* )
|
|
79
|
+
nonstop=true
|
|
80
|
+
;;
|
|
81
|
+
esac
|
|
82
|
+
|
|
83
|
+
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
# Determine the Java command to use to start the JVM.
|
|
87
|
+
if [ -n "$JAVA_HOME" ] ; then
|
|
88
|
+
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
|
89
|
+
# IBM's JDK on AIX uses strange locations for the executables
|
|
90
|
+
JAVACMD="$JAVA_HOME/jre/sh/java"
|
|
91
|
+
else
|
|
92
|
+
JAVACMD="$JAVA_HOME/bin/java"
|
|
93
|
+
fi
|
|
94
|
+
if [ ! -x "$JAVACMD" ] ; then
|
|
95
|
+
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
|
96
|
+
|
|
97
|
+
Please set the JAVA_HOME variable in your environment to match the
|
|
98
|
+
location of your Java installation."
|
|
99
|
+
fi
|
|
100
|
+
else
|
|
101
|
+
JAVACMD="java"
|
|
102
|
+
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
103
|
+
|
|
104
|
+
Please set the JAVA_HOME variable in your environment to match the
|
|
105
|
+
location of your Java installation."
|
|
106
|
+
fi
|
|
107
|
+
|
|
108
|
+
# Increase the maximum file descriptors if we can.
|
|
109
|
+
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
|
110
|
+
MAX_FD_LIMIT=`ulimit -H -n`
|
|
111
|
+
if [ $? -eq 0 ] ; then
|
|
112
|
+
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
|
113
|
+
MAX_FD="$MAX_FD_LIMIT"
|
|
114
|
+
fi
|
|
115
|
+
ulimit -n $MAX_FD
|
|
116
|
+
if [ $? -ne 0 ] ; then
|
|
117
|
+
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
|
118
|
+
fi
|
|
119
|
+
else
|
|
120
|
+
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
|
121
|
+
fi
|
|
122
|
+
fi
|
|
123
|
+
|
|
124
|
+
# For Darwin, add options to specify how the application appears in the dock
|
|
125
|
+
if $darwin; then
|
|
126
|
+
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
|
127
|
+
fi
|
|
128
|
+
|
|
129
|
+
# For Cygwin or MSYS, switch paths to Windows format before running java
|
|
130
|
+
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
|
131
|
+
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
|
132
|
+
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
|
133
|
+
|
|
134
|
+
JAVACMD=`cygpath --unix "$JAVACMD"`
|
|
135
|
+
|
|
136
|
+
# We build the pattern for arguments to be converted via cygpath
|
|
137
|
+
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
|
138
|
+
SEP=""
|
|
139
|
+
for dir in $ROOTDIRSRAW ; do
|
|
140
|
+
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
|
141
|
+
SEP="|"
|
|
142
|
+
done
|
|
143
|
+
OURCYGPATTERN="(^($ROOTDIRS))"
|
|
144
|
+
# Add a user-defined pattern to the cygpath arguments
|
|
145
|
+
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
|
146
|
+
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
|
147
|
+
fi
|
|
148
|
+
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
|
149
|
+
i=0
|
|
150
|
+
for arg in "$@" ; do
|
|
151
|
+
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
|
152
|
+
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
|
153
|
+
|
|
154
|
+
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
|
155
|
+
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
|
156
|
+
else
|
|
157
|
+
eval `echo args$i`="\"$arg\""
|
|
158
|
+
fi
|
|
159
|
+
i=`expr $i + 1`
|
|
160
|
+
done
|
|
161
|
+
case $i in
|
|
162
|
+
0) set -- ;;
|
|
163
|
+
1) set -- "$args0" ;;
|
|
164
|
+
2) set -- "$args0" "$args1" ;;
|
|
165
|
+
3) set -- "$args0" "$args1" "$args2" ;;
|
|
166
|
+
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
|
167
|
+
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
|
168
|
+
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
|
169
|
+
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
|
170
|
+
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
|
171
|
+
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
|
172
|
+
esac
|
|
173
|
+
fi
|
|
174
|
+
|
|
175
|
+
# Escape application args
|
|
176
|
+
save () {
|
|
177
|
+
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
|
178
|
+
echo " "
|
|
179
|
+
}
|
|
180
|
+
APP_ARGS=`save "$@"`
|
|
181
|
+
|
|
182
|
+
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
|
183
|
+
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
|
184
|
+
|
|
185
|
+
exec "$JAVACMD" "$@"
|