Skip to main content
Version: 4.1.8

Setup code on Android

If you don't use the demo provided by Icare don't forget to check the next steps. 

3.1 Add java files​

Take the java files android/app/src/main/java/ch/icare/smartidscan_flutter_demo/ and put them in android/app/src/main/java/com/yourcompany/foo

3.2 Update package names​

And then update in each file the package name with the package name of your project.

For example:

We replace in each 4 files the line :

package com.smartidscan_flutter_demo;

with

package your_package_name;

3.3 Add res files​

Take the res files in android/app/src/main/res to your project.

WARNING : Maybe some files or folders already exist, then you complete your existings one with the content of files.

3.4 Update package names​

And then update

  • scan_activity.xml
  • scan_fragment.xml

with the package name of your project.

3.5 Build android​

Let's check if the app build.

If all the previous tasks were completed in the right way, the build should pass.

To do so, launch : `

./android/gradlew