Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 13 additions & 18 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
apply plugin: "com.android.application"
apply plugin: "com.android.library"
apply plugin: "realm-android"
apply plugin: 'com.google.gms.google-services'
apply plugin: 'io.fabric'

android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "com.camomile.openlibre"
minSdkVersion 19
targetSdkVersion 28
multiDexEnabled true
Expand All @@ -32,7 +29,6 @@ dependencies {
exclude group: "com.android.support", module: "support-annotations"
})
implementation "io.realm:android-adapters:3.1.0"
implementation "com.github.PhilJay:MPAndroidChart:v3.0.2"
implementation "com.android.support:appcompat-v7:28.0.0"
implementation "com.android.support:design:28.0.0"
implementation "com.android.support:support-v4:28.0.0"
Expand All @@ -41,22 +37,21 @@ dependencies {
implementation "com.google.code.gson:gson:2.8.5"
implementation 'junit:junit:4.13-beta-3'
debugImplementation 'com.facebook.stetho:stetho:1.5.1'
debugImplementation "com.uphyca:stetho_realm:2.3.0"

// ***** Firebase *****
//Authentication
implementation 'com.google.firebase:firebase-auth:17.0.0'
implementation 'com.firebaseui:firebase-ui-auth:5.0.0'
//Cloud Firestore
implementation 'com.google.firebase:firebase-firestore:19.0.2'
//Crashalytics
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
//Analytics
implementation 'com.google.firebase:firebase-analytics:16.3.0'
//Messaging
implementation 'com.google.firebase:firebase-messaging:18.0.0'
// ***** Firebase end *****
// implementation 'com.google.firebase:firebase-auth:17.0.0'
// implementation 'com.firebaseui:firebase-ui-auth:5.0.0'
// //Cloud Firestore
// implementation 'com.google.firebase:firebase-firestore:19.0.2'
// //Crashalytics
// implementation 'com.google.firebase:firebase-core:16.0.7'
// implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
// //Analytics
// implementation 'com.google.firebase:firebase-analytics:16.3.0'
// //Messaging
// implementation 'com.google.firebase:firebase-messaging:18.0.0'
// // ***** Firebase end *****

// Volley is an HTTP library that makes networking for Android apps easier and faster
implementation 'com.android.volley:volley:1.1.1'
Expand Down
35 changes: 0 additions & 35 deletions app/src/debug/java/com/camomile/openlibre/StethoUtils.java

This file was deleted.

110 changes: 48 additions & 62 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,75 +3,61 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.camomile.openlibre">

<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.NFC" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- <uses-permission android:name="android.permission.VIBRATE" />-->
<!-- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />-->
<!-- <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />-->
<!-- <uses-permission android:name="android.permission.NFC" />-->
<!-- <uses-permission android:name="android.permission.INTERNET" />-->
<!-- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />-->

<uses-feature
android:name="android.hardware.nfc"
android:required="true" />
android:required="false" />

<application
android:name="com.camomile.openlibre.OpenLibre"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme.Splash"
tools:ignore="GoogleAppIndexingWarning">
<!-- <application-->
<!-- tools:ignore="GoogleAppIndexingWarning">-->

<!-- Set custom default icon. This is used when no icon is set for incoming notification messages.
See README(https://goo.gl/l4GJaQ) for more. -->
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_launcher" />
<!-- <meta-data-->
<!-- android:name="com.google.firebase.messaging.default_notification_icon"-->
<!-- android:resource="@drawable/ic_launcher" />-->
<!-- Set color used with incoming notification messages. This is used when no color is set for the incoming
notification message. See README(https://goo.gl/6BKBk7) for more. -->
<meta-data
android:name="com.google.firebase.messaging.default_notification_color"
android:resource="@color/colorAccent" />

<meta-data
android:name="com.google.firebase.messaging.default_notification_channel_id"
android:value="@string/default_notification_channel_id" />

<activity
android:name="com.camomile.openlibre.ui.MainActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:label="@string/app_name"
android:launchMode="singleTask"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.TECH_DISCOVERED" />
</intent-filter>

<meta-data
android:name="android.nfc.action.TECH_DISCOVERED"
android:resource="@xml/nfc_tech_filter" />
</activity>

<activity
android:name="com.camomile.openlibre.ui.SettingsActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:label="@string/action_settings"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"></activity>

<service
android:name=".service.AppMessagingService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
</application>
<!-- <meta-data-->
<!-- android:name="com.google.firebase.messaging.default_notification_color"-->
<!-- android:resource="@color/colorAccent" />-->

<!-- <meta-data-->
<!-- android:name="com.google.firebase.messaging.default_notification_channel_id"-->
<!-- android:value="@string/default_notification_channel_id" />-->

<!-- <activity-->
<!-- android:name="com.camomile.openlibre.ui.MainActivity"-->
<!-- android:configChanges="orientation|screenSize|keyboardHidden"-->
<!-- android:label="@string/app_name"-->
<!-- android:launchMode="singleTask"-->
<!-- android:screenOrientation="portrait">-->
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.MAIN" />-->

<!-- <category android:name="android.intent.category.LAUNCHER" />-->
<!-- </intent-filter>-->
<!-- <intent-filter>-->
<!-- <action android:name="android.nfc.action.TECH_DISCOVERED" />-->
<!-- </intent-filter>-->

<!-- <meta-data-->
<!-- android:name="android.nfc.action.TECH_DISCOVERED"-->
<!-- android:resource="@xml/nfc_tech_filter" />-->
<!-- </activity>-->

<!-- <service-->
<!-- android:name=".service.AppMessagingService"-->
<!-- android:exported="false">-->
<!-- <intent-filter>-->
<!-- <action android:name="com.google.firebase.MESSAGING_EVENT" />-->
<!-- </intent-filter>-->
<!-- </service>-->
<!-- </application>-->
</manifest>

This file was deleted.

Loading