├── .gitignore
├── App.js
├── LICENSE
├── README.md
├── __tests__
└── App-test.js
├── android
├── .idea
│ ├── .name
│ ├── caches
│ │ ├── build_file_checksums.ser
│ │ └── gradle_models.ser
│ ├── dictionaries
│ │ └── alertis.xml
│ ├── gradle.xml
│ ├── libraries
│ │ ├── Gradle__android_arch_core_common_1_1_1_jar.xml
│ │ ├── Gradle__android_arch_core_runtime_1_1_1_aar.xml
│ │ ├── Gradle__android_arch_lifecycle_common_1_1_1_jar.xml
│ │ ├── Gradle__android_arch_lifecycle_livedata_1_1_1_aar.xml
│ │ ├── Gradle__android_arch_lifecycle_livedata_core_1_1_1_aar.xml
│ │ ├── Gradle__android_arch_lifecycle_runtime_1_1_1_aar.xml
│ │ ├── Gradle__android_arch_lifecycle_viewmodel_1_1_1_aar.xml
│ │ ├── Gradle__com_android_support_animated_vector_drawable_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_appcompat_v7_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_asynclayoutinflater_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_collections_28_0_0_jar.xml
│ │ ├── Gradle__com_android_support_coordinatorlayout_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_cursoradapter_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_customview_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_documentfile_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_drawerlayout_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_interpolator_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_loader_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_localbroadcastmanager_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_print_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_slidingpanelayout_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_support_annotations_28_0_0_jar.xml
│ │ ├── Gradle__com_android_support_support_compat_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_support_core_ui_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_support_core_utils_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_support_fragment_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_support_vector_drawable_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_swiperefreshlayout_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_versionedparcelable_28_0_0_aar.xml
│ │ ├── Gradle__com_android_support_viewpager_28_0_0_aar.xml
│ │ ├── Gradle__com_facebook_fresco_drawee_1_10_0_aar.xml
│ │ ├── Gradle__com_facebook_fresco_fbcore_1_10_0_aar.xml
│ │ ├── Gradle__com_facebook_fresco_fresco_1_10_0_aar.xml
│ │ ├── Gradle__com_facebook_fresco_imagepipeline_1_10_0_aar.xml
│ │ ├── Gradle__com_facebook_fresco_imagepipeline_base_1_10_0_aar.xml
│ │ ├── Gradle__com_facebook_fresco_imagepipeline_okhttp3_1_10_0_aar.xml
│ │ ├── Gradle__com_facebook_infer_annotation_infer_annotation_0_11_2_jar.xml
│ │ ├── Gradle__com_facebook_react_react_native_0_59_2_aar.xml
│ │ ├── Gradle__com_facebook_soloader_soloader_0_6_0_aar.xml
│ │ ├── Gradle__com_google_code_findbugs_jsr305_3_0_2_jar.xml
│ │ ├── Gradle__com_parse_bolts_bolts_tasks_1_4_0_jar.xml
│ │ ├── Gradle__com_squareup_okhttp3_okhttp_3_12_1_jar.xml
│ │ ├── Gradle__com_squareup_okhttp3_okhttp_urlconnection_3_12_1_jar.xml
│ │ ├── Gradle__com_squareup_okio_okio_1_15_0_jar.xml
│ │ └── Gradle__javax_inject_javax_inject_1_jar.xml
│ ├── misc.xml
│ ├── modules.xml
│ ├── runConfigurations.xml
│ └── workspace.xml
├── app
│ ├── BUCK
│ ├── build.gradle
│ ├── build_defs.bzl
│ ├── proguard-rules.pro
│ ├── release
│ │ ├── app-release.apk
│ │ ├── app-release.zip
│ │ └── output.json
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── assets
│ │ ├── fonts
│ │ │ ├── AntDesign.ttf
│ │ │ ├── Entypo.ttf
│ │ │ ├── EvilIcons.ttf
│ │ │ ├── Feather.ttf
│ │ │ ├── FontAwesome.ttf
│ │ │ ├── FontAwesome5_Brands.ttf
│ │ │ ├── FontAwesome5_Regular.ttf
│ │ │ ├── FontAwesome5_Solid.ttf
│ │ │ ├── Foundation.ttf
│ │ │ ├── Ionicons.ttf
│ │ │ ├── MaterialCommunityIcons.ttf
│ │ │ ├── MaterialIcons.ttf
│ │ │ ├── Octicons.ttf
│ │ │ ├── Roboto.ttf
│ │ │ ├── Roboto_medium.ttf
│ │ │ ├── SimpleLineIcons.ttf
│ │ │ ├── Zocial.ttf
│ │ │ └── rubicon-icon-font.ttf
│ │ └── www
│ │ │ └── memorize.db
│ │ ├── java
│ │ └── com
│ │ │ └── memorize
│ │ │ ├── MainActivity.java
│ │ │ └── MainApplication.java
│ │ └── res
│ │ ├── mipmap-hdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-ldpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-mdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ └── values
│ │ ├── colors.xml
│ │ ├── strings.xml
│ │ └── styles.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── keystores
│ ├── BUCK
│ └── debug.keystore.properties
└── settings.gradle
├── app.json
├── babel.config.js
├── icon.png
├── index.js
├── ios
├── memorize-tvOS
│ └── Info.plist
├── memorize-tvOSTests
│ └── Info.plist
├── memorize.xcodeproj
│ ├── project.pbxproj
│ └── xcshareddata
│ │ └── xcschemes
│ │ ├── memorize-tvOS.xcscheme
│ │ └── memorize.xcscheme
├── memorize
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Base.lproj
│ │ └── LaunchScreen.xib
│ ├── Images.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ ├── Contents.json
│ │ │ ├── icon-1024@1x.png
│ │ │ ├── icon-20@1x.png
│ │ │ ├── icon-20@2x.png
│ │ │ ├── icon-20@3x.png
│ │ │ ├── icon-29@1x.png
│ │ │ ├── icon-29@2x.png
│ │ │ ├── icon-29@3x.png
│ │ │ ├── icon-40@1x.png
│ │ │ ├── icon-40@2x.png
│ │ │ ├── icon-40@3x.png
│ │ │ ├── icon-50@1x.png
│ │ │ ├── icon-50@2x.png
│ │ │ ├── icon-57@1x.png
│ │ │ ├── icon-57@2x.png
│ │ │ ├── icon-60@2x.png
│ │ │ ├── icon-60@3x.png
│ │ │ ├── icon-72@1x.png
│ │ │ ├── icon-72@2x.png
│ │ │ ├── icon-76@1x.png
│ │ │ ├── icon-76@2x.png
│ │ │ └── icon-83.5@2x.png
│ │ └── Contents.json
│ ├── Info.plist
│ └── main.m
└── memorizeTests
│ ├── Info.plist
│ └── memorizeTests.m
├── memorize.db
├── metro.config.js
├── package-lock.json
├── package.json
├── screenshots
├── 1.png
├── 2.png
├── 3.png
├── 4.png
└── 5.png
└── src
├── DBHelper
└── data.js
├── Route.js
├── class
├── exam.js
├── pushSender.js
└── word.js
├── component
├── addWordForm.js
├── buttonMenu.js
├── exam.js
├── footerMenu.js
├── header.js
├── memorizedWords.js
└── words.js
└── pages
├── addWords.js
├── examPage.js
├── main.js
└── memorized.js
/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IntelliJ
26 | #
27 | build/
28 | .idea
29 | .gradle
30 | local.properties
31 | *.iml
32 |
33 | # node.js
34 | #
35 | node_modules/
36 | npm-debug.log
37 | yarn-error.log
38 |
39 | # BUCK
40 | buck-out/
41 | \.buckd/
42 | *.keystore
43 |
44 | # fastlane
45 | #
46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47 | # screenshots whenever they are needed.
48 | # For more information about the recommended setup visit:
49 | # https://docs.fastlane.tools/best-practices/source-control/
50 |
51 | */fastlane/report.xml
52 | */fastlane/Preview.html
53 | */fastlane/screenshots
54 |
55 | # Bundle artifact
56 | *.jsbundle
--------------------------------------------------------------------------------
/App.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import Routes from './src/Route';
3 |
4 | export default class App extends Component{
5 | constructor(props){
6 | super(props);
7 | }
8 | render() {
9 | return (
10 |
11 | );
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Osman Yavuz Demir
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [![Build Status][build-shield]]()
5 | [![Contributors][contributors-shield]]()
6 | [![MIT License][license-shield]][license-url]
7 | [![LinkedIn][linkedin-shield]][linkedin-url]
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
Memorize
19 |
20 |
21 | Celal Bayar Üniversitesi Yazılım Yapımı Projesi için React Native ile hazırlanan kelime ezberleme yazılımı.
22 |
23 | ·
24 | Report Bug
25 | ·
26 | Request Feature
27 |
28 |
29 |
30 |
31 |
32 |
33 | ## İçerik
34 |
35 | * [Proje Hakkında](#proje-hakkında)
36 | * [Kullanılan Paketler](#kullanılan-paketler)
37 | * [Başlangıç](#başlangıç)
38 | * [Gereksinimler](#gereksinimler)
39 | * [Kurulum](#kurulum)
40 | * [Kullanımı](#kullanımı)
41 | * [İletişim](#iletişim)
42 |
43 |
44 |
45 |
46 | ## Proje Hakkında
47 |
48 | [![Product Name Screen Shot][product-screenshot-1]](https://github.com/Alertis/memorize/tree/master/screenshots)
49 |
50 | Uygulama kullanıcılara öğrenmek istediği kelimelerin ingilizce karşılığını öğretmeyi amaçlamaktadır. Uygulama ilk çalıştırıldığı zaman daha önceden belirlenen bir miktar kelimeyi otomatik olarak hafızasına dahil eder. Kullanıcı daha sonra kelime ekleyebilir veya öğrenmek istediği kelimeyi işaretleyebilir. Öğrenmek üzere işaretlenen kelimeler belirli bir senaryoya göre günü geldiği zaman TEST menüsü altında görüntülenecektir.
51 |
52 | ### Kullanılan Paketler
53 | Uygulama geliştirme sırasında aşağıdaki paketlerden yararlanılmıştır.
54 | * [React Native](https://facebook.github.io/react-native/)
55 | * [React Native Router Flux](https://github.com/aksonov/react-native-router-flux)
56 | * [React Native Sqlite Storage](https://github.com/andpor/react-native-sqlite-storage)
57 | * [React Native Flash Message](https://github.com/lucasferreira/react-native-flash-message)
58 | * [Native Base](https://nativebase.io/)
59 | * [Moment](https://www.npmjs.com/package/moment)
60 |
61 |
62 |
63 |
64 | ## Başlangıç
65 |
66 | Projeyi kendi bilgisayarınıza kurmak için aşağıdaki adımları takip edebilirsiniz.
67 |
68 | ### Gereksinimler
69 |
70 | Projeyi çalıştırabilmek için aşağıdaki paketleri yüklemeniz gerekmekte
71 | * npm
72 | ```sh
73 | npm install npm@latest -g
74 | ```
75 | * React Native
76 | ```sh
77 | npm install -g react-native-cli
78 | ```
79 |
80 | ### Kurulum
81 |
82 | 1. Github reposunu klonlayın
83 | ```sh
84 | git clone https://github.com/Alertis/memorize
85 | ```
86 | 2. NPM paketlerini kurun
87 | ```sh
88 | npm install
89 | ```
90 |
91 |
92 |
93 |
94 | ## Kullanımı
95 |
96 | Uygulama ilk açıldığı zaman telefona bir SQLite veritabanı oluşturmaktadır. Aynı zamanda hafızasındaki belli sayıdaki kelimeyi bu veritabanına kayıt etmektedir. Kullanıcı dilerse yeni kelime ekleyebilir, eklenen kelimeleri düzenleyebilir veya eklenen kelimeleri silebilir.
97 |
98 | Kullanıcı öğrenmek istediği kelimeyi işaretleyerek aşağıdaki senaryoya göre TEST sayfasında görüntülenmesini sağlayabilir.
99 |
100 | * Kelime öğrenilmek üzere işaretlenir.
101 | * İşaretlenen kelime işaretlendiği günden bir gün sonra kullanıcıya sorulur.
102 | * Eğer kelime doğru cevaplandıysa bir sonraki aşamaya geçilir.
103 | * Yanlış cevaplandıysa ilk aşamaya geri dönülür.
104 |
105 | Aşamalar
106 |
107 | 1. Aşama kelime öğrenilmek üzere işaretlendiği günden bir gün sonra kullanıcıya sorulur.
108 | 2. Aşama kelime öğrenilmek üzere işaretlendiği günden bir hafta sonra kullanıcıya sorulur.
109 | 3. Aşama kelime öğrenilmek üzere işaretlendiği günden bir ay sonra kullanıcıya sorulur.
110 | 3. Aşama kelime öğrenilmek üzere işaretlendiği günden altı ay sonra kullanıcıya sorulur.
111 |
112 |
113 |
114 | ## Iletişim
115 |
116 | Osman Yavuz Demir - [@alertisx](https://twitter.com/Alertisx) - osmanyavuzdemir96@gmail.com
117 |
118 | Proje Linki: [https://github.com/Alertis/memorize](https://github.com/Alertis/memorize)
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 | [build-shield]: https://img.shields.io/badge/build-passing-brightgreen.svg?style=flat-square
129 | [contributors-shield]: https://img.shields.io/badge/contributors-1-orange.svg?style=flat-square
130 | [license-shield]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
131 | [license-url]: https://choosealicense.com/licenses/mit
132 | [linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555
133 | [linkedin-url]: https://www.linkedin.com/in/osmanyavuzdemir/
134 | [product-screenshot-1]: https://raw.githubusercontent.com/Alertis/memorize/master/screenshots/1.png?token=AG2ZA5TXLJQRPKPWLZNTTXC43FKJU
135 |
--------------------------------------------------------------------------------
/__tests__/App-test.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | */
4 |
5 | import 'react-native';
6 | import React from 'react';
7 | import App from '../App';
8 |
9 | // Note: test renderer must be required after react-native.
10 | import renderer from 'react-test-renderer';
11 |
12 | it('renders correctly', () => {
13 | renderer.create( );
14 | });
15 |
--------------------------------------------------------------------------------
/android/.idea/.name:
--------------------------------------------------------------------------------
1 | memorize
--------------------------------------------------------------------------------
/android/.idea/caches/build_file_checksums.ser:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/.idea/caches/build_file_checksums.ser
--------------------------------------------------------------------------------
/android/.idea/caches/gradle_models.ser:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/.idea/caches/gradle_models.ser
--------------------------------------------------------------------------------
/android/.idea/dictionaries/alertis.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/android/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__android_arch_core_common_1_1_1_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__android_arch_core_runtime_1_1_1_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__android_arch_lifecycle_common_1_1_1_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__android_arch_lifecycle_livedata_1_1_1_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__android_arch_lifecycle_livedata_core_1_1_1_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__android_arch_lifecycle_runtime_1_1_1_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__android_arch_lifecycle_viewmodel_1_1_1_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_animated_vector_drawable_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_appcompat_v7_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_asynclayoutinflater_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_collections_28_0_0_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_coordinatorlayout_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_cursoradapter_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_customview_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_documentfile_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_drawerlayout_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_interpolator_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_loader_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_localbroadcastmanager_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_print_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_slidingpanelayout_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_support_annotations_28_0_0_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_support_compat_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_support_core_ui_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_support_core_utils_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_support_fragment_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_support_vector_drawable_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_swiperefreshlayout_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_versionedparcelable_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_android_support_viewpager_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_1_10_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_1_10_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_1_10_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_1_10_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_base_1_10_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp3_1_10_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_facebook_infer_annotation_infer_annotation_0_11_2_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_59_2_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_facebook_soloader_soloader_0_6_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_2_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_parse_bolts_bolts_tasks_1_4_0_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_3_12_1_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_urlconnection_3_12_1_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__com_squareup_okio_okio_1_15_0_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/android/.idea/libraries/Gradle__javax_inject_javax_inject_1_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/android/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/android/.idea/workspace.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 | application
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 | Android
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 | 1553589942265
302 |
303 |
304 | 1553589942265
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
341 |
342 |
343 |
344 |
345 |
346 |
347 |
348 |
349 |
350 |
351 |
352 |
353 |
354 |
355 |
356 |
357 |
358 |
359 |
360 |
361 |
362 |
363 |
364 |
365 |
366 |
367 |
368 |
369 |
370 |
371 |
372 |
373 |
374 |
375 |
376 |
377 |
378 |
379 |
380 |
381 |
382 |
383 |
384 |
385 |
386 |
387 |
388 |
389 |
390 |
391 |
392 |
393 |
394 |
395 |
396 |
397 |
398 |
399 |
400 |
401 |
402 |
403 |
404 |
405 |
406 |
407 |
408 |
409 |
410 |
411 |
412 |
413 |
414 |
415 |
416 |
417 |
418 |
419 |
420 |
421 |
422 |
423 |
424 |
425 |
426 |
427 |
428 |
429 |
--------------------------------------------------------------------------------
/android/app/BUCK:
--------------------------------------------------------------------------------
1 | # To learn about Buck see [Docs](https://buckbuild.com/).
2 | # To run your application with Buck:
3 | # - install Buck
4 | # - `npm start` - to start the packager
5 | # - `cd android`
6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8 | # - `buck install -r android/app` - compile, install and run application
9 | #
10 |
11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
12 |
13 | lib_deps = []
14 |
15 | create_aar_targets(glob(["libs/*.aar"]))
16 |
17 | create_jar_targets(glob(["libs/*.jar"]))
18 |
19 | android_library(
20 | name = "all-libs",
21 | exported_deps = lib_deps,
22 | )
23 |
24 | android_library(
25 | name = "app-code",
26 | srcs = glob([
27 | "src/main/java/**/*.java",
28 | ]),
29 | deps = [
30 | ":all-libs",
31 | ":build_config",
32 | ":res",
33 | ],
34 | )
35 |
36 | android_build_config(
37 | name = "build_config",
38 | package = "com.memorize",
39 | )
40 |
41 | android_resource(
42 | name = "res",
43 | package = "com.memorize",
44 | res = "src/main/res",
45 | )
46 |
47 | android_binary(
48 | name = "app",
49 | keystore = "//android/keystores:debug",
50 | manifest = "src/main/AndroidManifest.xml",
51 | package_type = "debug",
52 | deps = [
53 | ":app-code",
54 | ],
55 | )
56 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation
19 | * entryFile: "index.android.js",
20 | *
21 | * // whether to bundle JS and assets in debug mode
22 | * bundleInDebug: false,
23 | *
24 | * // whether to bundle JS and assets in release mode
25 | * bundleInRelease: true,
26 | *
27 | * // whether to bundle JS and assets in another build variant (if configured).
28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
29 | * // The configuration property can be in the following formats
30 | * // 'bundleIn${productFlavor}${buildType}'
31 | * // 'bundleIn${buildType}'
32 | * // bundleInFreeDebug: true,
33 | * // bundleInPaidRelease: true,
34 | * // bundleInBeta: true,
35 | *
36 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
37 | * // for example: to disable dev mode in the staging build type (if configured)
38 | * devDisabledInStaging: true,
39 | * // The configuration property can be in the following formats
40 | * // 'devDisabledIn${productFlavor}${buildType}'
41 | * // 'devDisabledIn${buildType}'
42 | *
43 | * // the root of your project, i.e. where "package.json" lives
44 | * root: "../../",
45 | *
46 | * // where to put the JS bundle asset in debug mode
47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
48 | *
49 | * // where to put the JS bundle asset in release mode
50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
51 | *
52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
53 | * // require('./image.png')), in debug mode
54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
55 | *
56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
57 | * // require('./image.png')), in release mode
58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
59 | *
60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
64 | * // for example, you might want to remove it from here.
65 | * inputExcludes: ["android/**", "ios/**"],
66 | *
67 | * // override which node gets called and with what additional arguments
68 | * nodeExecutableAndArgs: ["node"],
69 | *
70 | * // supply additional arguments to the packager
71 | * extraPackagerArgs: []
72 | * ]
73 | */
74 |
75 | project.ext.react = [
76 | entryFile: "index.js"
77 | ]
78 |
79 | apply from: "../../node_modules/react-native/react.gradle"
80 |
81 | /**
82 | * Set this to true to create two separate APKs instead of one:
83 | * - An APK that only works on ARM devices
84 | * - An APK that only works on x86 devices
85 | * The advantage is the size of the APK is reduced by about 4MB.
86 | * Upload all the APKs to the Play Store and people will download
87 | * the correct one based on the CPU architecture of their device.
88 | */
89 | def enableSeparateBuildPerCPUArchitecture = false
90 |
91 | /**
92 | * Run Proguard to shrink the Java bytecode in release builds.
93 | */
94 | def enableProguardInReleaseBuilds = false
95 |
96 | android {
97 | compileSdkVersion rootProject.ext.compileSdkVersion
98 |
99 | compileOptions {
100 | sourceCompatibility JavaVersion.VERSION_1_8
101 | targetCompatibility JavaVersion.VERSION_1_8
102 | }
103 |
104 | defaultConfig {
105 | applicationId "com.memorize"
106 | minSdkVersion rootProject.ext.minSdkVersion
107 | targetSdkVersion rootProject.ext.targetSdkVersion
108 | versionCode 1
109 | versionName "1.0"
110 | }
111 | signingConfigs {
112 | release {
113 | if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
114 | storeFile file(MYAPP_RELEASE_STORE_FILE)
115 | storePassword MYAPP_RELEASE_STORE_PASSWORD
116 | keyAlias MYAPP_RELEASE_KEY_ALIAS
117 | keyPassword MYAPP_RELEASE_KEY_PASSWORD
118 | }
119 | }
120 | }
121 |
122 | splits {
123 | abi {
124 | reset()
125 | enable enableSeparateBuildPerCPUArchitecture
126 | universalApk false // If true, also generate a universal APK
127 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
128 | }
129 | }
130 | buildTypes {
131 | release {
132 | minifyEnabled enableProguardInReleaseBuilds
133 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
134 | signingConfig signingConfigs.release
135 | }
136 | }
137 | // applicationVariants are e.g. debug, release
138 | applicationVariants.all { variant ->
139 | variant.outputs.each { output ->
140 | // For each separate APK per architecture, set a unique version code as described here:
141 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
142 | def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86_64": 4]
143 | def abi = output.getFilter(OutputFile.ABI)
144 | if (abi != null) { // null for the universal-debug, universal-release variants
145 | output.versionCodeOverride =
146 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
147 | }
148 | }
149 | }
150 | }
151 |
152 | dependencies {
153 | implementation project(':react-native-push-notification')
154 | implementation project(':react-native-vector-icons')
155 | implementation fileTree(dir: "libs", include: ["*.jar"])
156 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
157 | implementation "com.facebook.react:react-native:+" // From node_modules
158 | implementation project(':react-native-sqlite-storage')
159 | implementation project(':react-native-svg')
160 | }
161 |
162 | // Run this once to be able to run the application with BUCK
163 | // puts all compile dependencies into folder libs for BUCK to use
164 | task copyDownloadableDepsToLibs(type: Copy) {
165 | from configurations.compile
166 | into 'libs'
167 | }
168 |
--------------------------------------------------------------------------------
/android/app/build_defs.bzl:
--------------------------------------------------------------------------------
1 | """Helper definitions to glob .aar and .jar targets"""
2 |
3 | def create_aar_targets(aarfiles):
4 | for aarfile in aarfiles:
5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")]
6 | lib_deps.append(":" + name)
7 | android_prebuilt_aar(
8 | name = name,
9 | aar = aarfile,
10 | )
11 |
12 | def create_jar_targets(jarfiles):
13 | for jarfile in jarfiles:
14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")]
15 | lib_deps.append(":" + name)
16 | prebuilt_jar(
17 | name = name,
18 | binary_jar = jarfile,
19 | )
20 |
--------------------------------------------------------------------------------
/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/android/app/release/app-release.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/release/app-release.apk
--------------------------------------------------------------------------------
/android/app/release/app-release.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/release/app-release.zip
--------------------------------------------------------------------------------
/android/app/release/output.json:
--------------------------------------------------------------------------------
1 | [{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
9 |
10 |
11 |
12 |
19 |
21 |
23 |
24 |
26 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
45 |
46 |
47 |
48 |
49 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/AntDesign.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/AntDesign.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Entypo.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/Entypo.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/EvilIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/EvilIcons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Feather.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/Feather.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/FontAwesome.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/FontAwesome.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Foundation.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/Foundation.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Ionicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/Ionicons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/MaterialIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/MaterialIcons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Octicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/Octicons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Roboto.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/Roboto.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Roboto_medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/Roboto_medium.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/SimpleLineIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/SimpleLineIcons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Zocial.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/Zocial.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/rubicon-icon-font.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/fonts/rubicon-icon-font.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/www/memorize.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/assets/www/memorize.db
--------------------------------------------------------------------------------
/android/app/src/main/java/com/memorize/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.memorize;
2 |
3 | import com.facebook.react.ReactActivity;
4 |
5 | public class MainActivity extends ReactActivity {
6 |
7 | /**
8 | * Returns the name of the main component registered from JavaScript.
9 | * This is used to schedule rendering of the component.
10 | */
11 | @Override
12 | protected String getMainComponentName() {
13 | return "memorize";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/memorize/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.memorize;
2 |
3 | import android.app.Application;
4 |
5 | import com.facebook.react.ReactApplication;
6 | import com.dieam.reactnativepushnotification.ReactNativePushNotificationPackage;
7 | import com.oblador.vectoricons.VectorIconsPackage;
8 | import com.facebook.react.ReactNativeHost;
9 | import com.facebook.react.ReactPackage;
10 | import com.facebook.react.shell.MainReactPackage;
11 | import com.facebook.soloader.SoLoader;
12 | import com.horcrux.svg.SvgPackage;
13 |
14 | import java.util.Arrays;
15 | import java.util.List;
16 |
17 | import org.pgsqlite.SQLitePluginPackage;
18 |
19 | public class MainApplication extends Application implements ReactApplication {
20 |
21 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
22 | @Override
23 | public boolean getUseDeveloperSupport() {
24 | return BuildConfig.DEBUG;
25 | }
26 |
27 | @Override
28 | protected List getPackages() {
29 | return Arrays.asList(
30 | new SQLitePluginPackage(),
31 | new MainReactPackage(),
32 | new ReactNativePushNotificationPackage(),
33 | new VectorIconsPackage(),
34 | new SvgPackage()
35 | );
36 | }
37 |
38 | @Override
39 | protected String getJSMainModuleName() {
40 | return "index";
41 | }
42 | };
43 |
44 | @Override
45 | public ReactNativeHost getReactNativeHost() {
46 | return mReactNativeHost;
47 | }
48 |
49 | @Override
50 | public void onCreate() {
51 | super.onCreate();
52 | SoLoader.init(this, /* native exopackage */ false);
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-ldpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/res/mipmap-ldpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFF
4 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | memorize
3 |
4 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | ext {
5 | googlePlayServicesVersion = "16.+"
6 | firebaseVersion = "17.6.0"
7 | buildToolsVersion = "28.0.3"
8 | minSdkVersion = 16
9 | compileSdkVersion = 28
10 | targetSdkVersion = 28
11 | supportLibVersion = "28.0.0"
12 | }
13 | repositories {
14 | google()
15 | jcenter()
16 | }
17 | dependencies {
18 | classpath 'com.android.tools.build:gradle:3.3.1'
19 |
20 | // NOTE: Do not place your application dependencies here; they belong
21 | // in the individual module build.gradle files
22 | }
23 | }
24 |
25 | allprojects {
26 | repositories {
27 | mavenLocal()
28 | google()
29 | jcenter()
30 | maven {
31 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
32 | url "$rootDir/../node_modules/react-native/android"
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 | MYAPP_RELEASE_STORE_FILE=my-release-key.keystore
20 | MYAPP_RELEASE_KEY_ALIAS=my-key-alias
21 | MYAPP_RELEASE_STORE_PASSWORD=O.yavuz96
22 | MYAPP_RELEASE_KEY_PASSWORD=O.yavuz96
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
6 |
--------------------------------------------------------------------------------
/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = "debug",
3 | properties = "debug.keystore.properties",
4 | store = "debug.keystore",
5 | visibility = [
6 | "PUBLIC",
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/android/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'memorize'
2 | include ':react-native-push-notification'
3 | project(':react-native-push-notification').projectDir = file('../node_modules/react-native-push-notification/android')
4 | include ':react-native-vector-icons'
5 | project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
6 |
7 | include ':app'
8 |
9 | include ':react-native-sqlite-storage'
10 |
11 | project(':react-native-sqlite-storage').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sqlite-storage/src/android')
12 |
13 | include ':react-native-svg'
14 | project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-svg/android')
15 |
--------------------------------------------------------------------------------
/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "memorize",
3 | "displayName": "memorize"
4 | }
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: ['module:metro-react-native-babel-preset'],
3 | };
4 |
--------------------------------------------------------------------------------
/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/icon.png
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | */
4 |
5 | import {AppRegistry} from 'react-native';
6 | import App from './App';
7 | import {name as appName} from './app.json';
8 |
9 | AppRegistry.registerComponent(appName, () => App);
10 |
--------------------------------------------------------------------------------
/ios/memorize-tvOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UIViewControllerBasedStatusBarAppearance
38 |
39 | NSLocationWhenInUseUsageDescription
40 |
41 | NSAppTransportSecurity
42 |
43 |
44 | NSExceptionDomains
45 |
46 | localhost
47 |
48 | NSExceptionAllowsInsecureHTTPLoads
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/ios/memorize-tvOSTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/ios/memorize.xcodeproj/xcshareddata/xcschemes/memorize-tvOS.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
61 |
67 |
68 |
69 |
70 |
71 |
77 |
78 |
79 |
80 |
81 |
82 |
92 |
94 |
100 |
101 |
102 |
103 |
104 |
105 |
111 |
113 |
119 |
120 |
121 |
122 |
124 |
125 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/ios/memorize.xcodeproj/xcshareddata/xcschemes/memorize.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
61 |
67 |
68 |
69 |
70 |
71 |
77 |
78 |
79 |
80 |
81 |
82 |
92 |
94 |
100 |
101 |
102 |
103 |
104 |
105 |
111 |
113 |
119 |
120 |
121 |
122 |
124 |
125 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/ios/memorize/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (nonatomic, strong) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/ios/memorize/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import "AppDelegate.h"
9 |
10 | #import
11 | #import
12 | #import
13 |
14 | @implementation AppDelegate
15 |
16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
17 | {
18 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
19 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
20 | moduleName:@"memorize"
21 | initialProperties:nil];
22 |
23 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
24 |
25 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
26 | UIViewController *rootViewController = [UIViewController new];
27 | rootViewController.view = rootView;
28 | self.window.rootViewController = rootViewController;
29 | [self.window makeKeyAndVisible];
30 | return YES;
31 | }
32 |
33 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
34 | {
35 | #if DEBUG
36 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
37 | #else
38 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
39 | #endif
40 | }
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/ios/memorize/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "icon-20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "icon-20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "icon-29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "icon-29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "icon-29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "icon-40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "icon-40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "57x57",
47 | "idiom" : "iphone",
48 | "filename" : "icon-57@1x.png",
49 | "scale" : "1x"
50 | },
51 | {
52 | "size" : "57x57",
53 | "idiom" : "iphone",
54 | "filename" : "icon-57@2x.png",
55 | "scale" : "2x"
56 | },
57 | {
58 | "size" : "60x60",
59 | "idiom" : "iphone",
60 | "filename" : "icon-60@2x.png",
61 | "scale" : "2x"
62 | },
63 | {
64 | "size" : "60x60",
65 | "idiom" : "iphone",
66 | "filename" : "icon-60@3x.png",
67 | "scale" : "3x"
68 | },
69 | {
70 | "size" : "20x20",
71 | "idiom" : "ipad",
72 | "filename" : "icon-20@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "20x20",
77 | "idiom" : "ipad",
78 | "filename" : "icon-20@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "29x29",
83 | "idiom" : "ipad",
84 | "filename" : "icon-29@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "29x29",
89 | "idiom" : "ipad",
90 | "filename" : "icon-29@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "40x40",
95 | "idiom" : "ipad",
96 | "filename" : "icon-40@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "40x40",
101 | "idiom" : "ipad",
102 | "filename" : "icon-40@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "50x50",
107 | "idiom" : "ipad",
108 | "filename" : "icon-50@1x.png",
109 | "scale" : "1x"
110 | },
111 | {
112 | "size" : "50x50",
113 | "idiom" : "ipad",
114 | "filename" : "icon-50@2x.png",
115 | "scale" : "2x"
116 | },
117 | {
118 | "size" : "72x72",
119 | "idiom" : "ipad",
120 | "filename" : "icon-72@1x.png",
121 | "scale" : "1x"
122 | },
123 | {
124 | "size" : "72x72",
125 | "idiom" : "ipad",
126 | "filename" : "icon-72@2x.png",
127 | "scale" : "2x"
128 | },
129 | {
130 | "size" : "76x76",
131 | "idiom" : "ipad",
132 | "filename" : "icon-76@1x.png",
133 | "scale" : "1x"
134 | },
135 | {
136 | "size" : "76x76",
137 | "idiom" : "ipad",
138 | "filename" : "icon-76@2x.png",
139 | "scale" : "2x"
140 | },
141 | {
142 | "size" : "83.5x83.5",
143 | "idiom" : "ipad",
144 | "filename" : "icon-83.5@2x.png",
145 | "scale" : "2x"
146 | },
147 | {
148 | "size" : "1024x1024",
149 | "idiom" : "ios-marketing",
150 | "filename" : "icon-1024@1x.png",
151 | "scale" : "1x"
152 | }
153 | ],
154 | "info" : {
155 | "version" : 1,
156 | "author" : "xcode"
157 | }
158 | }
159 |
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-1024@1x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-20@1x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-20@2x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-20@3x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-29@1x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-29@2x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-29@3x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-40@1x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-40@2x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-40@3x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-50@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-50@1x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-50@2x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-57@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-57@1x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-57@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-57@2x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-60@2x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-60@3x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-72@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-72@1x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-72@2x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-76@1x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-76@2x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/ios/memorize/Images.xcassets/AppIcon.appiconset/icon-83.5@2x.png
--------------------------------------------------------------------------------
/ios/memorize/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ios/memorize/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | memorize
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSRequiresIPhoneOS
26 |
27 | NSLocationWhenInUseUsageDescription
28 |
29 | UILaunchStoryboardName
30 | LaunchScreen
31 | UIRequiredDeviceCapabilities
32 |
33 | armv7
34 |
35 | UISupportedInterfaceOrientations
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationLandscapeLeft
39 | UIInterfaceOrientationLandscapeRight
40 |
41 | UIViewControllerBasedStatusBarAppearance
42 |
43 | NSAppTransportSecurity
44 |
45 | NSAllowsArbitraryLoads
46 |
47 | NSExceptionDomains
48 |
49 | localhost
50 |
51 | NSExceptionAllowsInsecureHTTPLoads
52 |
53 |
54 |
55 |
56 | UIAppFonts
57 |
58 | AntDesign.ttf
59 | Entypo.ttf
60 | EvilIcons.ttf
61 | Feather.ttf
62 | FontAwesome.ttf
63 | FontAwesome5_Brands.ttf
64 | FontAwesome5_Regular.ttf
65 | FontAwesome5_Solid.ttf
66 | Foundation.ttf
67 | Ionicons.ttf
68 | MaterialCommunityIcons.ttf
69 | MaterialIcons.ttf
70 | Octicons.ttf
71 | Roboto_medium.ttf
72 | Roboto.ttf
73 | rubicon-icon-font.ttf
74 | SimpleLineIcons.ttf
75 | Zocial.ttf
76 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/ios/memorize/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 |
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/ios/memorizeTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/ios/memorizeTests/memorizeTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | #define TIMEOUT_SECONDS 600
15 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
16 |
17 | @interface memorizeTests : XCTestCase
18 |
19 | @end
20 |
21 | @implementation memorizeTests
22 |
23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
24 | {
25 | if (test(view)) {
26 | return YES;
27 | }
28 | for (UIView *subview in [view subviews]) {
29 | if ([self findSubviewInView:subview matching:test]) {
30 | return YES;
31 | }
32 | }
33 | return NO;
34 | }
35 |
36 | - (void)testRendersWelcomeScreen
37 | {
38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
40 | BOOL foundElement = NO;
41 |
42 | __block NSString *redboxError = nil;
43 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
44 | if (level >= RCTLogLevelError) {
45 | redboxError = message;
46 | }
47 | });
48 |
49 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
50 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
51 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
52 |
53 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
54 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
55 | return YES;
56 | }
57 | return NO;
58 | }];
59 | }
60 |
61 | RCTSetLogFunction(RCTDefaultLogFunction);
62 |
63 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
64 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
65 | }
66 |
67 |
68 | @end
69 |
--------------------------------------------------------------------------------
/memorize.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/memorize.db
--------------------------------------------------------------------------------
/metro.config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Metro configuration for React Native
3 | * https://github.com/facebook/react-native
4 | *
5 | * @format
6 | */
7 |
8 | module.exports = {
9 | transformer: {
10 | getTransformOptions: async () => ({
11 | transform: {
12 | experimentalImportSupport: false,
13 | inlineRequires: false,
14 | },
15 | }),
16 | },
17 | };
18 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "memorize",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start",
7 | "test": "jest",
8 | "lint": "eslint ."
9 | },
10 | "dependencies": {
11 | "moment": "^2.24.0",
12 | "native-base": "^2.12.1",
13 | "react": "16.8.3",
14 | "react-native": "0.59.2",
15 | "react-native-chart-kit": "^2.6.1",
16 | "react-native-flash-message": "^0.1.12",
17 | "react-native-material-design": "^0.3.7",
18 | "react-native-pure-chart": "0.0.24",
19 | "react-native-push-notification": "^3.1.3",
20 | "react-native-router-flux": "^4.0.6",
21 | "react-native-sqlite-storage": "^3.3.10",
22 | "react-native-svg": "^9.4.0",
23 | "react-native-vector-icons": "^6.4.2",
24 | "websqlite": "^1.0.7"
25 | },
26 | "devDependencies": {
27 | "@babel/core": "7.4.0",
28 | "@babel/runtime": "7.4.2",
29 | "@react-native-community/eslint-config": "0.0.3",
30 | "babel-jest": "24.5.0",
31 | "eslint": "5.15.3",
32 | "jest": "24.5.0",
33 | "metro-react-native-babel-preset": "0.53.1",
34 | "react-test-renderer": "16.8.3"
35 | },
36 | "jest": {
37 | "preset": "react-native"
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/screenshots/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/screenshots/1.png
--------------------------------------------------------------------------------
/screenshots/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/screenshots/2.png
--------------------------------------------------------------------------------
/screenshots/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/screenshots/3.png
--------------------------------------------------------------------------------
/screenshots/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/screenshots/4.png
--------------------------------------------------------------------------------
/screenshots/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alertis/memorize/74cfb5c331c2af81baadd0285b5e5bb74620f37c/screenshots/5.png
--------------------------------------------------------------------------------
/src/DBHelper/data.js:
--------------------------------------------------------------------------------
1 | import { openDatabase,deleteDatabase }from 'react-native-sqlite-storage';
2 | import { Actions } from 'react-native-router-flux';
3 | import moment from "moment";
4 |
5 | const db = openDatabase({name : 'memorize.db'});
6 |
7 | export default class Data {
8 | state = {
9 | words:null
10 | }
11 | init() {
12 | db.transaction((tx) => {
13 | tx.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name='vocabulary'", [], (tx, res) => {
14 | if(res.rows.length == 0)
15 | this.createDefaultData();
16 | else
17 | this.deleteOldWords();
18 | })
19 | })
20 | }
21 |
22 | deleteOldWords(){
23 | db.transaction((tx) => {
24 | tx.executeSql("UPDATE vocabulary set teachLevel=1, teachDate=?, reminderDate=? WHERE reminderDate and teachLevel<>4",
25 | [(new Date()).format('YYYY-MM-DD'), moment(new Date()).add(1, 'days').format('YYYY-MM-DD'),(new Date()).format('YYYY-MM-DD')],(tx,res) => {
26 | },(err) => console.log(err));
27 | })
28 | }
29 |
30 | createDefaultData(){
31 | db.transaction((tx) => {
32 | tx.executeSql(
33 | "CREATE TABLE IF NOT EXISTS vocabulary("+
34 | "id INTEGER PRIMARY KEY NOT NULL, "+
35 | "trMean TEXT, "+
36 | "enMean TEXT, "+
37 | "structor TEXT, "+
38 | "sentence TEXT, "+
39 | "reminderDate TEXT, "+
40 | "teachDate TEXT, "+
41 | "teachLevel INTEGER, "+
42 | "teach INTEGER "+
43 | ")", [],
44 | (tx,res) => console.log("Database Created"),
45 | (err) => console.log(err)
46 | )
47 | })
48 | }
49 |
50 |
51 | }
--------------------------------------------------------------------------------
/src/Route.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import { Router, Scene } from 'react-native-router-flux';
3 | import Main from './pages/main'
4 | import AddWords from './pages/addWords'
5 | import ExamPage from './pages/examPage'
6 | import Memorized from './pages/memorized'
7 | import FlashMessage from "react-native-flash-message";
8 |
9 | export default class Routes extends Component{
10 | render(){
11 | return(
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | );
24 | }
25 | }
--------------------------------------------------------------------------------
/src/class/exam.js:
--------------------------------------------------------------------------------
1 | import { openDatabase }from 'react-native-sqlite-storage';
2 | import moment from "moment";
3 | import pushSender from './pushSender';
4 |
5 | const db = openDatabase({name : 'memorize.db'});
6 | let Notification = new pushSender()
7 |
8 | export default class Exam {
9 |
10 | updateAnsweredWord(id, status, teachLevel, teachDate, enMean){
11 | if(status === true){
12 | var days;
13 | switch(teachLevel){
14 | case 1 :
15 | days=7;
16 | break;
17 | case 2 :
18 | days=30;
19 | break;
20 | case 3 :
21 | days=180;
22 | break;
23 | default :
24 | days=0;
25 | break;
26 | }
27 | if(days !== 0){
28 | db.transaction((tx) => {
29 | tx.executeSql("UPDATE vocabulary SET teachLevel=?, reminderDate=? WHERE id=?",
30 | [teachLevel+1, moment(teachDate).add(days, 'days').format('YYYY-MM-DD'), id], (tx,res) => {
31 | Notification.SendNotification(enMean, moment(teachDate).add(days, 'days').format('YYYY-MM-DD') );
32 | },(err) => console.log(err));
33 | })
34 | }else{
35 | db.transaction((tx) => {
36 | tx.executeSql("UPDATE vocabulary SET teachLevel=4, teachDate=? WHERE id=?",
37 | [moment(new Date()).format('YYYY-MM-DD'),id], (tx,res) => {
38 | console.log(res)
39 | },(err) => console.log(err));
40 | })
41 | }
42 | }else{
43 | db.transaction((tx) => {
44 | tx.executeSql("UPDATE vocabulary SET teachLevel=1, teachDate=?, reminderDate=? WHERE id=?",
45 | [ moment(new Date()).format('YYYY-MM-DD'), moment(new Date()).add(1, 'days').format('YYYY-MM-DD'), id], (tx,res) => {
46 | console.log(res)
47 | },(err) => console.log(err));
48 | })
49 | }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/src/class/pushSender.js:
--------------------------------------------------------------------------------
1 | import moment from "moment";
2 | import PushNotification from 'react-native-push-notification';
3 |
4 | PushNotification.configure({
5 | onRegister: function(token) {
6 | console.log( 'TOKEN:', token );
7 | },
8 | onNotification: function(notification) {
9 | console.log( 'NOTIFICATION:', notification );
10 | notification.finish(PushNotificationIOS.FetchResult.NoData);
11 | },
12 | permissions: {
13 | alert: true,
14 | badge: true,
15 | sound: true
16 | },
17 | popInitialNotification: true,
18 | requestPermissions: true,
19 | });
20 |
21 | export default class pushSender{
22 |
23 | SendNotification(word, date){
24 | PushNotification.localNotificationSchedule({
25 | message: word+" kelimesininin anlamını hatırlıyor musun?",
26 | date: new Date(moment(date))
27 | });
28 | }
29 |
30 | }
--------------------------------------------------------------------------------
/src/class/word.js:
--------------------------------------------------------------------------------
1 | import { openDatabase,deleteDatabase }from 'react-native-sqlite-storage';
2 | import { Actions } from 'react-native-router-flux';
3 | import moment from "moment";
4 | import pushSender from './pushSender';
5 |
6 | const db = openDatabase({name : 'memorize.db'});
7 | let Notification = new pushSender()
8 | export default class Word {
9 |
10 | addWord(enMean, trMean, structor, sentence){
11 | db.transaction((tx) => {
12 | tx.executeSql("INSERT INTO vocabulary (enMean, trMean, structor, sentence, teach, teachLevel) VALUES (?, ?, ?, ?, 0, 0)",
13 | [enMean, trMean, structor, sentence], (tx,res) => {
14 | Actions.home();
15 | },(err) => console.log(err));
16 | })
17 | }
18 |
19 | updateWord(id, enMean, trMean, structor, sentence){
20 | db.transaction((tx) => {
21 | tx.executeSql("UPDATE vocabulary SET enMean=?, trMean=?, structor=?, sentence=? WHERE id=?",
22 | [enMean, trMean, structor, sentence, id], (tx,res) => {
23 | Actions.home();
24 | },(err) => console.log(err));
25 | })
26 | }
27 |
28 | deleteWord(id){
29 | db.transaction((tx) => {
30 | tx.executeSql("DELETE FROM vocabulary WHERE id=?",
31 | [id], (tx,res) => {
32 | Actions.home();
33 | },(err) => console.log(err));
34 | })
35 | }
36 |
37 | updateTeachWord(id, teach, enMean){
38 | db.transaction((tx) => {
39 | tx.executeSql("UPDATE vocabulary SET teach=?, teachLevel=1, teachDate=?, reminderDate=? WHERE id=?",
40 | [teach, moment(new Date()).format('YYYY-MM-DD'), moment(new Date()).add(1, 'days').format('YYYY-MM-DD'), id], (tx,res) => {
41 | if(teach == 1)
42 | Notification.SendNotification(enMean, moment(new Date()).add(1, 'days').format('YYYY-MM-DD') );
43 | },(err) => console.log(err));
44 | })
45 | }
46 |
47 |
48 | }
--------------------------------------------------------------------------------
/src/component/addWordForm.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {Text, Alert} from 'react-native'
3 | import { Content, Form, Label, Left, Right, Icon, Item, Input, Header, Body, Button, Switch } from 'native-base';
4 |
5 | export default class WordForm extends Component {
6 | state = {
7 | enWord : this.props.words ? this.props.words.enWord : '',
8 | trWord : this.props.words ? this.props.words.trWord : '',
9 | structor : this.props.words ? this.props.words.structor : '',
10 | sentence : this.props.words ? this.props.words.sentence : '',
11 | id : this.props.words ? this.props.words.id : null
12 | }
13 | saveClick = () =>{
14 | console.log(this.state);
15 | if(this.state.enWord == '' || this.state.trWord == '' || this.state.structor == '')
16 | Alert.alert('DİKKAT !','Lütfen formdaki boş alanları doldurunuz!')
17 | else{
18 | if(this.state.id == null)
19 | this.props.saveClick(this.state.enWord, this.state.trWord, this.state.structor, this.state.sentence);
20 | else
21 | this.props.updateClick(this.state.id,this.state.enWord, this.state.trWord, this.state.structor, this.state.sentence)
22 | }
23 | }
24 |
25 | render(){
26 |
27 | return(
28 |
29 |
47 |
48 |
49 | Kaydet
50 |
51 |
52 | )
53 | }
54 | }
--------------------------------------------------------------------------------
/src/component/buttonMenu.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {Button, Icon, Text, Badge, } from 'native-base';
3 |
4 | export default class Menu extends Component{
5 |
6 | render(){
7 | if(this.props.badge){
8 | return(
9 | (this.props.clickMenu())}>
10 | {this.props.count}
11 |
12 | {this.props.title}
13 |
14 | )
15 | }else{
16 | return(
17 | (this.props.clickMenu())}>
18 |
19 | {this.props.title}
20 |
21 | )
22 | }
23 |
24 | }
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/src/component/exam.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {Text, Alert} from 'react-native';
3 | import { Content, Card, CardItem, Body, Icon,Right, Left} from 'native-base';
4 |
5 |
6 | export default class Exam extends Component {
7 | constructor(props){
8 | super(props);
9 | }
10 | render(){
11 | var count=-1;
12 | counter=()=>{
13 | count=count+1;
14 | }
15 | return(
16 |
17 | {
18 | this.props.data && this.props.data.map( item => (
19 |
20 | {counter()}
21 |
22 |
23 |
24 | {item.enMean} kelimesinin türkçe karşılığı nedir ?
25 |
26 |
27 |
28 |
29 | {console.log(count)}
30 | {
31 | this.props.answers && this.props.answers.slice(count*4,(count*4)+4).map(answer => (
32 | ( this.props.chooseAnswer(item.trMean,answer,item.id, item.teachLevel, item.teachDate) )}>
33 |
34 |
35 |
36 |
37 | {answer}
38 |
39 |
40 |
41 |
42 | ))
43 | }
44 |
45 |
46 | ))
47 | }
48 | { this.props.data==null && Görüntülencek kelime yok. Lütfen daha sonra tekrar kontrol edin }
49 |
50 | )
51 | }
52 | }
--------------------------------------------------------------------------------
/src/component/footerMenu.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import { Footer, FooterTab } from 'native-base';
3 | import { Actions } from 'react-native-router-flux';
4 | import Menu from '../component/buttonMenu';
5 | import moment from "moment";
6 | import { openDatabase }from 'react-native-sqlite-storage';
7 |
8 | const db = openDatabase({name : 'memorize.db'});
9 | export default class FooterMenu extends Component{
10 | state ={
11 | count:0
12 | }
13 | componentDidMount(){
14 | this.countTestWords();
15 | }
16 | countTestWords = () => {
17 | db.transaction((tx) => {
18 | tx.executeSql("SELECT count(*) as countWords FROM vocabulary WHERE reminderDate=? and teach=1 and teachLevel<>4", [ moment(new Date()).format('YYYY-MM-DD')], (tx,res) => {
19 | this.setState({count : res.rows.item(0).countWords})
20 | },(err) => console.log(err));
21 | });
22 | }
23 | render(){
24 | return(
25 |
26 |
27 | ( Actions.exam())} />
28 | ( Actions.home())} />
29 | ( Actions.memorized())} />
30 |
31 |
32 |
33 | )
34 | }
35 | }
36 |
37 |
--------------------------------------------------------------------------------
/src/component/header.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {Left, Body, Title, Right, Button, Icon, Header, Text} from 'native-base';
3 | import { Actions } from 'react-native-router-flux';
4 |
5 | export default class HeaderComp extends Component{
6 |
7 | constructor(props){
8 | super(props);
9 | }
10 | render(){
11 | return(
12 |
13 |
14 |
15 | {this.props.title}
16 |
17 | { this.props.icon &&
18 |
19 | Actions.add()}>
20 |
21 | EKLE
22 |
23 |
24 | }
25 |
26 |
27 | )
28 | }
29 | }
--------------------------------------------------------------------------------
/src/component/memorizedWords.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {ScrollView} from 'react-native';
3 | import { Content, Tabs, Tab, Text, TabHeading, DatePicker, View, Left, Right, Button, Body } from 'native-base';
4 | import PureChart from 'react-native-pure-chart';
5 | import { openDatabase,deleteDatabase }from 'react-native-sqlite-storage';
6 | import moment from "moment";
7 |
8 | const db = openDatabase({name : 'memorize.db'});
9 |
10 | export default class Words extends Component {
11 | state = {
12 | startDate : null,
13 | finishDate : null,
14 | data: null
15 | }
16 | calculateReport = (reportType) =>{
17 | if(this.state.startDate && this.state.finishDate){
18 | db.transaction((tx) => {
19 | tx.executeSql("SELECT * FROM vocabulary WHERE teachDate between ? and ?",
20 | [moment(this.state.startDate).format('YYYY-MM-DD'), moment(this.state.finishDate).format('YYYY-MM-DD') ], (tx,res) => {
21 | if(res.rows.length>0){
22 | if(reportType=="daily")
23 | this.dailyGraphic(res.rows.length, res.rows);
24 | else if (reportType=="monthly")
25 | this.monthlyGraphic(res.rows.length, res.rows);
26 | }
27 | },(err) => console.log(err));
28 | });
29 |
30 | }
31 | }
32 |
33 | monthlyGraphic = (length, rows) => {
34 | var jan=0, feb=0, mar=0, apr=0, may=0, jun=0, jul=0, aug=0, sep=0, oct=0, nov=0, dec=0;
35 | for (let i = 0; i < length; i++) {
36 | switch (moment(rows.item(i).teachDate).format('MMMM')){
37 | case 'January' :
38 | jan++;
39 | break;
40 | case 'February' :
41 | feb++;
42 | break;
43 | case 'March' :
44 | mar++;
45 | break;
46 | case 'April' :
47 | apr++;
48 | break;
49 | case 'May' :
50 | may++;
51 | break;
52 | case 'June' :
53 | jun++;
54 | break;
55 | case 'July' :
56 | jul++;
57 | break;
58 | case 'August' :
59 | aug++;
60 | break;
61 | case 'September' :
62 | sep++;
63 | break;
64 | case 'October' :
65 | oct++;
66 | break;
67 | case 'Novomber' :
68 | nov++;
69 | break;
70 | case 'December' :
71 | dec++;
72 | break;
73 | default :
74 | console.log(moment(rows.item(i).teachDate).format('MMMM'))
75 | break;
76 | }
77 | }
78 | var data = [
79 | {
80 | data:[
81 | {x : 'Ocak', y: jan},
82 | {x : 'Şubat', y: feb},
83 | {x : 'Mart', y: mar},
84 | {x : 'Nisan', y: apr},
85 | {x : 'Mayıs', y: may},
86 | {x : 'Haziran', y: jun},
87 | {x : 'Temmuz', y: jul},
88 | {x : 'Ağustos', y: aug},
89 | {x : 'Eylül', y: sep},
90 | {x : 'Ekim', y: oct},
91 | {x : 'Kasım', y: nov},
92 | {x : 'Aralık', y: dec},
93 |
94 | ],
95 | color: '#297AB1'
96 | }
97 | ];
98 |
99 | this.setState({data : data})
100 | }
101 | dailyGraphic = (length, rows) => {
102 | var mon=0, tue=0, wed=0, thu=0, fri=0, sat=0, sun=0;
103 | for (let i = 0; i < length; i++) {
104 | switch (moment(rows.item(i).teachDate).format('dddd')){
105 | case 'Monday' :
106 | mon=mon+1;
107 | break;
108 | case 'Tuesday' :
109 | tue++;
110 | break;
111 | case 'Wednesday' :
112 | wed++;
113 | break;
114 | case 'Thursday' :
115 | thu=thu+1;
116 | break;
117 | case 'Friday' :
118 | fri++;
119 | break;
120 | case 'Saturday' :
121 | sat++;
122 | break;
123 | case 'Sunday' :
124 | sun++;
125 | break;
126 | default :
127 | console.log(moment(rows.item(i).teachDate).format('dddd'))
128 | break;
129 | }
130 | var data = [
131 | {
132 | data:[
133 | {x : 'Pazartesi', y: mon} ,
134 | {x : 'Salı', y: tue} ,
135 | {x : 'Çarşamba', y: wed},
136 | {x : 'Perşembe', y: thu},
137 | {x : 'Cuma', y: fri},
138 | {x : 'Cumartesi', y: sat},
139 | {x : 'Pazar', y: sun}
140 | ],
141 | color: '#297AB1'
142 | }
143 | ];
144 |
145 | this.setState({data : data})
146 | }
147 |
148 | }
149 |
150 | render(){
151 |
152 | return(
153 |
154 |
155 |
156 |
157 | Günlük }>
158 |
159 |
160 | {this.setState({startDate : date})}}
165 | />
166 |
167 |
168 | this.setState({finishDate : date})}
173 |
174 | />
175 |
176 |
177 |
178 | this.calculateReport('daily') } >
179 | Raporla
180 |
181 |
182 |
183 | {this.state.data &&
184 |
185 |
192 |
193 | }
194 |
195 |
196 |
197 |
198 | Aylık }>
199 |
200 |
201 | {this.setState({startDate : date})}}
206 | />
207 |
208 |
209 | this.setState({finishDate : date})}
214 |
215 | />
216 |
217 |
218 |
219 | this.calculateReport('monthly') } >
220 | Raporla
221 |
222 |
223 |
224 | {this.state.data &&
225 |
226 |
233 |
234 | }
235 |
236 |
237 |
238 |
239 | )
240 | }
241 | }
--------------------------------------------------------------------------------
/src/component/words.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {Text, Alert} from 'react-native';
3 | import { Actions } from 'react-native-router-flux';
4 | import { Content, List, ListItem, Left, Right, Icon, Item, Input, Header, Body, Button, Switch } from 'native-base';
5 | import Word from '../class/word';
6 |
7 | let service = new Word()
8 |
9 |
10 | export default class Words extends Component {
11 | editWord = (item) => {
12 | Actions.add({
13 | words:{
14 | id : item.id,
15 | enWord : item.enMean,
16 | trWord : item.trMean,
17 | structor : item.structor,
18 | sentence : item.sentence
19 | }
20 |
21 | })
22 | }
23 | deleteWord = (item) => {
24 | Alert.alert("Dikkat!", item.trMean + " - "+ item.enMean + " kelimesini silmek istediğinize emin misiniz ?", [
25 | {text : 'Evet, Sil', onPress : () => service.deleteWord(item.id)},
26 | {text : 'Hayır, Vazgeç', style: 'cancel'}
27 | ])
28 |
29 | }
30 |
31 | updateTeachWord = (item) => {
32 | service.updateTeachWord(item.id,item.teach == 1 ? 0 : 1, item.enMean);
33 | this.props.refreshWords();
34 | }
35 |
36 | render(){
37 | return(
38 |
39 |
46 |
47 | {
48 | this.props.data && this.props.data.map( item => (
49 |
50 |
51 |
52 | {item.enMean} - {item.trMean}
53 | {item.structor} - {item.sentence}
54 |
55 |
56 | ( this.deleteWord(item) ) } />
57 |
58 |
59 | ( this.editWord(item) ) } />
60 |
61 | ( this.updateTeachWord(item) )} />
62 |
63 | ))
64 | }
65 | { this.props.data==null && Görüntülencek kelime yok. Lütfen daha fazla kelime ekleyin. }
66 |
67 |
68 |
69 | )
70 | }
71 | }
--------------------------------------------------------------------------------
/src/pages/addWords.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import { Container, Text } from 'native-base';
3 | import HeaderComp from '../component/header';
4 | import FooterMenu from '../component/footerMenu';
5 | import WordForm from '../component/addWordForm';
6 | import Word from '../class/word';
7 |
8 | let service = new Word()
9 |
10 | export default class addWords extends Component {
11 | constructor(props){
12 | super(props);
13 | }
14 |
15 | save = (enMean, trMean, structor, sentence) => {
16 | service.addWord(enMean, trMean, structor, sentence);
17 | }
18 |
19 | update = (id, enMean, trMean, structor, sentence) => {
20 | service.updateWord(id, enMean, trMean, structor, sentence);
21 | }
22 |
23 | render(){
24 | return(
25 |
26 |
27 |
28 |
29 |
30 | );
31 | }
32 |
33 |
34 | }
--------------------------------------------------------------------------------
/src/pages/examPage.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import { Container } from 'native-base';
3 | import HeaderComp from '../component/header';
4 | import FooterMenu from '../component/footerMenu';
5 | import Exam from '../component/exam';
6 | import { showMessage } from "react-native-flash-message";
7 | import { openDatabase,deleteDatabase }from 'react-native-sqlite-storage';
8 | import { Actions } from 'react-native-router-flux';
9 | import ExamClass from '../class/exam';
10 | import moment from "moment";
11 |
12 | let service = new ExamClass()
13 | const db = openDatabase({name : 'memorize.db'});
14 |
15 | export default class ExamPage extends Component {
16 | constructor(props){
17 | super(props);
18 | this.state = {
19 | data: null,
20 | answers: null
21 | }
22 | }
23 |
24 | listExamWords = () => {
25 | db.transaction((tx) => {
26 | tx.executeSql("SELECT * FROM vocabulary WHERE reminderDate=? and teach=1 and teachLevel<>4", [ moment(new Date()).format('YYYY-MM-DD')], (tx,res) => {
27 | var data=[];
28 | var answers=[]
29 | if(res.rows.length>0){
30 | for (let i = 0; i < res.rows.length; i++) {
31 | data.push(res.rows.item(i));
32 | this.listAnswers(data[i].id,data[i].trMean,answers)
33 |
34 | }
35 | this.setState({data : data})
36 | }
37 | },(err) => console.log(err));
38 | });
39 | }
40 |
41 | listAnswers = (id,trMean,answers) => {
42 | db.transaction((tx) => {
43 | tx.executeSql("SELECT * FROM vocabulary WHERE id<>? ORDER BY random() limit 3", [ id ], (tx,res) => {
44 | if(res.rows.length>0){
45 | for (let i = 0; i < res.rows.length; i++) {
46 | answers.push(res.rows.item(i).trMean);
47 | }
48 | answers.push(trMean);
49 | this.shuffleAnswers(answers);
50 | }
51 | },(err) => console.log(err));
52 | });
53 | }
54 |
55 | shuffleAnswers = (answers) => {
56 | var j, temp;
57 | for (let i = answers.length-1; i>answers.length-4; i--){
58 | j=Math.floor(Math.random() * 3) + (answers.length-3);
59 | temp = answers[i];
60 | answers[i] = answers[j];
61 | answers[j] = temp;
62 | }
63 | this.setState({answers : answers})
64 | }
65 |
66 | chooseAnswer = (trueAnswer,answer, wordId, teachLevel, teachDate) =>{
67 | if(trueAnswer === answer){
68 | showMessage({
69 | message: "Tebrikler, Doğru cevap",
70 | icon: "success",
71 | type: "success",
72 | onPress: () =>{
73 | service.updateAnsweredWord(wordId, true, teachLevel, teachDate, trueAnswer);
74 | Actions.refresh({key : Actions.exam()});
75 |
76 | }
77 | });
78 | }else{
79 | showMessage({
80 | message: "Üzgünüz. Yanlış cevap",
81 | description: "Doğru cevap : "+trueAnswer,
82 | icon: "danger",
83 | type:"danger",
84 | onPress: () =>{
85 | service.updateAnsweredWord(wordId, false, teachLevel, teachDate, trueAnswer);
86 | Actions.refresh({key : Actions.exam()});
87 | }
88 | });
89 | }
90 |
91 | }
92 |
93 | componentDidMount(){
94 | this.listExamWords();
95 |
96 | }
97 |
98 | render(){
99 |
100 | return(
101 |
102 |
103 |
104 |
105 |
106 | );
107 | }
108 |
109 |
110 | }
--------------------------------------------------------------------------------
/src/pages/main.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import { Container } from 'native-base';
3 | import HeaderComp from '../component/header';
4 | import FooterMenu from '../component/footerMenu';
5 | import Words from '../component/words';
6 | import { openDatabase }from 'react-native-sqlite-storage';
7 | import Data from '../DBHelper/data';
8 |
9 | let service = new Data()
10 |
11 | const db = openDatabase({name : 'memorize.db'});
12 |
13 |
14 | export default class Main extends Component {
15 | constructor(props){
16 | super(props);
17 | this.state = {
18 | data: null
19 | }
20 | service.init();
21 | }
22 |
23 | componentDidMount(){
24 | this.selectWords();
25 | }
26 |
27 | selectWords = () => {
28 | db.transaction((tx) => {
29 | tx.executeSql("SELECT * FROM vocabulary", [], (tx,res) => {
30 | var data=[];
31 | if(res.rows.length>0){
32 | for (let i = 0; i < res.rows.length; i++) {
33 | data.push(res.rows.item(i));
34 | }
35 | this.setState({data : data})
36 | }
37 | },(err) => console.log(err));
38 | });
39 | }
40 |
41 | searchWords = (search) => {
42 | db.transaction((tx) => {
43 | tx.executeSql("SELECT * FROM vocabulary WHERE trMean like ? or enMean like ? or sentence like ? ", ['%'+search+'%','%'+search+'%','%'+search+'%'], (tx,res) => {
44 | var data=[];
45 | if(res.rows.length>0){
46 | for (let i = 0; i < res.rows.length; i++) {
47 | data.push(res.rows.item(i));
48 | }
49 | }
50 | this.setState({data : data})
51 | })
52 | })
53 | }
54 | render(){
55 | return(
56 |
57 |
58 |
59 |
60 |
61 | );
62 | }
63 |
64 |
65 | }
--------------------------------------------------------------------------------
/src/pages/memorized.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import { Container,Content, ListItem, Left, Right, Text, Radio } from 'native-base';
3 | import HeaderComp from '../component/header';
4 | import FooterMenu from '../component/footerMenu';
5 | import MemorizedWords from '../component/memorizedWords';
6 | import { openDatabase }from 'react-native-sqlite-storage';
7 |
8 |
9 | const db = openDatabase({name : 'memorize.db'});
10 |
11 | export default class Main extends Component {
12 | constructor(props){
13 | super(props);
14 | this.state = {
15 | data: null
16 | }
17 | }
18 |
19 | render(){
20 | return(
21 |
22 |
23 |
24 |
25 |
26 | );
27 | }
28 |
29 |
30 | }
--------------------------------------------------------------------------------