# App Code Setup

## Setup your domain link and keys

Enter your domain link and keys in the app code \
Go to project directory-> lib-> common-> apidata.dart

```
static const String domainLink = "ENTER YOUR DOMAIN LINK";
```

![](https://2292229091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiVlRcUd13Q0E7gPMHh%2Fuploads%2FgafSTcDJk6X4f4u9O5Yi%2Fimage.png?alt=media\&token=251b5996-3edf-49b5-8279-895ea5d347e9)

```
static const String appName = "ENTER YOUR APP NAME";
```

```
static const String secretKey = "ENTER YOUR SECRET KEY";
```

![](https://2292229091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiVlRcUd13Q0E7gPMHh%2Fuploads%2F46qSwG7r3HTUXfjr3hVV%2Fimage.png?alt=media\&token=7efaad0e-5224-40b9-8fc4-c83b10966532)

```
static const String googleDriveApi = 'ENTER YOUR GOOGLE DRIVE KEY';
```

```
static const String zoomAppKey = "ENTER YOUR ZOOM SDK APP KEY";
static const String zoomSecretKey = "ENTER YOUR ZOOM SDK APP SECRET KEY";
```

### **eClass App Deployment Video :**

{% embed url="https://youtu.be/mAN1lRwa-VU" %}

## App Icon&#x20;

Make your app icon from the below link and download the zip file. replace it at the path \
Go to project directory-> android-> app-> src-> main-> res\
[https://makeappicon.com/](https://makeappicon.com/)

![](https://2292229091-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MiVlRcUd13Q0E7gPMHh%2F-MlTBMSyYUm1EcbnSdGd%2F-MlTT53izjldUSU0tF5i%2Fimage.png?alt=media\&token=0a4385fe-6f0a-4c9e-8c20-98b8013d7eb5)

## Label Name&#x20;

To Change your App Label Name&#x20;

Go to project diretory/android/app/src/main/AndroidManifest.xml

```
<application
     android:label="ENTER YOUR APP NAME"
    android:usesCleartextTraffic="true"
     android:icon="@mipmap/ic_launcher">
```

## Package Name&#x20;

To change your app package name&#x20;

**ctrl+shift+F** to **find com.lolits.eclass** than **ctrl+shift+R** to **replace** it with your app package name

![](https://2292229091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiVlRcUd13Q0E7gPMHh%2Fuploads%2FOGrcndjMDXpUIaRI2HdV%2Fpackage%20name.png?alt=media\&token=94439e43-bc81-46b9-afa6-b566d7fde2fc)

## eClass properties file&#x20;

Change your app keystore password from **eclass.properties** file

Go to **android-> eclass.properties**

```
storePassword=password
keyPassword=password
keyAlias=appname
storeFile=appname.jks
```

{% hint style="info" %}
<mark style="color:red;">**NOTE:**</mark>**&#x20;This keystore password is just for example purpose. Create the keystore password according to your project.**
{% endhint %}

## jks file

To Create jks file for your app , run the command in the terminal&#x20;

\
1\. cd android\
2\. cd app\
3\. then run the command given below

android/app/

```
keytool -genkey -v -keystore appname.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias appname
```

{% hint style="info" %}
<mark style="color:red;">**NOTE:**</mark>**&#x20;**<mark style="color:blue;">**Before Run the above command ,check the**</mark>**&#x20;**<mark style="color:orange;">**appname.jks**</mark>**&#x20;**<mark style="color:blue;">**and**</mark>**&#x20;**<mark style="color:orange;">**appname**</mark>**&#x20;**<mark style="color:blue;">**in the command should be same as you created in eclass.properties file.**</mark>
{% endhint %}

## Google-services.json file

Add google-services.json file in the app code from [firebase console](google-login-and-facebook-login)

## Assets

1.  **Change App Images**&#x20;

    Go to project directory -> assets -> placeholder
2.  **Change App Logo**

    Go to project directory -> assets -> images

    change logo.png \[ 200 x60 px ] and logologin.png \[ 300 x90 px ] image

## Follow Steps mentioned below for IOS App Installation

1. Open your project folder in terminal and run this below commands
   * flutter clean
   * flutter pub get
2. After type “ cd ios ” in terminal this command take you in iOS directory of project then run this command “ pod install”.
3. After that go to the project and open iOS folder and open Runnerxcode.workspace file it will open a Xcode
4. Next step is to Go to file < workspace settings < select new build system.
5. After that navigate to product menu on top in Xcode, choose destination and select any simulator and run your project.
6. if project run properly then go back to terminal and run this command ‘flutter build ios’
7. after that goto same product menu and archive, this function will make a release apk
8. And you can release you app from archive menu and your app will be uploaded on.

{% hint style="info" %}
<mark style="color:red;">**NOTE:**</mark> <mark style="color:blue;">After running pub get, you must run the follow script to get Zoom SDK for the first time:</mark>

```shell
flutter pub run flutter_zoom_sdk:unzip_zoom_sdk
```
{% endhint %}
