Hello, welcome here bruh,
To run the code successfully do the following things
- clone the repo
- npm install after installing packages do this extra thing navigate to file build.gradle of the react-native-vision-camera package, which is typically located at node_modules/react-native-vision-camera/android directory of your project Find the line where the kotlin-gradle-plugin is declared. It should look something like this:
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
Replace $kotlin_version with the required version, which is 1.6.20 or higher, like so:
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20"
classpath "org.jetbrains.kotlin:kotlin-android-extensions:1.6.20"
(note in case after everything it is not working try deleting node_modules and reinstalling packages through npm install )
- make sure you have XAMPP start the xampp
- get to the XAMPP directory and htdocs folder place the three files of php in it, the files are currently in the repo
- get to phpmyadmin and create a new database of meter_reading
- create a table of records with 4 columns
- get to cmd now
- do ipconfig
- find your ip and place it in the links wherever fetch is used,
- mainly there are two pages where fetch is being used, AND those are ViewRecordsScreen, AddRecordScreen
💥 it should be working now
check db_connection.php file as well, there might be changes needed, if the code is not working yet