# App Deployment

### Android App Installation <a href="#android-app-installation" id="android-app-installation"></a>

1. You have to install Android Studio or VS code.
2. Than make sure you have installed [flutter sdk](https://mediacitydocs.gitbook.io/nexthour-app-documentation/installation/flutter-installation) in your system.
3. Import project in Android Studio or VS Code
4. Run command "flutter pub get"
5. Run command "flutter clean"
6. Make sure you have connected to **android device** or **AVD.**
7. Than go to inside **project directory/lib/services/constant.dart**
8. Enter your domain url eg: **<https://example.com/public/>**
9. Click Play button or run command "flutter run"
10. You can change your app icon from directory **android\app\src\main\res**
11. For generate these icons of different size use website <https://makeappicon.com/> For this you need to upload you icon of size 1536 X 1536
12. Your project is running now
13. To change your app package name
    * Run this command to change the package name.

      Copy

      ```
      flutter pub run change_app_package_name:main com.new.package.name
      ```
    * Where `com.new.package.name` is the new package name that you want for your app. replace it with any name you want
14. Change your app name **ctrl+shift+F** to **find quizly** than **ctrl+shift+R** to **replace** it with your app name

**To Change Your Domain Link**

Go to lib ->services-> constant.dart

```
class APIData {
// Replace with your domain link
 static const String domainLink = "YOUR_DOMIAN_LINK/public";
 static const String domainApiLink = domainLink+"api/";    
```

<figure><img src="https://851821020-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXkfxdGRqNrOvTfSSLq2F%2Fuploads%2FBcJrR5OmkrITeXtQGWm2%2Fimage.png?alt=media&#x26;token=f3773d82-8fd3-4274-993d-99c8f48f9023" alt=""><figcaption></figcaption></figure>

**To Change Your Launcher icon**

Go to android-> app-> src-> main ->res

<figure><img src="https://851821020-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXkfxdGRqNrOvTfSSLq2F%2Fuploads%2F7n3l5sonDwyFf9mH2fVE%2Fimage.png?alt=media&#x26;token=255270c8-1b6d-4435-b6ce-ad5ee4d97604" alt=""><figcaption></figcaption></figure>
