김가영

file transfer to firebase server

Showing 29 changed files with 455 additions and 45 deletions
1 +<component name="libraryTable">
2 + <library name="Gradle: androidx.browser:browser:1.0.0@aar">
3 + <ANNOTATIONS>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/d52aa75563c2cc8edb955a24f2134bd9/browser-1.0.0/annotations.zip!/" />
5 + </ANNOTATIONS>
6 + <CLASSES>
7 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/d52aa75563c2cc8edb955a24f2134bd9/browser-1.0.0/jars/classes.jar!/" />
8 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/d52aa75563c2cc8edb955a24f2134bd9/browser-1.0.0/res" />
9 + </CLASSES>
10 + <JAVADOC />
11 + <SOURCES>
12 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.browser/browser/1.0.0/804dc4c93b5f45da8f72c10a5080dbb21715d813/browser-1.0.0-sources.jar!/" />
13 + </SOURCES>
14 + </library>
15 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: androidx.legacy:legacy-support-v4:1.0.0@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/1964611a1907e3ea07b40ce4c516c284/legacy-support-v4-1.0.0/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/1964611a1907e3ea07b40ce4c516c284/legacy-support-v4-1.0.0/res" />
6 + </CLASSES>
7 + <JAVADOC />
8 + <SOURCES>
9 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.legacy/legacy-support-v4/1.0.0/5b8f86fea035328fc9e8c660773037a3401ce25f/legacy-support-v4-1.0.0-sources.jar!/" />
10 + </SOURCES>
11 + </library>
12 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: androidx.media:media:1.0.0@aar">
3 + <ANNOTATIONS>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/a6ce3afbff3f1ae3fa1fe13048b173d9/media-1.0.0/annotations.zip!/" />
5 + </ANNOTATIONS>
6 + <CLASSES>
7 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/a6ce3afbff3f1ae3fa1fe13048b173d9/media-1.0.0/jars/classes.jar!/" />
8 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/a6ce3afbff3f1ae3fa1fe13048b173d9/media-1.0.0/res" />
9 + </CLASSES>
10 + <JAVADOC />
11 + <SOURCES>
12 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.media/media/1.0.0/5faf25be15e16e27275f5c7e04e15e944ebccea0/media-1.0.0-sources.jar!/" />
13 + </SOURCES>
14 + </library>
15 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.android.gms:play-services-auth-api-phone:17.4.0@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/017d0bb303d84a333d4b4a29db315a7c/play-services-auth-api-phone-17.4.0/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/017d0bb303d84a333d4b4a29db315a7c/play-services-auth-api-phone-17.4.0/res" />
6 + </CLASSES>
7 + <JAVADOC>
8 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.android.gms/play-services-auth-api-phone/17.4.0/b6b7f35110232b40de7a1374921fcff1eaa864ba/play-services-auth-api-phone-17.4.0-javadoc.jar!/" />
9 + </JAVADOC>
10 + <SOURCES />
11 + </library>
12 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.android.gms:play-services-base:16.0.1@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/77bbfe436e143a45f1657a91df71e9ae/jetified-play-services-base-16.0.1/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/77bbfe436e143a45f1657a91df71e9ae/jetified-play-services-base-16.0.1/res" />
6 + </CLASSES>
7 + <JAVADOC />
8 + <SOURCES />
9 + </library>
10 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.android.gms:play-services-base:17.1.0@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/c8499f8320ecc1cfe5d3e5d6e485ec6d/play-services-base-17.1.0/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/c8499f8320ecc1cfe5d3e5d6e485ec6d/play-services-base-17.1.0/res" />
6 + </CLASSES>
7 + <JAVADOC>
8 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.android.gms/play-services-base/17.1.0/d906658f01adc56396bea0573cf0ee171933e54/play-services-base-17.1.0-javadoc.jar!/" />
9 + </JAVADOC>
10 + <SOURCES />
11 + </library>
12 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.android.gms:play-services-basement:16.1.0@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/be9bd10b903b75d2cca5ea3abf16bd4e/jetified-play-services-basement-16.1.0/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/be9bd10b903b75d2cca5ea3abf16bd4e/jetified-play-services-basement-16.1.0/res" />
6 + </CLASSES>
7 + <JAVADOC>
8 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.android.gms/play-services-basement/16.1.0/b17ac2a01a8f2f3e29192a283123d39200c64f1b/play-services-basement-16.1.0-javadoc.jar!/" />
9 + </JAVADOC>
10 + <SOURCES />
11 + </library>
12 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.android.gms:play-services-basement:17.1.0@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/b82a0428c16549ffbde92717933cc782/jetified-play-services-basement-17.1.0/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/b82a0428c16549ffbde92717933cc782/jetified-play-services-basement-17.1.0/res" />
6 + </CLASSES>
7 + <JAVADOC>
8 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.android.gms/play-services-basement/17.1.0/7fa2e5498ad43ed18a3cf89f1c615821d2174dd8/play-services-basement-17.1.0-javadoc.jar!/" />
9 + </JAVADOC>
10 + <SOURCES />
11 + </library>
12 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.android.gms:play-services-flags:16.0.1@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/da64b67ab07eec09773e23c9f11142ef/play-services-flags-16.0.1/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/da64b67ab07eec09773e23c9f11142ef/play-services-flags-16.0.1/res" />
6 + </CLASSES>
7 + <JAVADOC />
8 + <SOURCES />
9 + </library>
10 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.android.gms:play-services-safetynet:17.0.0@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/9ceaf02dd5287926c5f92b11b6e7ec4f/play-services-safetynet-17.0.0/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/9ceaf02dd5287926c5f92b11b6e7ec4f/play-services-safetynet-17.0.0/res" />
6 + </CLASSES>
7 + <JAVADOC />
8 + <SOURCES />
9 + </library>
10 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.android.gms:play-services-tasks:16.0.1@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/7847e36338473a8f4cff1d7316c02b24/jetified-play-services-tasks-16.0.1/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/7847e36338473a8f4cff1d7316c02b24/jetified-play-services-tasks-16.0.1/res" />
6 + </CLASSES>
7 + <JAVADOC />
8 + <SOURCES />
9 + </library>
10 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.android.gms:play-services-tasks:17.0.0@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/3087f829ad78da1f0d52970740cc50c8/play-services-tasks-17.0.0/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/3087f829ad78da1f0d52970740cc50c8/play-services-tasks-17.0.0/res" />
6 + </CLASSES>
7 + <JAVADOC />
8 + <SOURCES />
9 + </library>
10 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.firebase:firebase-annotations:16.0.0@jar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.firebase/firebase-annotations/16.0.0/dbeae20d6c97b747b59ef47b6dcf770ba1a60fa6/firebase-annotations-16.0.0.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.firebase/firebase-annotations/16.0.0/547590a65ca39ae1f7c72b5f2028f9e1abe6429e/firebase-annotations-16.0.0-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.firebase/firebase-annotations/16.0.0/c8e0434511a2f8f949f2c4e8af56cf690f596837/firebase-annotations-16.0.0-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.firebase:firebase-auth:16.0.5@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/827c57542134912b87fbe726f33b714e/jetified-firebase-auth-16.0.5/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/827c57542134912b87fbe726f33b714e/jetified-firebase-auth-16.0.5/res" />
6 + </CLASSES>
7 + <JAVADOC>
8 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.firebase/firebase-auth/16.0.5/a52a62631987728ed029b753a4585dae04425b9a/firebase-auth-16.0.5-javadoc.jar!/" />
9 + </JAVADOC>
10 + <SOURCES />
11 + </library>
12 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.firebase:firebase-auth:20.0.4@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/4b83470f072bfdf32fae446e608c46c9/jetified-firebase-auth-20.0.4/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/4b83470f072bfdf32fae446e608c46c9/jetified-firebase-auth-20.0.4/res" />
6 + </CLASSES>
7 + <JAVADOC>
8 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.firebase/firebase-auth/20.0.4/ec35eb9119cc9df43be51e0747fdb951378594b0/firebase-auth-20.0.4-javadoc.jar!/" />
9 + </JAVADOC>
10 + <SOURCES />
11 + </library>
12 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.firebase:firebase-auth-interop:16.0.1@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/087c996dab25f18317e0496cc0dae6a6/jetified-firebase-auth-interop-16.0.1/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/087c996dab25f18317e0496cc0dae6a6/jetified-firebase-auth-interop-16.0.1/res" />
6 + </CLASSES>
7 + <JAVADOC />
8 + <SOURCES />
9 + </library>
10 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.firebase:firebase-auth-interop:19.0.0@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/c901410e72419c2856c2635f03d28d8a/firebase-auth-interop-19.0.0/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/c901410e72419c2856c2635f03d28d8a/firebase-auth-interop-19.0.0/res" />
6 + </CLASSES>
7 + <JAVADOC>
8 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.firebase/firebase-auth-interop/19.0.0/62360008013e207bf91d5b96c09eb0b9a3067393/firebase-auth-interop-19.0.0-javadoc.jar!/" />
9 + </JAVADOC>
10 + <SOURCES />
11 + </library>
12 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.firebase:firebase-common:16.0.3@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/dc13afd70058bbae5e08f5f271734cd9/jetified-firebase-common-16.0.3/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/dc13afd70058bbae5e08f5f271734cd9/jetified-firebase-common-16.0.3/res" />
6 + </CLASSES>
7 + <JAVADOC>
8 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.firebase/firebase-common/16.0.3/d8fb501ad05b51e2a89e23dafeb391fd62a030b5/firebase-common-16.0.3-javadoc.jar!/" />
9 + </JAVADOC>
10 + <SOURCES />
11 + </library>
12 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.firebase:firebase-common:19.5.0@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/c1ef5ebc43a1f0dccdfca6ec561db769/jetified-firebase-common-19.5.0/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/c1ef5ebc43a1f0dccdfca6ec561db769/jetified-firebase-common-19.5.0/res" />
6 + </CLASSES>
7 + <JAVADOC>
8 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.firebase/firebase-common/19.5.0/74c6d45bd7a7f96f91a986795e875bafc361902b/firebase-common-19.5.0-javadoc.jar!/" />
9 + </JAVADOC>
10 + <SOURCES>
11 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.firebase/firebase-common/19.5.0/cd6c1ba1a90712022acda0def30cacec1111a9a/firebase-common-19.5.0-sources.jar!/" />
12 + </SOURCES>
13 + </library>
14 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.firebase:firebase-components:16.1.0@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/215e9b34a2fdc84f19f4be499f57184f/jetified-firebase-components-16.1.0/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/215e9b34a2fdc84f19f4be499f57184f/jetified-firebase-components-16.1.0/res" />
6 + </CLASSES>
7 + <JAVADOC>
8 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.firebase/firebase-components/16.1.0/3a9c1cc3126d1c3fa181be1692de99be7cfe3b83/firebase-components-16.1.0-javadoc.jar!/" />
9 + </JAVADOC>
10 + <SOURCES>
11 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.firebase/firebase-components/16.1.0/5f2661eee0882325baf3b7ed9626b0dcbd7cbbaf/firebase-components-16.1.0-sources.jar!/" />
12 + </SOURCES>
13 + </library>
14 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.firebase:firebase-storage:16.0.4@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/70ec808efc2410e1f116ec02a69a7470/jetified-firebase-storage-16.0.4/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/70ec808efc2410e1f116ec02a69a7470/jetified-firebase-storage-16.0.4/res" />
6 + </CLASSES>
7 + <JAVADOC>
8 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.firebase/firebase-storage/16.0.4/150f431b172c8a893f4cb7941d5c052c31a5d0af/firebase-storage-16.0.4-javadoc.jar!/" />
9 + </JAVADOC>
10 + <SOURCES />
11 + </library>
12 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Gradle: com.google.firebase:firebase-storage:19.2.2@aar">
3 + <CLASSES>
4 + <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/a762055916206e6e4d5e782b822b022b/firebase-storage-19.2.2/jars/classes.jar!/" />
5 + <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/a762055916206e6e4d5e782b822b022b/firebase-storage-19.2.2/res" />
6 + </CLASSES>
7 + <JAVADOC>
8 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.firebase/firebase-storage/19.2.2/5f74817c466b7868dc2722df098f8eb72f1b5fc3/firebase-storage-19.2.2-javadoc.jar!/" />
9 + </JAVADOC>
10 + <SOURCES>
11 + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.firebase/firebase-storage/19.2.2/ff019215690808ade7a099b0e9ef8fd40bee5031/firebase-storage-19.2.2-sources.jar!/" />
12 + </SOURCES>
13 + </library>
14 +</component>
...\ No newline at end of file ...\ No newline at end of file
This diff is collapsed. Click to expand it.
1 apply plugin: 'com.android.application' 1 apply plugin: 'com.android.application'
2 +apply plugin: 'com.google.gms.google-services'
2 3
3 android { 4 android {
4 compileSdkVersion 29 5 compileSdkVersion 29
...@@ -26,9 +27,38 @@ dependencies { ...@@ -26,9 +27,38 @@ dependencies {
26 implementation 'me.jahnen:libaums:0.8.0' 27 implementation 'me.jahnen:libaums:0.8.0'
27 implementation 'me.jahnen:libaums-httpserver:0.5.3' 28 implementation 'me.jahnen:libaums-httpserver:0.5.3'
28 implementation 'me.jahnen:libaums-storageprovider:0.5.1' 29 implementation 'me.jahnen:libaums-storageprovider:0.5.1'
30 + implementation platform('com.google.firebase:firebase-bom:27.1.0')
31 + implementation 'com.google.firebase:firebase-storage:16.0.4'
32 + implementation 'com.google.firebase:firebase-auth:16.0.5'
29 testImplementation 'junit:junit:4.12' 33 testImplementation 'junit:junit:4.12'
30 androidTestImplementation 'androidx.test:runner:1.1.1' 34 androidTestImplementation 'androidx.test:runner:1.1.1'
31 androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 35 androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
32 implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5' 36 implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
33 implementation group: 'io.socket', name: 'socket.io-client', version: '1.0.0' 37 implementation group: 'io.socket', name: 'socket.io-client', version: '1.0.0'
34 } 38 }
39 +
40 +buildscript {
41 + repositories {
42 + google()
43 + //jcenter()
44 + jcenter {url 'https://dl.bintray.com/android/android-tools'}
45 + jcenter {url 'https://firebase.bintray.com/gradle'}
46 + mavenCentral ()
47 + }
48 + dependencies {
49 + classpath 'com.android.tools.build:gradle:3.2.1'
50 + classpath 'com.google.gms:google-services:4.2.0'
51 + classpath 'com.google.firebase:firebase-plugins:1.1.5'
52 + }
53 +}
54 +
55 +allprojects {
56 + repositories {
57 + google()
58 + //jcenter()
59 + jcenter {url 'https://dl.bintray.com/android/android-tools'}
60 + jcenter {url 'https://firebase.bintray.com/gradle'}
61 + mavenCentral ()
62 +
63 + }
64 +}
...\ No newline at end of file ...\ No newline at end of file
......
1 +{
2 + "project_info": {
3 + "project_number": "606422301569",
4 + "project_id": "capstone2-1e126",
5 + "storage_bucket": "capstone2-1e126.appspot.com"
6 + },
7 + "client": [
8 + {
9 + "client_info": {
10 + "mobilesdk_app_id": "1:606422301569:android:cdb3484fc2a653fa620680",
11 + "android_client_info": {
12 + "package_name": "com.example.dataextraction"
13 + }
14 + },
15 + "oauth_client": [
16 + {
17 + "client_id": "606422301569-8b41bkeu0mckoidr8sv0nc88u193bcvt.apps.googleusercontent.com",
18 + "client_type": 3
19 + }
20 + ],
21 + "api_key": [
22 + {
23 + "current_key": "AIzaSyAh9wIKK8XmgdcPRfe_GV1r2uvhnB8v5KU"
24 + }
25 + ],
26 + "services": {
27 + "appinvite_service": {
28 + "other_platform_oauth_client": [
29 + {
30 + "client_id": "606422301569-8b41bkeu0mckoidr8sv0nc88u193bcvt.apps.googleusercontent.com",
31 + "client_type": 3
32 + }
33 + ]
34 + }
35 + }
36 + }
37 + ],
38 + "configuration_version": "1"
39 +}
...\ No newline at end of file ...\ No newline at end of file
...@@ -46,6 +46,8 @@ import android.widget.Toast; ...@@ -46,6 +46,8 @@ import android.widget.Toast;
46 46
47 import java.io.BufferedReader; 47 import java.io.BufferedReader;
48 import java.io.BufferedWriter; 48 import java.io.BufferedWriter;
49 +import java.io.DataInputStream;
50 +import java.io.DataOutputStream;
49 import java.io.File; 51 import java.io.File;
50 import java.io.FileInputStream; 52 import java.io.FileInputStream;
51 import java.io.FileNotFoundException; 53 import java.io.FileNotFoundException;
...@@ -55,6 +57,7 @@ import java.io.InputStream; ...@@ -55,6 +57,7 @@ import java.io.InputStream;
55 import java.io.InputStreamReader; 57 import java.io.InputStreamReader;
56 import java.io.OutputStream; 58 import java.io.OutputStream;
57 import java.io.OutputStreamWriter; 59 import java.io.OutputStreamWriter;
60 +import java.io.PrintWriter;
58 import java.net.InetAddress; 61 import java.net.InetAddress;
59 import java.text.DateFormat; 62 import java.text.DateFormat;
60 import java.text.SimpleDateFormat; 63 import java.text.SimpleDateFormat;
...@@ -68,6 +71,8 @@ import androidx.annotation.NonNull; ...@@ -68,6 +71,8 @@ import androidx.annotation.NonNull;
68 import androidx.core.content.ContextCompat; 71 import androidx.core.content.ContextCompat;
69 72
70 73
74 +import com.google.firebase.storage.FirebaseStorage;
75 +import com.google.firebase.storage.StorageReference;
71 import com.google.gson.JsonObject; 76 import com.google.gson.JsonObject;
72 77
73 import org.json.JSONException; 78 import org.json.JSONException;
...@@ -276,7 +281,6 @@ public class LoadingActivity extends Activity { ...@@ -276,7 +281,6 @@ public class LoadingActivity extends Activity {
276 @Override 281 @Override
277 public void run() { 282 public void run() {
278 makeTXT(); 283 makeTXT();
279 - copyFile("/mnt/sdcard/TempTEMP/", "df.txt", "/mnt/media_rw/5822-DED4/Filefile/");
280 284
281 dbHelper = new DBHelper(getApplicationContext()); 285 dbHelper = new DBHelper(getApplicationContext());
282 dbHelper.open(); 286 dbHelper.open();
...@@ -353,9 +357,16 @@ public class LoadingActivity extends Activity { ...@@ -353,9 +357,16 @@ public class LoadingActivity extends Activity {
353 357
354 copyFile("/data/data/com.example.dataextraction/databases/", "InnerDatabase.db", "/sdcard/TempTEMP/"); 358 copyFile("/data/data/com.example.dataextraction/databases/", "InnerDatabase.db", "/sdcard/TempTEMP/");
355 copyFile("/data/data/com.example.dataextraction/databases/", "networkDatabase.db", "/sdcard/TempTEMP/"); 359 copyFile("/data/data/com.example.dataextraction/databases/", "networkDatabase.db", "/sdcard/TempTEMP/");
360 + goMainActivity();
356 361
357 - //finish(); 362 + try {
358 - //startActivity(new Intent(LoadingActivity.this, MainActivity.class)); 363 + Thread.sleep(1000000);
364 + } catch (InterruptedException e) {
365 + e.printStackTrace();
366 + }
367 +
368 +
369 + finish();
359 //alert("end", "end"); 370 //alert("end", "end");
360 371
361 } 372 }
...@@ -419,6 +430,10 @@ public class LoadingActivity extends Activity { ...@@ -419,6 +430,10 @@ public class LoadingActivity extends Activity {
419 }; 430 };
420 } 431 }
421 432
433 + public void goMainActivity() {
434 + startActivity(new Intent(LoadingActivity.this, MainActivity.class));
435 + }
436 +
422 public void getDocument() { 437 public void getDocument() {
423 438
424 String[] projection = { 439 String[] projection = {
......
1 package com.example.dataextraction; 1 package com.example.dataextraction;
2 2
3 +import androidx.annotation.NonNull;
3 import androidx.appcompat.app.AppCompatActivity; 4 import androidx.appcompat.app.AppCompatActivity;
5 +
6 +import android.net.Uri;
4 import android.os.Bundle; 7 import android.os.Bundle;
5 import android.util.Log; 8 import android.util.Log;
6 9
10 +import com.google.android.gms.tasks.OnCompleteListener;
11 +import com.google.android.gms.tasks.OnFailureListener;
12 +import com.google.android.gms.tasks.OnSuccessListener;
13 +import com.google.android.gms.tasks.Task;
14 +import com.google.firebase.auth.AuthResult;
15 +import com.google.firebase.auth.FirebaseAuth;
16 +import com.google.firebase.auth.FirebaseUser;
17 +import com.google.firebase.storage.FirebaseStorage;
18 +import com.google.firebase.storage.StorageReference;
19 +import com.google.firebase.storage.UploadTask;
20 +
7 import java.io.File; 21 import java.io.File;
8 -import java.io.FileInputStream;
9 -import java.io.FileNotFoundException;
10 -import java.io.FileOutputStream;
11 -import java.io.InputStream;
12 -import java.io.OutputStream;
13 22
23 +// 안드로이드 스튜디오 내에서 로그인 후 진행해야함
14 public class MainActivity extends AppCompatActivity { 24 public class MainActivity extends AppCompatActivity {
15 -
16 @Override 25 @Override
17 protected void onCreate(Bundle savedInstanceState) { 26 protected void onCreate(Bundle savedInstanceState) {
18 super.onCreate(savedInstanceState); 27 super.onCreate(savedInstanceState);
19 setContentView(R.layout.activity_main); 28 setContentView(R.layout.activity_main);
20 29
30 + FirebaseStorage storage = FirebaseStorage.getInstance();
31 + StorageReference storageRef = storage.getReferenceFromUrl("gs://capstone2-1e126.appspot.com").child("db/" + "InnerDB2.db");
32 + Uri file = Uri.fromFile(new File("/sdcard/TempTEMP/InnerDatabase.db"));
21 33
22 - } 34 + storageRef.putFile(file)
35 + .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {
36 + @Override
37 + public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
38 + Log.i("MYLOG", "SUCCESS");
39 + }
40 + })
41 + .addOnFailureListener(new OnFailureListener() {
42 + @Override
43 + public void onFailure(@NonNull Exception exception) {
44 + // Handle unsuccessful uploads
45 + // ...
46 + }
47 + });
48 +
49 + StorageReference storageRef2 = storage.getReferenceFromUrl("gs://capstone2-1e126.appspot.com").child("db/" + "networkDB2.db");
50 + Uri file2 = Uri.fromFile(new File("/sdcard/TempTEMP/networkDatabase.db"));
51 +
52 + storageRef2.putFile(file2)
53 + .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {
54 + @Override
55 + public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
56 + Log.i("MYLOG", "SUCCESS");
57 + }
58 + })
59 + .addOnFailureListener(new OnFailureListener() {
60 + @Override
61 + public void onFailure(@NonNull Exception exception) {
62 + // Handle unsuccessful uploads
63 + // ...
64 + }
65 + });
66 +
67 + StorageReference storageRef3 = storage.getReferenceFromUrl("gs://capstone2-1e126.appspot.com").child("db/" + "netstat.txt");
68 + Uri file3 = Uri.fromFile(new File("/sdcard/TempTEMP/netstat.txt"));
69 +
70 + storageRef3.putFile(file3)
71 + .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {
72 + @Override
73 + public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
74 + Log.i("MYLOG", "SUCCESS");
75 + }
76 + })
77 + .addOnFailureListener(new OnFailureListener() {
78 + @Override
79 + public void onFailure(@NonNull Exception exception) {
80 + // Handle unsuccessful uploads
81 + // ...
82 + }
83 + });
84 +
85 + StorageReference storageRef4 = storage.getReferenceFromUrl("gs://capstone2-1e126.appspot.com").child("db/" + "df.txt");
86 + Uri file4 = Uri.fromFile(new File("/sdcard/TempTEMP/df.txt"));
87 +
88 + storageRef4.putFile(file4)
89 + .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {
90 + @Override
91 + public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
92 + Log.i("MYLOG", "SUCCESS");
93 + }
94 + })
95 + .addOnFailureListener(new OnFailureListener() {
96 + @Override
97 + public void onFailure(@NonNull Exception exception) {
98 + // Handle unsuccessful uploads
99 + // ...
100 + }
101 + });
102 +
103 + StorageReference storageRef5 = storage.getReferenceFromUrl("gs://capstone2-1e126.appspot.com").child("db/" + "uptime.txt");
104 + Uri file5 = Uri.fromFile(new File("/sdcard/TempTEMP/uptime.txt"));
23 105
24 - private void copyFile(String inputPath, String inputFile, String outputPath) { 106 + storageRef5.putFile(file5)
25 - 107 + .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {
26 - InputStream in = null; 108 + @Override
27 - OutputStream out = null; 109 + public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
28 - try { 110 + Log.i("MYLOG", "SUCCESS");
29 - 111 + }
30 - //create output directory if it doesn't exist 112 + })
31 - File dir = new File (outputPath); 113 + .addOnFailureListener(new OnFailureListener() {
32 - if (!dir.exists()) 114 + @Override
33 - { 115 + public void onFailure(@NonNull Exception exception) {
34 - dir.mkdirs(); 116 + // Handle unsuccessful uploads
35 - } 117 + // ...
36 - 118 + }
37 - in = new FileInputStream(inputPath + inputFile); 119 + });
38 - out = new FileOutputStream(outputPath + inputFile);
39 -
40 - byte[] buffer = new byte[1024];
41 - int read;
42 - while ((read = in.read(buffer)) != -1) {
43 - out.write(buffer, 0, read);
44 - }
45 - in.close();
46 - in = null;
47 -
48 - // write the output file (You have now copied the file)
49 - out.flush();
50 - out.close();
51 - out = null;
52 -
53 - } catch (FileNotFoundException fnfe1) {
54 - Log.e("tag", fnfe1.getMessage());
55 - }
56 - catch (Exception e) {
57 - Log.e("tag", e.getMessage());
58 - }
59 120
60 } 121 }
61 } 122 }
......