This commit is contained in:
2026-01-27 16:39:04 +00:00
commit 9095806bf3
722 changed files with 60943 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

Binary file not shown.

View File

@@ -0,0 +1,2 @@
#Tue Jan 27 14:50:59 WET 2026
gradle.version=9.0-milestone-1

Binary file not shown.

View File

@@ -0,0 +1,2 @@
#Tue Jan 27 14:50:57 WET 2026
java.home=/Applications/Android Studio.app/Contents/jbr/Contents/Home

BIN
.gradle/file-system.probe Normal file

Binary file not shown.

View File

3
.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

1
.idea/.name generated Normal file
View File

@@ -0,0 +1 @@
Cuida

6
.idea/AndroidProjectSystem.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AndroidProjectSystem">
<option name="providerId" value="com.android.tools.idea.GradleProjectSystem" />
</component>
</project>

26
.idea/appInsightsSettings.xml generated Normal file
View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AppInsightsSettings">
<option name="tabSettings">
<map>
<entry key="Firebase Crashlytics">
<value>
<InsightsFilterSettings>
<option name="connection">
<ConnectionSetting>
<option name="appId" value="PLACEHOLDER" />
<option name="mobileSdkAppId" value="" />
<option name="projectId" value="" />
<option name="projectNumber" value="" />
</ConnectionSetting>
</option>
<option name="signal" value="SIGNAL_UNSPECIFIED" />
<option name="timeIntervalDays" value="THIRTY_DAYS" />
<option name="visibilityType" value="ALL" />
</InsightsFilterSettings>
</value>
</entry>
</map>
</option>
</component>
</project>

1638
.idea/caches/deviceStreaming.xml generated Normal file

File diff suppressed because it is too large Load Diff

6
.idea/compiler.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="21" />
</component>
</project>

10
.idea/deploymentTargetSelector.xml generated Normal file
View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetSelector">
<selectionStates>
<SelectionState runConfigName="app">
<option name="selectionMode" value="DROPDOWN" />
</SelectionState>
</selectionStates>
</component>
</project>

18
.idea/gradle.xml generated Normal file
View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="CHOOSE_PER_TEST" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
</GradleProjectSettings>
</option>
</component>
</project>

10
.idea/migrations.xml generated Normal file
View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectMigrations">
<option name="MigrateToGradleLocalJavaHome">
<set>
<option value="$PROJECT_DIR$" />
</set>
</option>
</component>
</project>

10
.idea/misc.xml generated Normal file
View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="jbr-21" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>

17
.idea/runConfigurations.xml generated Normal file
View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="com.intellij.execution.junit.AbstractAllInDirectoryConfigurationProducer" />
<option value="com.intellij.execution.junit.AllInPackageConfigurationProducer" />
<option value="com.intellij.execution.junit.PatternConfigurationProducer" />
<option value="com.intellij.execution.junit.TestInClassConfigurationProducer" />
<option value="com.intellij.execution.junit.UniqueIdConfigurationProducer" />
<option value="com.intellij.execution.junit.testDiscovery.JUnitTestDiscoveryConfigurationProducer" />
<option value="org.jetbrains.kotlin.idea.junit.KotlinJUnitRunConfigurationProducer" />
<option value="org.jetbrains.kotlin.idea.junit.KotlinPatternConfigurationProducer" />
</set>
</option>
</component>
</project>

6
.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

51
app/build.gradle Normal file
View File

@@ -0,0 +1,51 @@
plugins {
id 'com.android.application'
}
android {
namespace 'com.example.cuida'
compileSdk 34
defaultConfig {
applicationId "com.example.cuida"
minSdk 24
targetSdk 34
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildFeatures {
viewBinding true
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.11.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.7.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0'
implementation 'androidx.navigation:navigation-fragment:2.7.7'
implementation 'androidx.navigation:navigation-ui:2.7.7'
// Room
def room_version = "2.6.1"
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}

View File

@@ -0,0 +1,248 @@
package com.example.cuida.data;
import androidx.annotation.NonNull;
import androidx.room.DatabaseConfiguration;
import androidx.room.InvalidationTracker;
import androidx.room.RoomDatabase;
import androidx.room.RoomOpenHelper;
import androidx.room.migration.AutoMigrationSpec;
import androidx.room.migration.Migration;
import androidx.room.util.DBUtil;
import androidx.room.util.TableInfo;
import androidx.sqlite.db.SupportSQLiteDatabase;
import androidx.sqlite.db.SupportSQLiteOpenHelper;
import com.example.cuida.data.dao.AppointmentDao;
import com.example.cuida.data.dao.AppointmentDao_Impl;
import com.example.cuida.data.dao.MedicationDao;
import com.example.cuida.data.dao.MedicationDao_Impl;
import com.example.cuida.data.dao.UserDao;
import com.example.cuida.data.dao.UserDao_Impl;
import java.lang.Class;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
@SuppressWarnings({"unchecked", "deprecation"})
public final class AppDatabase_Impl extends AppDatabase {
private volatile UserDao _userDao;
private volatile AppointmentDao _appointmentDao;
private volatile MedicationDao _medicationDao;
@Override
@NonNull
protected SupportSQLiteOpenHelper createOpenHelper(@NonNull final DatabaseConfiguration config) {
final SupportSQLiteOpenHelper.Callback _openCallback = new RoomOpenHelper(config, new RoomOpenHelper.Delegate(3) {
@Override
public void createAllTables(@NonNull final SupportSQLiteDatabase db) {
db.execSQL("CREATE TABLE IF NOT EXISTS `users` (`uid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT, `email` TEXT, `password` TEXT, `age` INTEGER NOT NULL, `utenteNumber` TEXT)");
db.execSQL("CREATE TABLE IF NOT EXISTS `appointments` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `type` TEXT, `date` TEXT, `time` TEXT, `isPast` INTEGER NOT NULL)");
db.execSQL("CREATE TABLE IF NOT EXISTS `medications` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT, `time` TEXT, `dosage` TEXT, `notes` TEXT, `isTaken` INTEGER NOT NULL)");
db.execSQL("CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)");
db.execSQL("INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'fdb245045e6e5f934b33faff511d4d47')");
}
@Override
public void dropAllTables(@NonNull final SupportSQLiteDatabase db) {
db.execSQL("DROP TABLE IF EXISTS `users`");
db.execSQL("DROP TABLE IF EXISTS `appointments`");
db.execSQL("DROP TABLE IF EXISTS `medications`");
final List<? extends RoomDatabase.Callback> _callbacks = mCallbacks;
if (_callbacks != null) {
for (RoomDatabase.Callback _callback : _callbacks) {
_callback.onDestructiveMigration(db);
}
}
}
@Override
public void onCreate(@NonNull final SupportSQLiteDatabase db) {
final List<? extends RoomDatabase.Callback> _callbacks = mCallbacks;
if (_callbacks != null) {
for (RoomDatabase.Callback _callback : _callbacks) {
_callback.onCreate(db);
}
}
}
@Override
public void onOpen(@NonNull final SupportSQLiteDatabase db) {
mDatabase = db;
internalInitInvalidationTracker(db);
final List<? extends RoomDatabase.Callback> _callbacks = mCallbacks;
if (_callbacks != null) {
for (RoomDatabase.Callback _callback : _callbacks) {
_callback.onOpen(db);
}
}
}
@Override
public void onPreMigrate(@NonNull final SupportSQLiteDatabase db) {
DBUtil.dropFtsSyncTriggers(db);
}
@Override
public void onPostMigrate(@NonNull final SupportSQLiteDatabase db) {
}
@Override
@NonNull
public RoomOpenHelper.ValidationResult onValidateSchema(
@NonNull final SupportSQLiteDatabase db) {
final HashMap<String, TableInfo.Column> _columnsUsers = new HashMap<String, TableInfo.Column>(6);
_columnsUsers.put("uid", new TableInfo.Column("uid", "INTEGER", true, 1, null, TableInfo.CREATED_FROM_ENTITY));
_columnsUsers.put("name", new TableInfo.Column("name", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsUsers.put("email", new TableInfo.Column("email", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsUsers.put("password", new TableInfo.Column("password", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsUsers.put("age", new TableInfo.Column("age", "INTEGER", true, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsUsers.put("utenteNumber", new TableInfo.Column("utenteNumber", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
final HashSet<TableInfo.ForeignKey> _foreignKeysUsers = new HashSet<TableInfo.ForeignKey>(0);
final HashSet<TableInfo.Index> _indicesUsers = new HashSet<TableInfo.Index>(0);
final TableInfo _infoUsers = new TableInfo("users", _columnsUsers, _foreignKeysUsers, _indicesUsers);
final TableInfo _existingUsers = TableInfo.read(db, "users");
if (!_infoUsers.equals(_existingUsers)) {
return new RoomOpenHelper.ValidationResult(false, "users(com.example.cuida.data.model.User).\n"
+ " Expected:\n" + _infoUsers + "\n"
+ " Found:\n" + _existingUsers);
}
final HashMap<String, TableInfo.Column> _columnsAppointments = new HashMap<String, TableInfo.Column>(5);
_columnsAppointments.put("id", new TableInfo.Column("id", "INTEGER", true, 1, null, TableInfo.CREATED_FROM_ENTITY));
_columnsAppointments.put("type", new TableInfo.Column("type", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsAppointments.put("date", new TableInfo.Column("date", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsAppointments.put("time", new TableInfo.Column("time", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsAppointments.put("isPast", new TableInfo.Column("isPast", "INTEGER", true, 0, null, TableInfo.CREATED_FROM_ENTITY));
final HashSet<TableInfo.ForeignKey> _foreignKeysAppointments = new HashSet<TableInfo.ForeignKey>(0);
final HashSet<TableInfo.Index> _indicesAppointments = new HashSet<TableInfo.Index>(0);
final TableInfo _infoAppointments = new TableInfo("appointments", _columnsAppointments, _foreignKeysAppointments, _indicesAppointments);
final TableInfo _existingAppointments = TableInfo.read(db, "appointments");
if (!_infoAppointments.equals(_existingAppointments)) {
return new RoomOpenHelper.ValidationResult(false, "appointments(com.example.cuida.data.model.Appointment).\n"
+ " Expected:\n" + _infoAppointments + "\n"
+ " Found:\n" + _existingAppointments);
}
final HashMap<String, TableInfo.Column> _columnsMedications = new HashMap<String, TableInfo.Column>(6);
_columnsMedications.put("id", new TableInfo.Column("id", "INTEGER", true, 1, null, TableInfo.CREATED_FROM_ENTITY));
_columnsMedications.put("name", new TableInfo.Column("name", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsMedications.put("time", new TableInfo.Column("time", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsMedications.put("dosage", new TableInfo.Column("dosage", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsMedications.put("notes", new TableInfo.Column("notes", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsMedications.put("isTaken", new TableInfo.Column("isTaken", "INTEGER", true, 0, null, TableInfo.CREATED_FROM_ENTITY));
final HashSet<TableInfo.ForeignKey> _foreignKeysMedications = new HashSet<TableInfo.ForeignKey>(0);
final HashSet<TableInfo.Index> _indicesMedications = new HashSet<TableInfo.Index>(0);
final TableInfo _infoMedications = new TableInfo("medications", _columnsMedications, _foreignKeysMedications, _indicesMedications);
final TableInfo _existingMedications = TableInfo.read(db, "medications");
if (!_infoMedications.equals(_existingMedications)) {
return new RoomOpenHelper.ValidationResult(false, "medications(com.example.cuida.data.model.Medication).\n"
+ " Expected:\n" + _infoMedications + "\n"
+ " Found:\n" + _existingMedications);
}
return new RoomOpenHelper.ValidationResult(true, null);
}
}, "fdb245045e6e5f934b33faff511d4d47", "0a9fc99c5381f75f227d7e7f13cc12c1");
final SupportSQLiteOpenHelper.Configuration _sqliteConfig = SupportSQLiteOpenHelper.Configuration.builder(config.context).name(config.name).callback(_openCallback).build();
final SupportSQLiteOpenHelper _helper = config.sqliteOpenHelperFactory.create(_sqliteConfig);
return _helper;
}
@Override
@NonNull
protected InvalidationTracker createInvalidationTracker() {
final HashMap<String, String> _shadowTablesMap = new HashMap<String, String>(0);
final HashMap<String, Set<String>> _viewTables = new HashMap<String, Set<String>>(0);
return new InvalidationTracker(this, _shadowTablesMap, _viewTables, "users","appointments","medications");
}
@Override
public void clearAllTables() {
super.assertNotMainThread();
final SupportSQLiteDatabase _db = super.getOpenHelper().getWritableDatabase();
try {
super.beginTransaction();
_db.execSQL("DELETE FROM `users`");
_db.execSQL("DELETE FROM `appointments`");
_db.execSQL("DELETE FROM `medications`");
super.setTransactionSuccessful();
} finally {
super.endTransaction();
_db.query("PRAGMA wal_checkpoint(FULL)").close();
if (!_db.inTransaction()) {
_db.execSQL("VACUUM");
}
}
}
@Override
@NonNull
protected Map<Class<?>, List<Class<?>>> getRequiredTypeConverters() {
final HashMap<Class<?>, List<Class<?>>> _typeConvertersMap = new HashMap<Class<?>, List<Class<?>>>();
_typeConvertersMap.put(UserDao.class, UserDao_Impl.getRequiredConverters());
_typeConvertersMap.put(AppointmentDao.class, AppointmentDao_Impl.getRequiredConverters());
_typeConvertersMap.put(MedicationDao.class, MedicationDao_Impl.getRequiredConverters());
return _typeConvertersMap;
}
@Override
@NonNull
public Set<Class<? extends AutoMigrationSpec>> getRequiredAutoMigrationSpecs() {
final HashSet<Class<? extends AutoMigrationSpec>> _autoMigrationSpecsSet = new HashSet<Class<? extends AutoMigrationSpec>>();
return _autoMigrationSpecsSet;
}
@Override
@NonNull
public List<Migration> getAutoMigrations(
@NonNull final Map<Class<? extends AutoMigrationSpec>, AutoMigrationSpec> autoMigrationSpecs) {
final List<Migration> _autoMigrations = new ArrayList<Migration>();
return _autoMigrations;
}
@Override
public UserDao userDao() {
if (_userDao != null) {
return _userDao;
} else {
synchronized(this) {
if(_userDao == null) {
_userDao = new UserDao_Impl(this);
}
return _userDao;
}
}
}
@Override
public AppointmentDao appointmentDao() {
if (_appointmentDao != null) {
return _appointmentDao;
} else {
synchronized(this) {
if(_appointmentDao == null) {
_appointmentDao = new AppointmentDao_Impl(this);
}
return _appointmentDao;
}
}
}
@Override
public MedicationDao medicationDao() {
if (_medicationDao != null) {
return _medicationDao;
} else {
synchronized(this) {
if(_medicationDao == null) {
_medicationDao = new MedicationDao_Impl(this);
}
return _medicationDao;
}
}
}
}

View File

@@ -0,0 +1,194 @@
package com.example.cuida.data.dao;
import android.database.Cursor;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.lifecycle.LiveData;
import androidx.room.EntityInsertionAdapter;
import androidx.room.RoomDatabase;
import androidx.room.RoomSQLiteQuery;
import androidx.room.util.CursorUtil;
import androidx.room.util.DBUtil;
import androidx.sqlite.db.SupportSQLiteStatement;
import com.example.cuida.data.model.Appointment;
import java.lang.Class;
import java.lang.Exception;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Callable;
@SuppressWarnings({"unchecked", "deprecation"})
public final class AppointmentDao_Impl implements AppointmentDao {
private final RoomDatabase __db;
private final EntityInsertionAdapter<Appointment> __insertionAdapterOfAppointment;
public AppointmentDao_Impl(@NonNull final RoomDatabase __db) {
this.__db = __db;
this.__insertionAdapterOfAppointment = new EntityInsertionAdapter<Appointment>(__db) {
@Override
@NonNull
protected String createQuery() {
return "INSERT OR ABORT INTO `appointments` (`id`,`type`,`date`,`time`,`isPast`) VALUES (nullif(?, 0),?,?,?,?)";
}
@Override
protected void bind(@NonNull final SupportSQLiteStatement statement,
final Appointment entity) {
statement.bindLong(1, entity.id);
if (entity.type == null) {
statement.bindNull(2);
} else {
statement.bindString(2, entity.type);
}
if (entity.date == null) {
statement.bindNull(3);
} else {
statement.bindString(3, entity.date);
}
if (entity.time == null) {
statement.bindNull(4);
} else {
statement.bindString(4, entity.time);
}
final int _tmp = entity.isPast ? 1 : 0;
statement.bindLong(5, _tmp);
}
};
}
@Override
public void insert(final Appointment appointment) {
__db.assertNotSuspendingTransaction();
__db.beginTransaction();
try {
__insertionAdapterOfAppointment.insert(appointment);
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
}
}
@Override
public LiveData<List<Appointment>> getFutureAppointments() {
final String _sql = "SELECT * FROM appointments WHERE isPast = 0 ORDER BY date ASC, time ASC";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
return __db.getInvalidationTracker().createLiveData(new String[] {"appointments"}, false, new Callable<List<Appointment>>() {
@Override
@Nullable
public List<Appointment> call() throws Exception {
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
try {
final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
final int _cursorIndexOfType = CursorUtil.getColumnIndexOrThrow(_cursor, "type");
final int _cursorIndexOfDate = CursorUtil.getColumnIndexOrThrow(_cursor, "date");
final int _cursorIndexOfTime = CursorUtil.getColumnIndexOrThrow(_cursor, "time");
final int _cursorIndexOfIsPast = CursorUtil.getColumnIndexOrThrow(_cursor, "isPast");
final List<Appointment> _result = new ArrayList<Appointment>(_cursor.getCount());
while (_cursor.moveToNext()) {
final Appointment _item;
final String _tmpType;
if (_cursor.isNull(_cursorIndexOfType)) {
_tmpType = null;
} else {
_tmpType = _cursor.getString(_cursorIndexOfType);
}
final String _tmpDate;
if (_cursor.isNull(_cursorIndexOfDate)) {
_tmpDate = null;
} else {
_tmpDate = _cursor.getString(_cursorIndexOfDate);
}
final String _tmpTime;
if (_cursor.isNull(_cursorIndexOfTime)) {
_tmpTime = null;
} else {
_tmpTime = _cursor.getString(_cursorIndexOfTime);
}
final boolean _tmpIsPast;
final int _tmp;
_tmp = _cursor.getInt(_cursorIndexOfIsPast);
_tmpIsPast = _tmp != 0;
_item = new Appointment(_tmpType,_tmpDate,_tmpTime,_tmpIsPast);
_item.id = _cursor.getInt(_cursorIndexOfId);
_result.add(_item);
}
return _result;
} finally {
_cursor.close();
}
}
@Override
protected void finalize() {
_statement.release();
}
});
}
@Override
public LiveData<List<Appointment>> getPastAppointments() {
final String _sql = "SELECT * FROM appointments WHERE isPast = 1 ORDER BY date DESC, time DESC";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
return __db.getInvalidationTracker().createLiveData(new String[] {"appointments"}, false, new Callable<List<Appointment>>() {
@Override
@Nullable
public List<Appointment> call() throws Exception {
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
try {
final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
final int _cursorIndexOfType = CursorUtil.getColumnIndexOrThrow(_cursor, "type");
final int _cursorIndexOfDate = CursorUtil.getColumnIndexOrThrow(_cursor, "date");
final int _cursorIndexOfTime = CursorUtil.getColumnIndexOrThrow(_cursor, "time");
final int _cursorIndexOfIsPast = CursorUtil.getColumnIndexOrThrow(_cursor, "isPast");
final List<Appointment> _result = new ArrayList<Appointment>(_cursor.getCount());
while (_cursor.moveToNext()) {
final Appointment _item;
final String _tmpType;
if (_cursor.isNull(_cursorIndexOfType)) {
_tmpType = null;
} else {
_tmpType = _cursor.getString(_cursorIndexOfType);
}
final String _tmpDate;
if (_cursor.isNull(_cursorIndexOfDate)) {
_tmpDate = null;
} else {
_tmpDate = _cursor.getString(_cursorIndexOfDate);
}
final String _tmpTime;
if (_cursor.isNull(_cursorIndexOfTime)) {
_tmpTime = null;
} else {
_tmpTime = _cursor.getString(_cursorIndexOfTime);
}
final boolean _tmpIsPast;
final int _tmp;
_tmp = _cursor.getInt(_cursorIndexOfIsPast);
_tmpIsPast = _tmp != 0;
_item = new Appointment(_tmpType,_tmpDate,_tmpTime,_tmpIsPast);
_item.id = _cursor.getInt(_cursorIndexOfId);
_result.add(_item);
}
return _result;
} finally {
_cursor.close();
}
}
@Override
protected void finalize() {
_statement.release();
}
});
}
@NonNull
public static List<Class<?>> getRequiredConverters() {
return Collections.emptyList();
}
}

View File

@@ -0,0 +1,262 @@
package com.example.cuida.data.dao;
import android.database.Cursor;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.lifecycle.LiveData;
import androidx.room.EntityDeletionOrUpdateAdapter;
import androidx.room.EntityInsertionAdapter;
import androidx.room.RoomDatabase;
import androidx.room.RoomSQLiteQuery;
import androidx.room.util.CursorUtil;
import androidx.room.util.DBUtil;
import androidx.sqlite.db.SupportSQLiteStatement;
import com.example.cuida.data.model.Medication;
import java.lang.Class;
import java.lang.Exception;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Callable;
@SuppressWarnings({"unchecked", "deprecation"})
public final class MedicationDao_Impl implements MedicationDao {
private final RoomDatabase __db;
private final EntityInsertionAdapter<Medication> __insertionAdapterOfMedication;
private final EntityDeletionOrUpdateAdapter<Medication> __updateAdapterOfMedication;
public MedicationDao_Impl(@NonNull final RoomDatabase __db) {
this.__db = __db;
this.__insertionAdapterOfMedication = new EntityInsertionAdapter<Medication>(__db) {
@Override
@NonNull
protected String createQuery() {
return "INSERT OR ABORT INTO `medications` (`id`,`name`,`time`,`dosage`,`notes`,`isTaken`) VALUES (nullif(?, 0),?,?,?,?,?)";
}
@Override
protected void bind(@NonNull final SupportSQLiteStatement statement,
final Medication entity) {
statement.bindLong(1, entity.id);
if (entity.name == null) {
statement.bindNull(2);
} else {
statement.bindString(2, entity.name);
}
if (entity.time == null) {
statement.bindNull(3);
} else {
statement.bindString(3, entity.time);
}
if (entity.dosage == null) {
statement.bindNull(4);
} else {
statement.bindString(4, entity.dosage);
}
if (entity.notes == null) {
statement.bindNull(5);
} else {
statement.bindString(5, entity.notes);
}
final int _tmp = entity.isTaken ? 1 : 0;
statement.bindLong(6, _tmp);
}
};
this.__updateAdapterOfMedication = new EntityDeletionOrUpdateAdapter<Medication>(__db) {
@Override
@NonNull
protected String createQuery() {
return "UPDATE OR ABORT `medications` SET `id` = ?,`name` = ?,`time` = ?,`dosage` = ?,`notes` = ?,`isTaken` = ? WHERE `id` = ?";
}
@Override
protected void bind(@NonNull final SupportSQLiteStatement statement,
final Medication entity) {
statement.bindLong(1, entity.id);
if (entity.name == null) {
statement.bindNull(2);
} else {
statement.bindString(2, entity.name);
}
if (entity.time == null) {
statement.bindNull(3);
} else {
statement.bindString(3, entity.time);
}
if (entity.dosage == null) {
statement.bindNull(4);
} else {
statement.bindString(4, entity.dosage);
}
if (entity.notes == null) {
statement.bindNull(5);
} else {
statement.bindString(5, entity.notes);
}
final int _tmp = entity.isTaken ? 1 : 0;
statement.bindLong(6, _tmp);
statement.bindLong(7, entity.id);
}
};
}
@Override
public void insert(final Medication medication) {
__db.assertNotSuspendingTransaction();
__db.beginTransaction();
try {
__insertionAdapterOfMedication.insert(medication);
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
}
}
@Override
public void update(final Medication medication) {
__db.assertNotSuspendingTransaction();
__db.beginTransaction();
try {
__updateAdapterOfMedication.handle(medication);
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
}
}
@Override
public LiveData<List<Medication>> getAllMedications() {
final String _sql = "SELECT * FROM medications ORDER BY time ASC";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
return __db.getInvalidationTracker().createLiveData(new String[] {"medications"}, false, new Callable<List<Medication>>() {
@Override
@Nullable
public List<Medication> call() throws Exception {
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
try {
final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
final int _cursorIndexOfName = CursorUtil.getColumnIndexOrThrow(_cursor, "name");
final int _cursorIndexOfTime = CursorUtil.getColumnIndexOrThrow(_cursor, "time");
final int _cursorIndexOfDosage = CursorUtil.getColumnIndexOrThrow(_cursor, "dosage");
final int _cursorIndexOfNotes = CursorUtil.getColumnIndexOrThrow(_cursor, "notes");
final int _cursorIndexOfIsTaken = CursorUtil.getColumnIndexOrThrow(_cursor, "isTaken");
final List<Medication> _result = new ArrayList<Medication>(_cursor.getCount());
while (_cursor.moveToNext()) {
final Medication _item;
final String _tmpName;
if (_cursor.isNull(_cursorIndexOfName)) {
_tmpName = null;
} else {
_tmpName = _cursor.getString(_cursorIndexOfName);
}
final String _tmpTime;
if (_cursor.isNull(_cursorIndexOfTime)) {
_tmpTime = null;
} else {
_tmpTime = _cursor.getString(_cursorIndexOfTime);
}
final String _tmpDosage;
if (_cursor.isNull(_cursorIndexOfDosage)) {
_tmpDosage = null;
} else {
_tmpDosage = _cursor.getString(_cursorIndexOfDosage);
}
final String _tmpNotes;
if (_cursor.isNull(_cursorIndexOfNotes)) {
_tmpNotes = null;
} else {
_tmpNotes = _cursor.getString(_cursorIndexOfNotes);
}
_item = new Medication(_tmpName,_tmpTime,_tmpDosage,_tmpNotes);
_item.id = _cursor.getInt(_cursorIndexOfId);
final int _tmp;
_tmp = _cursor.getInt(_cursorIndexOfIsTaken);
_item.isTaken = _tmp != 0;
_result.add(_item);
}
return _result;
} finally {
_cursor.close();
}
}
@Override
protected void finalize() {
_statement.release();
}
});
}
@Override
public LiveData<Medication> getNextMedication() {
final String _sql = "SELECT * FROM medications ORDER BY time ASC LIMIT 1";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
return __db.getInvalidationTracker().createLiveData(new String[] {"medications"}, false, new Callable<Medication>() {
@Override
@Nullable
public Medication call() throws Exception {
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
try {
final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
final int _cursorIndexOfName = CursorUtil.getColumnIndexOrThrow(_cursor, "name");
final int _cursorIndexOfTime = CursorUtil.getColumnIndexOrThrow(_cursor, "time");
final int _cursorIndexOfDosage = CursorUtil.getColumnIndexOrThrow(_cursor, "dosage");
final int _cursorIndexOfNotes = CursorUtil.getColumnIndexOrThrow(_cursor, "notes");
final int _cursorIndexOfIsTaken = CursorUtil.getColumnIndexOrThrow(_cursor, "isTaken");
final Medication _result;
if (_cursor.moveToFirst()) {
final String _tmpName;
if (_cursor.isNull(_cursorIndexOfName)) {
_tmpName = null;
} else {
_tmpName = _cursor.getString(_cursorIndexOfName);
}
final String _tmpTime;
if (_cursor.isNull(_cursorIndexOfTime)) {
_tmpTime = null;
} else {
_tmpTime = _cursor.getString(_cursorIndexOfTime);
}
final String _tmpDosage;
if (_cursor.isNull(_cursorIndexOfDosage)) {
_tmpDosage = null;
} else {
_tmpDosage = _cursor.getString(_cursorIndexOfDosage);
}
final String _tmpNotes;
if (_cursor.isNull(_cursorIndexOfNotes)) {
_tmpNotes = null;
} else {
_tmpNotes = _cursor.getString(_cursorIndexOfNotes);
}
_result = new Medication(_tmpName,_tmpTime,_tmpDosage,_tmpNotes);
_result.id = _cursor.getInt(_cursorIndexOfId);
final int _tmp;
_tmp = _cursor.getInt(_cursorIndexOfIsTaken);
_result.isTaken = _tmp != 0;
} else {
_result = null;
}
return _result;
} finally {
_cursor.close();
}
}
@Override
protected void finalize() {
_statement.release();
}
});
}
@NonNull
public static List<Class<?>> getRequiredConverters() {
return Collections.emptyList();
}
}

View File

@@ -0,0 +1,279 @@
package com.example.cuida.data.dao;
import android.database.Cursor;
import androidx.annotation.NonNull;
import androidx.room.EntityDeletionOrUpdateAdapter;
import androidx.room.EntityInsertionAdapter;
import androidx.room.RoomDatabase;
import androidx.room.RoomSQLiteQuery;
import androidx.room.SharedSQLiteStatement;
import androidx.room.util.CursorUtil;
import androidx.room.util.DBUtil;
import androidx.sqlite.db.SupportSQLiteStatement;
import com.example.cuida.data.model.User;
import java.lang.Class;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.Collections;
import java.util.List;
@SuppressWarnings({"unchecked", "deprecation"})
public final class UserDao_Impl implements UserDao {
private final RoomDatabase __db;
private final EntityInsertionAdapter<User> __insertionAdapterOfUser;
private final EntityDeletionOrUpdateAdapter<User> __updateAdapterOfUser;
private final SharedSQLiteStatement __preparedStmtOfDeleteAll;
public UserDao_Impl(@NonNull final RoomDatabase __db) {
this.__db = __db;
this.__insertionAdapterOfUser = new EntityInsertionAdapter<User>(__db) {
@Override
@NonNull
protected String createQuery() {
return "INSERT OR REPLACE INTO `users` (`uid`,`name`,`email`,`password`,`age`,`utenteNumber`) VALUES (nullif(?, 0),?,?,?,?,?)";
}
@Override
protected void bind(@NonNull final SupportSQLiteStatement statement, final User entity) {
statement.bindLong(1, entity.uid);
if (entity.name == null) {
statement.bindNull(2);
} else {
statement.bindString(2, entity.name);
}
if (entity.email == null) {
statement.bindNull(3);
} else {
statement.bindString(3, entity.email);
}
if (entity.password == null) {
statement.bindNull(4);
} else {
statement.bindString(4, entity.password);
}
statement.bindLong(5, entity.age);
if (entity.utenteNumber == null) {
statement.bindNull(6);
} else {
statement.bindString(6, entity.utenteNumber);
}
}
};
this.__updateAdapterOfUser = new EntityDeletionOrUpdateAdapter<User>(__db) {
@Override
@NonNull
protected String createQuery() {
return "UPDATE OR ABORT `users` SET `uid` = ?,`name` = ?,`email` = ?,`password` = ?,`age` = ?,`utenteNumber` = ? WHERE `uid` = ?";
}
@Override
protected void bind(@NonNull final SupportSQLiteStatement statement, final User entity) {
statement.bindLong(1, entity.uid);
if (entity.name == null) {
statement.bindNull(2);
} else {
statement.bindString(2, entity.name);
}
if (entity.email == null) {
statement.bindNull(3);
} else {
statement.bindString(3, entity.email);
}
if (entity.password == null) {
statement.bindNull(4);
} else {
statement.bindString(4, entity.password);
}
statement.bindLong(5, entity.age);
if (entity.utenteNumber == null) {
statement.bindNull(6);
} else {
statement.bindString(6, entity.utenteNumber);
}
statement.bindLong(7, entity.uid);
}
};
this.__preparedStmtOfDeleteAll = new SharedSQLiteStatement(__db) {
@Override
@NonNull
public String createQuery() {
final String _query = "delete from users";
return _query;
}
};
}
@Override
public void insert(final User user) {
__db.assertNotSuspendingTransaction();
__db.beginTransaction();
try {
__insertionAdapterOfUser.insert(user);
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
}
}
@Override
public void update(final User user) {
__db.assertNotSuspendingTransaction();
__db.beginTransaction();
try {
__updateAdapterOfUser.handle(user);
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
}
}
@Override
public void deleteAll() {
__db.assertNotSuspendingTransaction();
final SupportSQLiteStatement _stmt = __preparedStmtOfDeleteAll.acquire();
try {
__db.beginTransaction();
try {
_stmt.executeUpdateDelete();
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
}
} finally {
__preparedStmtOfDeleteAll.release(_stmt);
}
}
@Override
public User login(final String email, final String password) {
final String _sql = "SELECT * FROM users WHERE email = ? AND password = ? LIMIT 1";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 2);
int _argIndex = 1;
if (email == null) {
_statement.bindNull(_argIndex);
} else {
_statement.bindString(_argIndex, email);
}
_argIndex = 2;
if (password == null) {
_statement.bindNull(_argIndex);
} else {
_statement.bindString(_argIndex, password);
}
__db.assertNotSuspendingTransaction();
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
try {
final int _cursorIndexOfUid = CursorUtil.getColumnIndexOrThrow(_cursor, "uid");
final int _cursorIndexOfName = CursorUtil.getColumnIndexOrThrow(_cursor, "name");
final int _cursorIndexOfEmail = CursorUtil.getColumnIndexOrThrow(_cursor, "email");
final int _cursorIndexOfPassword = CursorUtil.getColumnIndexOrThrow(_cursor, "password");
final int _cursorIndexOfAge = CursorUtil.getColumnIndexOrThrow(_cursor, "age");
final int _cursorIndexOfUtenteNumber = CursorUtil.getColumnIndexOrThrow(_cursor, "utenteNumber");
final User _result;
if (_cursor.moveToFirst()) {
final String _tmpName;
if (_cursor.isNull(_cursorIndexOfName)) {
_tmpName = null;
} else {
_tmpName = _cursor.getString(_cursorIndexOfName);
}
final String _tmpEmail;
if (_cursor.isNull(_cursorIndexOfEmail)) {
_tmpEmail = null;
} else {
_tmpEmail = _cursor.getString(_cursorIndexOfEmail);
}
final String _tmpPassword;
if (_cursor.isNull(_cursorIndexOfPassword)) {
_tmpPassword = null;
} else {
_tmpPassword = _cursor.getString(_cursorIndexOfPassword);
}
final int _tmpAge;
_tmpAge = _cursor.getInt(_cursorIndexOfAge);
final String _tmpUtenteNumber;
if (_cursor.isNull(_cursorIndexOfUtenteNumber)) {
_tmpUtenteNumber = null;
} else {
_tmpUtenteNumber = _cursor.getString(_cursorIndexOfUtenteNumber);
}
_result = new User(_tmpName,_tmpEmail,_tmpPassword,_tmpAge,_tmpUtenteNumber);
_result.uid = _cursor.getInt(_cursorIndexOfUid);
} else {
_result = null;
}
return _result;
} finally {
_cursor.close();
_statement.release();
}
}
@Override
public User checkUser(final String email) {
final String _sql = "SELECT * FROM users WHERE email = ? LIMIT 1";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 1);
int _argIndex = 1;
if (email == null) {
_statement.bindNull(_argIndex);
} else {
_statement.bindString(_argIndex, email);
}
__db.assertNotSuspendingTransaction();
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
try {
final int _cursorIndexOfUid = CursorUtil.getColumnIndexOrThrow(_cursor, "uid");
final int _cursorIndexOfName = CursorUtil.getColumnIndexOrThrow(_cursor, "name");
final int _cursorIndexOfEmail = CursorUtil.getColumnIndexOrThrow(_cursor, "email");
final int _cursorIndexOfPassword = CursorUtil.getColumnIndexOrThrow(_cursor, "password");
final int _cursorIndexOfAge = CursorUtil.getColumnIndexOrThrow(_cursor, "age");
final int _cursorIndexOfUtenteNumber = CursorUtil.getColumnIndexOrThrow(_cursor, "utenteNumber");
final User _result;
if (_cursor.moveToFirst()) {
final String _tmpName;
if (_cursor.isNull(_cursorIndexOfName)) {
_tmpName = null;
} else {
_tmpName = _cursor.getString(_cursorIndexOfName);
}
final String _tmpEmail;
if (_cursor.isNull(_cursorIndexOfEmail)) {
_tmpEmail = null;
} else {
_tmpEmail = _cursor.getString(_cursorIndexOfEmail);
}
final String _tmpPassword;
if (_cursor.isNull(_cursorIndexOfPassword)) {
_tmpPassword = null;
} else {
_tmpPassword = _cursor.getString(_cursorIndexOfPassword);
}
final int _tmpAge;
_tmpAge = _cursor.getInt(_cursorIndexOfAge);
final String _tmpUtenteNumber;
if (_cursor.isNull(_cursorIndexOfUtenteNumber)) {
_tmpUtenteNumber = null;
} else {
_tmpUtenteNumber = _cursor.getString(_cursorIndexOfUtenteNumber);
}
_result = new User(_tmpName,_tmpEmail,_tmpPassword,_tmpAge,_tmpUtenteNumber);
_result.uid = _cursor.getInt(_cursorIndexOfUid);
} else {
_result = null;
}
return _result;
} finally {
_cursor.close();
_statement.release();
}
}
@NonNull
public static List<Class<?>> getRequiredConverters() {
return Collections.emptyList();
}
}

View File

@@ -0,0 +1,93 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.textfield.TextInputEditText;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class ActivityForgotPasswordBinding implements ViewBinding {
@NonNull
private final LinearLayout rootView;
@NonNull
public final TextView backToLogin;
@NonNull
public final TextInputEditText emailEditText;
@NonNull
public final MaterialButton resetButton;
private ActivityForgotPasswordBinding(@NonNull LinearLayout rootView,
@NonNull TextView backToLogin, @NonNull TextInputEditText emailEditText,
@NonNull MaterialButton resetButton) {
this.rootView = rootView;
this.backToLogin = backToLogin;
this.emailEditText = emailEditText;
this.resetButton = resetButton;
}
@Override
@NonNull
public LinearLayout getRoot() {
return rootView;
}
@NonNull
public static ActivityForgotPasswordBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ActivityForgotPasswordBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.activity_forgot_password, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ActivityForgotPasswordBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.back_to_login;
TextView backToLogin = ViewBindings.findChildViewById(rootView, id);
if (backToLogin == null) {
break missingId;
}
id = R.id.email_edit_text;
TextInputEditText emailEditText = ViewBindings.findChildViewById(rootView, id);
if (emailEditText == null) {
break missingId;
}
id = R.id.reset_button;
MaterialButton resetButton = ViewBindings.findChildViewById(rootView, id);
if (resetButton == null) {
break missingId;
}
return new ActivityForgotPasswordBinding((LinearLayout) rootView, backToLogin, emailEditText,
resetButton);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,114 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ScrollView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.textfield.TextInputEditText;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class ActivityLoginBinding implements ViewBinding {
@NonNull
private final ScrollView rootView;
@NonNull
public final TextInputEditText emailEditText;
@NonNull
public final TextView forgotPasswordLink;
@NonNull
public final MaterialButton loginButton;
@NonNull
public final TextInputEditText passwordEditText;
@NonNull
public final TextView registerLink;
private ActivityLoginBinding(@NonNull ScrollView rootView,
@NonNull TextInputEditText emailEditText, @NonNull TextView forgotPasswordLink,
@NonNull MaterialButton loginButton, @NonNull TextInputEditText passwordEditText,
@NonNull TextView registerLink) {
this.rootView = rootView;
this.emailEditText = emailEditText;
this.forgotPasswordLink = forgotPasswordLink;
this.loginButton = loginButton;
this.passwordEditText = passwordEditText;
this.registerLink = registerLink;
}
@Override
@NonNull
public ScrollView getRoot() {
return rootView;
}
@NonNull
public static ActivityLoginBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ActivityLoginBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.activity_login, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ActivityLoginBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.email_edit_text;
TextInputEditText emailEditText = ViewBindings.findChildViewById(rootView, id);
if (emailEditText == null) {
break missingId;
}
id = R.id.forgot_password_link;
TextView forgotPasswordLink = ViewBindings.findChildViewById(rootView, id);
if (forgotPasswordLink == null) {
break missingId;
}
id = R.id.login_button;
MaterialButton loginButton = ViewBindings.findChildViewById(rootView, id);
if (loginButton == null) {
break missingId;
}
id = R.id.password_edit_text;
TextInputEditText passwordEditText = ViewBindings.findChildViewById(rootView, id);
if (passwordEditText == null) {
break missingId;
}
id = R.id.register_link;
TextView registerLink = ViewBindings.findChildViewById(rootView, id);
if (registerLink == null) {
break missingId;
}
return new ActivityLoginBinding((ScrollView) rootView, emailEditText, forgotPasswordLink,
loginButton, passwordEditText, registerLink);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,69 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class ActivityMainBinding implements ViewBinding {
@NonNull
private final ConstraintLayout rootView;
@NonNull
public final BottomNavigationView navView;
private ActivityMainBinding(@NonNull ConstraintLayout rootView,
@NonNull BottomNavigationView navView) {
this.rootView = rootView;
this.navView = navView;
}
@Override
@NonNull
public ConstraintLayout getRoot() {
return rootView;
}
@NonNull
public static ActivityMainBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ActivityMainBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.activity_main, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ActivityMainBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.nav_view;
BottomNavigationView navView = ViewBindings.findChildViewById(rootView, id);
if (navView == null) {
break missingId;
}
return new ActivityMainBinding((ConstraintLayout) rootView, navView);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,135 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ScrollView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.textfield.TextInputEditText;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class ActivityRegisterBinding implements ViewBinding {
@NonNull
private final ScrollView rootView;
@NonNull
public final TextInputEditText ageEditText;
@NonNull
public final TextInputEditText emailEditText;
@NonNull
public final TextView loginLink;
@NonNull
public final TextInputEditText nameEditText;
@NonNull
public final TextInputEditText passwordEditText;
@NonNull
public final MaterialButton registerButton;
@NonNull
public final TextInputEditText utenteEditText;
private ActivityRegisterBinding(@NonNull ScrollView rootView,
@NonNull TextInputEditText ageEditText, @NonNull TextInputEditText emailEditText,
@NonNull TextView loginLink, @NonNull TextInputEditText nameEditText,
@NonNull TextInputEditText passwordEditText, @NonNull MaterialButton registerButton,
@NonNull TextInputEditText utenteEditText) {
this.rootView = rootView;
this.ageEditText = ageEditText;
this.emailEditText = emailEditText;
this.loginLink = loginLink;
this.nameEditText = nameEditText;
this.passwordEditText = passwordEditText;
this.registerButton = registerButton;
this.utenteEditText = utenteEditText;
}
@Override
@NonNull
public ScrollView getRoot() {
return rootView;
}
@NonNull
public static ActivityRegisterBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ActivityRegisterBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.activity_register, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ActivityRegisterBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.age_edit_text;
TextInputEditText ageEditText = ViewBindings.findChildViewById(rootView, id);
if (ageEditText == null) {
break missingId;
}
id = R.id.email_edit_text;
TextInputEditText emailEditText = ViewBindings.findChildViewById(rootView, id);
if (emailEditText == null) {
break missingId;
}
id = R.id.login_link;
TextView loginLink = ViewBindings.findChildViewById(rootView, id);
if (loginLink == null) {
break missingId;
}
id = R.id.name_edit_text;
TextInputEditText nameEditText = ViewBindings.findChildViewById(rootView, id);
if (nameEditText == null) {
break missingId;
}
id = R.id.password_edit_text;
TextInputEditText passwordEditText = ViewBindings.findChildViewById(rootView, id);
if (passwordEditText == null) {
break missingId;
}
id = R.id.register_button;
MaterialButton registerButton = ViewBindings.findChildViewById(rootView, id);
if (registerButton == null) {
break missingId;
}
id = R.id.utente_edit_text;
TextInputEditText utenteEditText = ViewBindings.findChildViewById(rootView, id);
if (utenteEditText == null) {
break missingId;
}
return new ActivityRegisterBinding((ScrollView) rootView, ageEditText, emailEditText,
loginLink, nameEditText, passwordEditText, registerButton, utenteEditText);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,134 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ScrollView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.textfield.TextInputEditText;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class DialogEditProfileBinding implements ViewBinding {
@NonNull
private final ScrollView rootView;
@NonNull
public final MaterialButton buttonCancel;
@NonNull
public final MaterialButton buttonSave;
@NonNull
public final TextInputEditText editAge;
@NonNull
public final TextInputEditText editEmail;
@NonNull
public final TextInputEditText editName;
@NonNull
public final TextInputEditText editPassword;
@NonNull
public final TextInputEditText editUtente;
private DialogEditProfileBinding(@NonNull ScrollView rootView,
@NonNull MaterialButton buttonCancel, @NonNull MaterialButton buttonSave,
@NonNull TextInputEditText editAge, @NonNull TextInputEditText editEmail,
@NonNull TextInputEditText editName, @NonNull TextInputEditText editPassword,
@NonNull TextInputEditText editUtente) {
this.rootView = rootView;
this.buttonCancel = buttonCancel;
this.buttonSave = buttonSave;
this.editAge = editAge;
this.editEmail = editEmail;
this.editName = editName;
this.editPassword = editPassword;
this.editUtente = editUtente;
}
@Override
@NonNull
public ScrollView getRoot() {
return rootView;
}
@NonNull
public static DialogEditProfileBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static DialogEditProfileBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.dialog_edit_profile, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static DialogEditProfileBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.button_cancel;
MaterialButton buttonCancel = ViewBindings.findChildViewById(rootView, id);
if (buttonCancel == null) {
break missingId;
}
id = R.id.button_save;
MaterialButton buttonSave = ViewBindings.findChildViewById(rootView, id);
if (buttonSave == null) {
break missingId;
}
id = R.id.edit_age;
TextInputEditText editAge = ViewBindings.findChildViewById(rootView, id);
if (editAge == null) {
break missingId;
}
id = R.id.edit_email;
TextInputEditText editEmail = ViewBindings.findChildViewById(rootView, id);
if (editEmail == null) {
break missingId;
}
id = R.id.edit_name;
TextInputEditText editName = ViewBindings.findChildViewById(rootView, id);
if (editName == null) {
break missingId;
}
id = R.id.edit_password;
TextInputEditText editPassword = ViewBindings.findChildViewById(rootView, id);
if (editPassword == null) {
break missingId;
}
id = R.id.edit_utente;
TextInputEditText editUtente = ViewBindings.findChildViewById(rootView, id);
if (editUtente == null) {
break missingId;
}
return new DialogEditProfileBinding((ScrollView) rootView, buttonCancel, buttonSave, editAge,
editEmail, editName, editPassword, editUtente);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,93 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class FragmentAppointmentsBinding implements ViewBinding {
@NonNull
private final FrameLayout rootView;
@NonNull
public final FloatingActionButton fabAddAppointment;
@NonNull
public final RecyclerView recyclerAppointmentsFuture;
@NonNull
public final RecyclerView recyclerAppointmentsPast;
private FragmentAppointmentsBinding(@NonNull FrameLayout rootView,
@NonNull FloatingActionButton fabAddAppointment,
@NonNull RecyclerView recyclerAppointmentsFuture,
@NonNull RecyclerView recyclerAppointmentsPast) {
this.rootView = rootView;
this.fabAddAppointment = fabAddAppointment;
this.recyclerAppointmentsFuture = recyclerAppointmentsFuture;
this.recyclerAppointmentsPast = recyclerAppointmentsPast;
}
@Override
@NonNull
public FrameLayout getRoot() {
return rootView;
}
@NonNull
public static FragmentAppointmentsBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static FragmentAppointmentsBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.fragment_appointments, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static FragmentAppointmentsBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.fab_add_appointment;
FloatingActionButton fabAddAppointment = ViewBindings.findChildViewById(rootView, id);
if (fabAddAppointment == null) {
break missingId;
}
id = R.id.recycler_appointments_future;
RecyclerView recyclerAppointmentsFuture = ViewBindings.findChildViewById(rootView, id);
if (recyclerAppointmentsFuture == null) {
break missingId;
}
id = R.id.recycler_appointments_past;
RecyclerView recyclerAppointmentsPast = ViewBindings.findChildViewById(rootView, id);
if (recyclerAppointmentsPast == null) {
break missingId;
}
return new FragmentAppointmentsBinding((FrameLayout) rootView, fabAddAppointment,
recyclerAppointmentsFuture, recyclerAppointmentsPast);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,114 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.card.MaterialCardView;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class FragmentHomeBinding implements ViewBinding {
@NonNull
private final ConstraintLayout rootView;
@NonNull
public final MaterialButton buttonBookAppointment;
@NonNull
public final MaterialCardView cardNextMedication;
@NonNull
public final TextView nextMedName;
@NonNull
public final TextView nextMedTime;
@NonNull
public final TextView textGreeting;
private FragmentHomeBinding(@NonNull ConstraintLayout rootView,
@NonNull MaterialButton buttonBookAppointment, @NonNull MaterialCardView cardNextMedication,
@NonNull TextView nextMedName, @NonNull TextView nextMedTime,
@NonNull TextView textGreeting) {
this.rootView = rootView;
this.buttonBookAppointment = buttonBookAppointment;
this.cardNextMedication = cardNextMedication;
this.nextMedName = nextMedName;
this.nextMedTime = nextMedTime;
this.textGreeting = textGreeting;
}
@Override
@NonNull
public ConstraintLayout getRoot() {
return rootView;
}
@NonNull
public static FragmentHomeBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static FragmentHomeBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.fragment_home, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static FragmentHomeBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.button_book_appointment;
MaterialButton buttonBookAppointment = ViewBindings.findChildViewById(rootView, id);
if (buttonBookAppointment == null) {
break missingId;
}
id = R.id.card_next_medication;
MaterialCardView cardNextMedication = ViewBindings.findChildViewById(rootView, id);
if (cardNextMedication == null) {
break missingId;
}
id = R.id.next_med_name;
TextView nextMedName = ViewBindings.findChildViewById(rootView, id);
if (nextMedName == null) {
break missingId;
}
id = R.id.next_med_time;
TextView nextMedTime = ViewBindings.findChildViewById(rootView, id);
if (nextMedTime == null) {
break missingId;
}
id = R.id.text_greeting;
TextView textGreeting = ViewBindings.findChildViewById(rootView, id);
if (textGreeting == null) {
break missingId;
}
return new FragmentHomeBinding((ConstraintLayout) rootView, buttonBookAppointment,
cardNextMedication, nextMedName, nextMedTime, textGreeting);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,69 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class FragmentMedicationBinding implements ViewBinding {
@NonNull
private final LinearLayout rootView;
@NonNull
public final RecyclerView recyclerMedication;
private FragmentMedicationBinding(@NonNull LinearLayout rootView,
@NonNull RecyclerView recyclerMedication) {
this.rootView = rootView;
this.recyclerMedication = recyclerMedication;
}
@Override
@NonNull
public LinearLayout getRoot() {
return rootView;
}
@NonNull
public static FragmentMedicationBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static FragmentMedicationBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.fragment_medication, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static FragmentMedicationBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.recycler_medication;
RecyclerView recyclerMedication = ViewBindings.findChildViewById(rootView, id);
if (recyclerMedication == null) {
break missingId;
}
return new FragmentMedicationBinding((LinearLayout) rootView, recyclerMedication);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,123 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class FragmentProfileBinding implements ViewBinding {
@NonNull
private final LinearLayout rootView;
@NonNull
public final MaterialButton buttonEditProfile;
@NonNull
public final MaterialButton buttonLogout;
@NonNull
public final TextView profileAge;
@NonNull
public final TextView profileEmail;
@NonNull
public final TextView profileName;
@NonNull
public final TextView profileUtente;
private FragmentProfileBinding(@NonNull LinearLayout rootView,
@NonNull MaterialButton buttonEditProfile, @NonNull MaterialButton buttonLogout,
@NonNull TextView profileAge, @NonNull TextView profileEmail, @NonNull TextView profileName,
@NonNull TextView profileUtente) {
this.rootView = rootView;
this.buttonEditProfile = buttonEditProfile;
this.buttonLogout = buttonLogout;
this.profileAge = profileAge;
this.profileEmail = profileEmail;
this.profileName = profileName;
this.profileUtente = profileUtente;
}
@Override
@NonNull
public LinearLayout getRoot() {
return rootView;
}
@NonNull
public static FragmentProfileBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static FragmentProfileBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.fragment_profile, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static FragmentProfileBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.button_edit_profile;
MaterialButton buttonEditProfile = ViewBindings.findChildViewById(rootView, id);
if (buttonEditProfile == null) {
break missingId;
}
id = R.id.button_logout;
MaterialButton buttonLogout = ViewBindings.findChildViewById(rootView, id);
if (buttonLogout == null) {
break missingId;
}
id = R.id.profile_age;
TextView profileAge = ViewBindings.findChildViewById(rootView, id);
if (profileAge == null) {
break missingId;
}
id = R.id.profile_email;
TextView profileEmail = ViewBindings.findChildViewById(rootView, id);
if (profileEmail == null) {
break missingId;
}
id = R.id.profile_name;
TextView profileName = ViewBindings.findChildViewById(rootView, id);
if (profileName == null) {
break missingId;
}
id = R.id.profile_utente;
TextView profileUtente = ViewBindings.findChildViewById(rootView, id);
if (profileUtente == null) {
break missingId;
}
return new FragmentProfileBinding((LinearLayout) rootView, buttonEditProfile, buttonLogout,
profileAge, profileEmail, profileName, profileUtente);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,93 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.LinearLayout;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class FragmentScheduleAppointmentBinding implements ViewBinding {
@NonNull
private final LinearLayout rootView;
@NonNull
public final Button btnConfirmAppointment;
@NonNull
public final DatePicker datePicker;
@NonNull
public final RecyclerView recyclerTimeSlots;
private FragmentScheduleAppointmentBinding(@NonNull LinearLayout rootView,
@NonNull Button btnConfirmAppointment, @NonNull DatePicker datePicker,
@NonNull RecyclerView recyclerTimeSlots) {
this.rootView = rootView;
this.btnConfirmAppointment = btnConfirmAppointment;
this.datePicker = datePicker;
this.recyclerTimeSlots = recyclerTimeSlots;
}
@Override
@NonNull
public LinearLayout getRoot() {
return rootView;
}
@NonNull
public static FragmentScheduleAppointmentBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static FragmentScheduleAppointmentBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.fragment_schedule_appointment, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static FragmentScheduleAppointmentBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.btn_confirm_appointment;
Button btnConfirmAppointment = ViewBindings.findChildViewById(rootView, id);
if (btnConfirmAppointment == null) {
break missingId;
}
id = R.id.datePicker;
DatePicker datePicker = ViewBindings.findChildViewById(rootView, id);
if (datePicker == null) {
break missingId;
}
id = R.id.recycler_time_slots;
RecyclerView recyclerTimeSlots = ViewBindings.findChildViewById(rootView, id);
if (recyclerTimeSlots == null) {
break missingId;
}
return new FragmentScheduleAppointmentBinding((LinearLayout) rootView, btnConfirmAppointment,
datePicker, recyclerTimeSlots);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,125 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class FragmentSns24Binding implements ViewBinding {
@NonNull
private final LinearLayout rootView;
@NonNull
public final MaterialButton buttonCallSns;
@NonNull
public final Button buttonTriage;
@NonNull
public final CheckBox checkBreath;
@NonNull
public final CheckBox checkFever;
@NonNull
public final CheckBox checkPain;
@NonNull
public final TextView textTriageResult;
private FragmentSns24Binding(@NonNull LinearLayout rootView,
@NonNull MaterialButton buttonCallSns, @NonNull Button buttonTriage,
@NonNull CheckBox checkBreath, @NonNull CheckBox checkFever, @NonNull CheckBox checkPain,
@NonNull TextView textTriageResult) {
this.rootView = rootView;
this.buttonCallSns = buttonCallSns;
this.buttonTriage = buttonTriage;
this.checkBreath = checkBreath;
this.checkFever = checkFever;
this.checkPain = checkPain;
this.textTriageResult = textTriageResult;
}
@Override
@NonNull
public LinearLayout getRoot() {
return rootView;
}
@NonNull
public static FragmentSns24Binding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static FragmentSns24Binding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.fragment_sns24, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static FragmentSns24Binding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.button_call_sns;
MaterialButton buttonCallSns = ViewBindings.findChildViewById(rootView, id);
if (buttonCallSns == null) {
break missingId;
}
id = R.id.button_triage;
Button buttonTriage = ViewBindings.findChildViewById(rootView, id);
if (buttonTriage == null) {
break missingId;
}
id = R.id.check_breath;
CheckBox checkBreath = ViewBindings.findChildViewById(rootView, id);
if (checkBreath == null) {
break missingId;
}
id = R.id.check_fever;
CheckBox checkFever = ViewBindings.findChildViewById(rootView, id);
if (checkFever == null) {
break missingId;
}
id = R.id.check_pain;
CheckBox checkPain = ViewBindings.findChildViewById(rootView, id);
if (checkPain == null) {
break missingId;
}
id = R.id.text_triage_result;
TextView textTriageResult = ViewBindings.findChildViewById(rootView, id);
if (textTriageResult == null) {
break missingId;
}
return new FragmentSns24Binding((LinearLayout) rootView, buttonCallSns, buttonTriage,
checkBreath, checkFever, checkPain, textTriageResult);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,89 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.card.MaterialCardView;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class ItemAppointmentBinding implements ViewBinding {
@NonNull
private final MaterialCardView rootView;
@NonNull
public final TextView textDate;
@NonNull
public final TextView textTime;
@NonNull
public final TextView textType;
private ItemAppointmentBinding(@NonNull MaterialCardView rootView, @NonNull TextView textDate,
@NonNull TextView textTime, @NonNull TextView textType) {
this.rootView = rootView;
this.textDate = textDate;
this.textTime = textTime;
this.textType = textType;
}
@Override
@NonNull
public MaterialCardView getRoot() {
return rootView;
}
@NonNull
public static ItemAppointmentBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ItemAppointmentBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.item_appointment, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ItemAppointmentBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.text_date;
TextView textDate = ViewBindings.findChildViewById(rootView, id);
if (textDate == null) {
break missingId;
}
id = R.id.text_time;
TextView textTime = ViewBindings.findChildViewById(rootView, id);
if (textTime == null) {
break missingId;
}
id = R.id.text_type;
TextView textType = ViewBindings.findChildViewById(rootView, id);
if (textType == null) {
break missingId;
}
return new ItemAppointmentBinding((MaterialCardView) rootView, textDate, textTime, textType);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,112 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.card.MaterialCardView;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class ItemMedicationBinding implements ViewBinding {
@NonNull
private final MaterialCardView rootView;
@NonNull
public final CheckBox checkboxTaken;
@NonNull
public final TextView textMedDosage;
@NonNull
public final TextView textMedName;
@NonNull
public final TextView textMedNotes;
@NonNull
public final TextView textMedTime;
private ItemMedicationBinding(@NonNull MaterialCardView rootView, @NonNull CheckBox checkboxTaken,
@NonNull TextView textMedDosage, @NonNull TextView textMedName,
@NonNull TextView textMedNotes, @NonNull TextView textMedTime) {
this.rootView = rootView;
this.checkboxTaken = checkboxTaken;
this.textMedDosage = textMedDosage;
this.textMedName = textMedName;
this.textMedNotes = textMedNotes;
this.textMedTime = textMedTime;
}
@Override
@NonNull
public MaterialCardView getRoot() {
return rootView;
}
@NonNull
public static ItemMedicationBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ItemMedicationBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.item_medication, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ItemMedicationBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.checkbox_taken;
CheckBox checkboxTaken = ViewBindings.findChildViewById(rootView, id);
if (checkboxTaken == null) {
break missingId;
}
id = R.id.text_med_dosage;
TextView textMedDosage = ViewBindings.findChildViewById(rootView, id);
if (textMedDosage == null) {
break missingId;
}
id = R.id.text_med_name;
TextView textMedName = ViewBindings.findChildViewById(rootView, id);
if (textMedName == null) {
break missingId;
}
id = R.id.text_med_notes;
TextView textMedNotes = ViewBindings.findChildViewById(rootView, id);
if (textMedNotes == null) {
break missingId;
}
id = R.id.text_med_time;
TextView textMedTime = ViewBindings.findChildViewById(rootView, id);
if (textMedTime == null) {
break missingId;
}
return new ItemMedicationBinding((MaterialCardView) rootView, checkboxTaken, textMedDosage,
textMedName, textMedNotes, textMedTime);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,59 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import java.lang.NullPointerException;
import java.lang.Override;
public final class ItemTimeSlotBinding implements ViewBinding {
@NonNull
private final MaterialButton rootView;
@NonNull
public final MaterialButton btnTimeSlot;
private ItemTimeSlotBinding(@NonNull MaterialButton rootView,
@NonNull MaterialButton btnTimeSlot) {
this.rootView = rootView;
this.btnTimeSlot = btnTimeSlot;
}
@Override
@NonNull
public MaterialButton getRoot() {
return rootView;
}
@NonNull
public static ItemTimeSlotBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ItemTimeSlotBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.item_time_slot, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ItemTimeSlotBinding bind(@NonNull View rootView) {
if (rootView == null) {
throw new NullPointerException("rootView");
}
MaterialButton btnTimeSlot = (MaterialButton) rootView;
return new ItemTimeSlotBinding((MaterialButton) rootView, btnTimeSlot);
}
}

View File

@@ -0,0 +1,43 @@
<navigation
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mobile_navigation"
app:startDestination="@+id/navigation_home" >
<fragment
android:id="@+id/navigation_home"
android:name="com.example.cuida.ui.home.HomeFragment"
android:label="@string/title_home"
tools:layout="@layout/fragment_home" />
<fragment
android:id="@+id/navigation_appointments"
android:name="com.example.cuida.ui.appointments.AppointmentsFragment"
android:label="@string/title_appointments"
tools:layout="@layout/fragment_appointments" >
<action
android:id="@+id/action_appointments_to_schedule"
app:destination="@id/navigation_schedule_appointment" />
</fragment>
<fragment
android:id="@+id/navigation_medication"
android:name="com.example.cuida.ui.medication.MedicationFragment"
android:label="@string/title_medication"
tools:layout="@layout/fragment_medication" />
<fragment
android:id="@+id/navigation_sns24"
android:name="com.example.cuida.ui.sns24.Sns24Fragment"
android:label="@string/title_sns24"
tools:layout="@layout/fragment_sns24" />
<fragment
android:id="@+id/navigation_profile"
android:name="com.example.cuida.ui.profile.ProfileFragment"
android:label="@string/title_profile"
tools:layout="@layout/fragment_profile" />
<fragment
android:id="@+id/navigation_schedule_appointment"
android:name="com.example.cuida.ui.schedule.ScheduleAppointmentFragment"
android:label="Agendar Consulta"
tools:layout="@layout/fragment_schedule_appointment" />
</navigation>

View File

@@ -0,0 +1 @@
{"room-compiler-2.6.1.jar (androidx.room:room-compiler:2.6.1)":"INCREMENTAL_AP"}

Binary file not shown.

View File

@@ -0,0 +1,21 @@
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.example.cuida",
"variantName": "debug",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 1,
"versionName": "1.0",
"outputFile": "app-debug.apk"
}
],
"elementType": "File",
"minSdkVersionForDexing": 24
}

View File

@@ -0,0 +1,2 @@
#- File Locator -
listingFile=../../../apk/debug/output-metadata.json

View File

@@ -0,0 +1,2 @@
appMetadataVersion=1.1
androidGradlePluginVersion=8.13.2

View File

@@ -0,0 +1,10 @@
{
"version": 3,
"artifactType": {
"type": "COMPATIBLE_SCREEN_MANIFEST",
"kind": "Directory"
},
"applicationId": "com.example.cuida",
"variantName": "debug",
"elements": []
}

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="activity_forgot_password" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/activity_forgot_password.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.LinearLayout"><Targets><Target tag="layout/activity_forgot_password_0" view="LinearLayout"><Expressions/><location startLine="1" startOffset="0" endLine="62" endOffset="14"/></Target><Target id="@+id/email_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="38" startOffset="8" endLine="43" endOffset="50"/></Target><Target id="@+id/reset_button" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="46" startOffset="4" endLine="52" endOffset="43"/></Target><Target id="@+id/back_to_login" view="TextView"><Expressions/><location startLine="54" startOffset="4" endLine="60" endOffset="33"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="activity_login" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/activity_login.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.ScrollView"><Targets><Target tag="layout/activity_login_0" view="ScrollView"><Expressions/><location startLine="1" startOffset="0" endLine="118" endOffset="12"/></Target><Target id="@+id/email_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="51" startOffset="20" endLine="56" endOffset="62"/></Target><Target id="@+id/password_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="65" startOffset="20" endLine="70" endOffset="58"/></Target><Target id="@+id/login_button" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="73" startOffset="16" endLine="81" endOffset="55"/></Target><Target id="@+id/forgot_password_link" view="TextView"><Expressions/><location startLine="83" startOffset="16" endLine="90" endOffset="42"/></Target><Target id="@+id/register_link" view="TextView"><Expressions/><location startLine="108" startOffset="12" endLine="114" endOffset="59"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="activity_main" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/activity_main.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="androidx.constraintlayout.widget.ConstraintLayout"><Targets><Target tag="layout/activity_main_0" view="androidx.constraintlayout.widget.ConstraintLayout"><Expressions/><location startLine="1" startOffset="0" endLine="32" endOffset="51"/></Target><Target id="@+id/nav_view" view="com.google.android.material.bottomnavigation.BottomNavigationView"><Expressions/><location startLine="20" startOffset="4" endLine="30" endOffset="42"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="activity_register" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/activity_register.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.ScrollView"><Targets><Target tag="layout/activity_register_0" view="ScrollView"><Expressions/><location startLine="1" startOffset="0" endLine="160" endOffset="12"/></Target><Target id="@+id/name_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="51" startOffset="20" endLine="56" endOffset="60"/></Target><Target id="@+id/age_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="72" startOffset="24" endLine="77" endOffset="56"/></Target><Target id="@+id/utente_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="87" startOffset="24" endLine="92" endOffset="56"/></Target><Target id="@+id/email_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="102" startOffset="20" endLine="107" endOffset="62"/></Target><Target id="@+id/password_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="116" startOffset="20" endLine="121" endOffset="58"/></Target><Target id="@+id/register_button" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="124" startOffset="16" endLine="132" endOffset="55"/></Target><Target id="@+id/login_link" view="TextView"><Expressions/><location startLine="147" startOffset="20" endLine="153" endOffset="67"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="dialog_edit_profile" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/dialog_edit_profile.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.ScrollView"><Targets><Target tag="layout/dialog_edit_profile_0" view="ScrollView"><Expressions/><location startLine="1" startOffset="0" endLine="107" endOffset="12"/></Target><Target id="@+id/edit_name" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="25" startOffset="12" endLine="30" endOffset="52"/></Target><Target id="@+id/edit_age" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="38" startOffset="12" endLine="43" endOffset="44"/></Target><Target id="@+id/edit_utente" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="51" startOffset="12" endLine="56" endOffset="44"/></Target><Target id="@+id/edit_email" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="64" startOffset="12" endLine="69" endOffset="54"/></Target><Target id="@+id/edit_password" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="77" startOffset="12" endLine="82" endOffset="50"/></Target><Target id="@+id/button_cancel" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="91" startOffset="12" endLine="97" endOffset="47"/></Target><Target id="@+id/button_save" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="99" startOffset="12" endLine="103" endOffset="39"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="fragment_appointments" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/fragment_appointments.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.FrameLayout"><Targets><Target tag="layout/fragment_appointments_0" view="FrameLayout"><Expressions/><location startLine="1" startOffset="0" endLine="57" endOffset="13"/></Target><Target id="@+id/recycler_appointments_future" view="androidx.recyclerview.widget.RecyclerView"><Expressions/><location startLine="28" startOffset="8" endLine="32" endOffset="47"/></Target><Target id="@+id/recycler_appointments_past" view="androidx.recyclerview.widget.RecyclerView"><Expressions/><location startLine="41" startOffset="8" endLine="44" endOffset="49"/></Target><Target id="@+id/fab_add_appointment" view="com.google.android.material.floatingactionbutton.FloatingActionButton"><Expressions/><location startLine="48" startOffset="4" endLine="55" endOffset="54"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="fragment_home" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/fragment_home.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="androidx.constraintlayout.widget.ConstraintLayout"><Targets><Target tag="layout/fragment_home_0" view="androidx.constraintlayout.widget.ConstraintLayout"><Expressions/><location startLine="1" startOffset="0" endLine="71" endOffset="51"/></Target><Target id="@+id/text_greeting" view="TextView"><Expressions/><location startLine="7" startOffset="4" endLine="16" endOffset="54"/></Target><Target id="@+id/card_next_medication" view="com.google.android.material.card.MaterialCardView"><Expressions/><location startLine="18" startOffset="4" endLine="58" endOffset="55"/></Target><Target id="@+id/next_med_name" view="TextView"><Expressions/><location startLine="41" startOffset="12" endLine="47" endOffset="47"/></Target><Target id="@+id/next_med_time" view="TextView"><Expressions/><location startLine="49" startOffset="12" endLine="56" endOffset="47"/></Target><Target id="@+id/button_book_appointment" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="60" startOffset="4" endLine="69" endOffset="71"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="fragment_medication" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/fragment_medication.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.LinearLayout"><Targets><Target tag="layout/fragment_medication_0" view="LinearLayout"><Expressions/><location startLine="1" startOffset="0" endLine="21" endOffset="14"/></Target><Target id="@+id/recycler_medication" view="androidx.recyclerview.widget.RecyclerView"><Expressions/><location startLine="16" startOffset="4" endLine="19" endOffset="45"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="fragment_profile" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/fragment_profile.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.LinearLayout"><Targets><Target tag="layout/fragment_profile_0" view="LinearLayout"><Expressions/><location startLine="1" startOffset="0" endLine="125" endOffset="14"/></Target><Target id="@+id/profile_name" view="TextView"><Expressions/><location startLine="31" startOffset="12" endLine="39" endOffset="50"/></Target><Target id="@+id/profile_email" view="TextView"><Expressions/><location startLine="41" startOffset="12" endLine="48" endOffset="51"/></Target><Target id="@+id/profile_age" view="TextView"><Expressions/><location startLine="70" startOffset="16" endLine="77" endOffset="60"/></Target><Target id="@+id/profile_utente" view="TextView"><Expressions/><location startLine="93" startOffset="16" endLine="100" endOffset="60"/></Target><Target id="@+id/button_edit_profile" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="106" startOffset="4" endLine="113" endOffset="56"/></Target><Target id="@+id/button_logout" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="115" startOffset="4" endLine="123" endOffset="32"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="fragment_schedule_appointment" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/fragment_schedule_appointment.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.LinearLayout"><Targets><Target tag="layout/fragment_schedule_appointment_0" view="LinearLayout"><Expressions/><location startLine="1" startOffset="0" endLine="54" endOffset="14"/></Target><Target id="@+id/datePicker" view="DatePicker"><Expressions/><location startLine="24" startOffset="4" endLine="31" endOffset="43"/></Target><Target id="@+id/recycler_time_slots" view="androidx.recyclerview.widget.RecyclerView"><Expressions/><location startLine="41" startOffset="4" endLine="46" endOffset="43"/></Target><Target id="@+id/btn_confirm_appointment" view="Button"><Expressions/><location startLine="48" startOffset="4" endLine="52" endOffset="45"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="fragment_sns24" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/fragment_sns24.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.LinearLayout"><Targets><Target tag="layout/fragment_sns24_0" view="LinearLayout"><Expressions/><location startLine="1" startOffset="0" endLine="94" endOffset="14"/></Target><Target id="@+id/button_call_sns" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="18" startOffset="4" endLine="27" endOffset="43"/></Target><Target id="@+id/check_fever" view="CheckBox"><Expressions/><location startLine="56" startOffset="12" endLine="60" endOffset="51"/></Target><Target id="@+id/check_breath" view="CheckBox"><Expressions/><location startLine="62" startOffset="12" endLine="66" endOffset="56"/></Target><Target id="@+id/check_pain" view="CheckBox"><Expressions/><location startLine="68" startOffset="12" endLine="72" endOffset="44"/></Target><Target id="@+id/button_triage" view="Button"><Expressions/><location startLine="74" startOffset="12" endLine="79" endOffset="48"/></Target><Target id="@+id/text_triage_result" view="TextView"><Expressions/><location startLine="81" startOffset="12" endLine="89" endOffset="41"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="item_appointment" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/item_appointment.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="com.google.android.material.card.MaterialCardView"><Targets><Target tag="layout/item_appointment_0" view="com.google.android.material.card.MaterialCardView"><Expressions/><location startLine="1" startOffset="0" endLine="45" endOffset="51"/></Target><Target id="@+id/text_type" view="TextView"><Expressions/><location startLine="15" startOffset="8" endLine="22" endOffset="53"/></Target><Target id="@+id/text_date" view="TextView"><Expressions/><location startLine="30" startOffset="12" endLine="35" endOffset="48"/></Target><Target id="@+id/text_time" view="TextView"><Expressions/><location startLine="37" startOffset="12" endLine="42" endOffset="43"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="item_medication" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/item_medication.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="com.google.android.material.card.MaterialCardView"><Targets><Target tag="layout/item_medication_0" view="com.google.android.material.card.MaterialCardView"><Expressions/><location startLine="1" startOffset="0" endLine="72" endOffset="51"/></Target><Target id="@+id/text_med_name" view="TextView"><Expressions/><location startLine="29" startOffset="12" endLine="36" endOffset="57"/></Target><Target id="@+id/text_med_dosage" view="TextView"><Expressions/><location startLine="38" startOffset="12" endLine="43" endOffset="47"/></Target><Target id="@+id/text_med_notes" view="TextView"><Expressions/><location startLine="45" startOffset="12" endLine="52" endOffset="47"/></Target><Target id="@+id/text_med_time" view="TextView"><Expressions/><location startLine="55" startOffset="8" endLine="63" endOffset="44"/></Target><Target id="@+id/checkbox_taken" view="CheckBox"><Expressions/><location startLine="65" startOffset="8" endLine="69" endOffset="54"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="item_time_slot" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/item_time_slot.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="com.google.android.material.button.MaterialButton" rootNodeViewId="@+id/btn_time_slot"><Targets><Target id="@+id/btn_time_slot" tag="layout/item_time_slot_0" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="1" startOffset="0" endLine="7" endOffset="67"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="activity_forgot_password" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/activity_forgot_password.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.LinearLayout"><Targets><Target tag="layout/activity_forgot_password_0" view="LinearLayout"><Expressions/><location startLine="1" startOffset="0" endLine="62" endOffset="14"/></Target><Target id="@+id/email_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="38" startOffset="8" endLine="43" endOffset="50"/></Target><Target id="@+id/reset_button" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="46" startOffset="4" endLine="52" endOffset="43"/></Target><Target id="@+id/back_to_login" view="TextView"><Expressions/><location startLine="54" startOffset="4" endLine="60" endOffset="33"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="activity_login" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/activity_login.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.ScrollView"><Targets><Target tag="layout/activity_login_0" view="ScrollView"><Expressions/><location startLine="1" startOffset="0" endLine="118" endOffset="12"/></Target><Target id="@+id/email_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="51" startOffset="20" endLine="56" endOffset="62"/></Target><Target id="@+id/password_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="65" startOffset="20" endLine="70" endOffset="58"/></Target><Target id="@+id/login_button" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="73" startOffset="16" endLine="81" endOffset="55"/></Target><Target id="@+id/forgot_password_link" view="TextView"><Expressions/><location startLine="83" startOffset="16" endLine="90" endOffset="42"/></Target><Target id="@+id/register_link" view="TextView"><Expressions/><location startLine="108" startOffset="12" endLine="114" endOffset="59"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="activity_main" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/activity_main.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="androidx.constraintlayout.widget.ConstraintLayout"><Targets><Target tag="layout/activity_main_0" view="androidx.constraintlayout.widget.ConstraintLayout"><Expressions/><location startLine="1" startOffset="0" endLine="32" endOffset="51"/></Target><Target id="@+id/nav_view" view="com.google.android.material.bottomnavigation.BottomNavigationView"><Expressions/><location startLine="20" startOffset="4" endLine="30" endOffset="42"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="activity_register" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/activity_register.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.ScrollView"><Targets><Target tag="layout/activity_register_0" view="ScrollView"><Expressions/><location startLine="1" startOffset="0" endLine="160" endOffset="12"/></Target><Target id="@+id/name_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="51" startOffset="20" endLine="56" endOffset="60"/></Target><Target id="@+id/age_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="72" startOffset="24" endLine="77" endOffset="56"/></Target><Target id="@+id/utente_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="87" startOffset="24" endLine="92" endOffset="56"/></Target><Target id="@+id/email_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="102" startOffset="20" endLine="107" endOffset="62"/></Target><Target id="@+id/password_edit_text" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="116" startOffset="20" endLine="121" endOffset="58"/></Target><Target id="@+id/register_button" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="124" startOffset="16" endLine="132" endOffset="55"/></Target><Target id="@+id/login_link" view="TextView"><Expressions/><location startLine="147" startOffset="20" endLine="153" endOffset="67"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="dialog_edit_profile" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/dialog_edit_profile.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.ScrollView"><Targets><Target tag="layout/dialog_edit_profile_0" view="ScrollView"><Expressions/><location startLine="1" startOffset="0" endLine="107" endOffset="12"/></Target><Target id="@+id/edit_name" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="25" startOffset="12" endLine="30" endOffset="52"/></Target><Target id="@+id/edit_age" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="38" startOffset="12" endLine="43" endOffset="44"/></Target><Target id="@+id/edit_utente" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="51" startOffset="12" endLine="56" endOffset="44"/></Target><Target id="@+id/edit_email" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="64" startOffset="12" endLine="69" endOffset="54"/></Target><Target id="@+id/edit_password" view="com.google.android.material.textfield.TextInputEditText"><Expressions/><location startLine="77" startOffset="12" endLine="82" endOffset="50"/></Target><Target id="@+id/button_cancel" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="91" startOffset="12" endLine="97" endOffset="47"/></Target><Target id="@+id/button_save" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="99" startOffset="12" endLine="103" endOffset="39"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="fragment_appointments" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/fragment_appointments.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.FrameLayout"><Targets><Target tag="layout/fragment_appointments_0" view="FrameLayout"><Expressions/><location startLine="1" startOffset="0" endLine="57" endOffset="13"/></Target><Target id="@+id/recycler_appointments_future" view="androidx.recyclerview.widget.RecyclerView"><Expressions/><location startLine="28" startOffset="8" endLine="32" endOffset="47"/></Target><Target id="@+id/recycler_appointments_past" view="androidx.recyclerview.widget.RecyclerView"><Expressions/><location startLine="41" startOffset="8" endLine="44" endOffset="49"/></Target><Target id="@+id/fab_add_appointment" view="com.google.android.material.floatingactionbutton.FloatingActionButton"><Expressions/><location startLine="48" startOffset="4" endLine="55" endOffset="54"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="fragment_home" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/fragment_home.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="androidx.constraintlayout.widget.ConstraintLayout"><Targets><Target tag="layout/fragment_home_0" view="androidx.constraintlayout.widget.ConstraintLayout"><Expressions/><location startLine="1" startOffset="0" endLine="71" endOffset="51"/></Target><Target id="@+id/text_greeting" view="TextView"><Expressions/><location startLine="7" startOffset="4" endLine="16" endOffset="54"/></Target><Target id="@+id/card_next_medication" view="com.google.android.material.card.MaterialCardView"><Expressions/><location startLine="18" startOffset="4" endLine="58" endOffset="55"/></Target><Target id="@+id/next_med_name" view="TextView"><Expressions/><location startLine="41" startOffset="12" endLine="47" endOffset="47"/></Target><Target id="@+id/next_med_time" view="TextView"><Expressions/><location startLine="49" startOffset="12" endLine="56" endOffset="47"/></Target><Target id="@+id/button_book_appointment" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="60" startOffset="4" endLine="69" endOffset="71"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="fragment_medication" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/fragment_medication.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.LinearLayout"><Targets><Target tag="layout/fragment_medication_0" view="LinearLayout"><Expressions/><location startLine="1" startOffset="0" endLine="21" endOffset="14"/></Target><Target id="@+id/recycler_medication" view="androidx.recyclerview.widget.RecyclerView"><Expressions/><location startLine="16" startOffset="4" endLine="19" endOffset="45"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="fragment_profile" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/fragment_profile.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.LinearLayout"><Targets><Target tag="layout/fragment_profile_0" view="LinearLayout"><Expressions/><location startLine="1" startOffset="0" endLine="125" endOffset="14"/></Target><Target id="@+id/profile_name" view="TextView"><Expressions/><location startLine="31" startOffset="12" endLine="39" endOffset="50"/></Target><Target id="@+id/profile_email" view="TextView"><Expressions/><location startLine="41" startOffset="12" endLine="48" endOffset="51"/></Target><Target id="@+id/profile_age" view="TextView"><Expressions/><location startLine="70" startOffset="16" endLine="77" endOffset="60"/></Target><Target id="@+id/profile_utente" view="TextView"><Expressions/><location startLine="93" startOffset="16" endLine="100" endOffset="60"/></Target><Target id="@+id/button_edit_profile" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="106" startOffset="4" endLine="113" endOffset="56"/></Target><Target id="@+id/button_logout" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="115" startOffset="4" endLine="123" endOffset="32"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="fragment_schedule_appointment" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/fragment_schedule_appointment.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.LinearLayout"><Targets><Target tag="layout/fragment_schedule_appointment_0" view="LinearLayout"><Expressions/><location startLine="1" startOffset="0" endLine="54" endOffset="14"/></Target><Target id="@+id/datePicker" view="DatePicker"><Expressions/><location startLine="24" startOffset="4" endLine="31" endOffset="43"/></Target><Target id="@+id/recycler_time_slots" view="androidx.recyclerview.widget.RecyclerView"><Expressions/><location startLine="41" startOffset="4" endLine="46" endOffset="43"/></Target><Target id="@+id/btn_confirm_appointment" view="Button"><Expressions/><location startLine="48" startOffset="4" endLine="52" endOffset="45"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="fragment_sns24" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/fragment_sns24.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.LinearLayout"><Targets><Target tag="layout/fragment_sns24_0" view="LinearLayout"><Expressions/><location startLine="1" startOffset="0" endLine="94" endOffset="14"/></Target><Target id="@+id/button_call_sns" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="18" startOffset="4" endLine="27" endOffset="43"/></Target><Target id="@+id/check_fever" view="CheckBox"><Expressions/><location startLine="56" startOffset="12" endLine="60" endOffset="51"/></Target><Target id="@+id/check_breath" view="CheckBox"><Expressions/><location startLine="62" startOffset="12" endLine="66" endOffset="56"/></Target><Target id="@+id/check_pain" view="CheckBox"><Expressions/><location startLine="68" startOffset="12" endLine="72" endOffset="44"/></Target><Target id="@+id/button_triage" view="Button"><Expressions/><location startLine="74" startOffset="12" endLine="79" endOffset="48"/></Target><Target id="@+id/text_triage_result" view="TextView"><Expressions/><location startLine="81" startOffset="12" endLine="89" endOffset="41"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="item_appointment" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/item_appointment.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="com.google.android.material.card.MaterialCardView"><Targets><Target tag="layout/item_appointment_0" view="com.google.android.material.card.MaterialCardView"><Expressions/><location startLine="1" startOffset="0" endLine="45" endOffset="51"/></Target><Target id="@+id/text_type" view="TextView"><Expressions/><location startLine="15" startOffset="8" endLine="22" endOffset="53"/></Target><Target id="@+id/text_date" view="TextView"><Expressions/><location startLine="30" startOffset="12" endLine="35" endOffset="48"/></Target><Target id="@+id/text_time" view="TextView"><Expressions/><location startLine="37" startOffset="12" endLine="42" endOffset="43"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="item_medication" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/item_medication.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="com.google.android.material.card.MaterialCardView"><Targets><Target tag="layout/item_medication_0" view="com.google.android.material.card.MaterialCardView"><Expressions/><location startLine="1" startOffset="0" endLine="72" endOffset="51"/></Target><Target id="@+id/text_med_name" view="TextView"><Expressions/><location startLine="29" startOffset="12" endLine="36" endOffset="57"/></Target><Target id="@+id/text_med_dosage" view="TextView"><Expressions/><location startLine="38" startOffset="12" endLine="43" endOffset="47"/></Target><Target id="@+id/text_med_notes" view="TextView"><Expressions/><location startLine="45" startOffset="12" endLine="52" endOffset="47"/></Target><Target id="@+id/text_med_time" view="TextView"><Expressions/><location startLine="55" startOffset="8" endLine="63" endOffset="44"/></Target><Target id="@+id/checkbox_taken" view="CheckBox"><Expressions/><location startLine="65" startOffset="8" endLine="69" endOffset="54"/></Target></Targets></Layout>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="item_time_slot" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/item_time_slot.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="com.google.android.material.button.MaterialButton" rootNodeViewId="@+id/btn_time_slot"><Targets><Target id="@+id/btn_time_slot" tag="layout/item_time_slot_0" view="com.google.android.material.button.MaterialButton"><Expressions/><location startLine="1" startOffset="0" endLine="7" endOffset="67"/></Target></Targets></Layout>

Some files were not shown because too many files have changed in this diff Show More