0% found this document useful (0 votes)
27 views

How To Make Build.

make build
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

How To Make Build.

make build
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

how to make build.

Open android studio


Click on file -> open -> select app repo
Open terminal
Go to main branch (git branch -> git checkout main(if not already on main branch))
Take pull (git pull)
After pull -> click 2 times on Shift key
Search config.kt & di.kt
Open these two files
In config.kt -> at line no. 8 -> private val API_SERVER_TYPE = ApiServer.master ->
you need to write(I have replaced production with master)
Scroll down to -> ApiServer.master -> {
baseUrl = "https://dev-api-master8.vedant.life/v2"
forgotPasswordUrl =
"https://dev-main-master8.vedant.life/en"
formURLDomain = "https://dev-main-master8.vedant.life"
}
Replace master8 with node where you want to pointing your build
Now copy base URL
Go to di.kt file val di = DI {
bind<Client>() with singleton(sync = false) { APIClient("https://dev-api-
master8.vedant.life/v2", isDebug, clientType, appContext) }
bind<KeyValueStore>() with singleton(sync = false)
{ KeyValueStoreImpl(appContext) }
bind<EncryptedKeyValueStore>() with singleton(sync = false)
{ KeyValueStoreImpl(appContext) }
bind<DeviceDataSource>() with provider { DeviceDataSourceImpl(appContext) }
}
and paste base url in double quote and save

Now choose or connect device with android studio


Click on run to install the build.

=======================================================

How to deploy master branch on testing node

Main website smoke testing

1. Go to deploy repo
2. on dev branch
3. take pull
4. go to local folder
5. Copy both files ddev & dstage in your system C:\Users\jyots
6. Copy path -> C:\Users\jyots\Documents\PAFrepo\deploy\local
7. Paste this in environment variable in Path
8. Click on apply
9. Go to Web-solution repo
10. Open git bash
11. Go to master branch
12. Take pull
13. Enter ddev.sh command
14. select node and enter
15. Check on GitHub in Action of web-solutions repo
16. After deployment you will get notification on discord.

=======================================================
Enrollment using old DAE

1. Email should be available in LMS contact


2. Go to Event -> Enrollment form (Old)
3. Fill details
4. Submit
5. Now open contact
6. New enrollment details (Amount & month) should be updated in contact profile and
list.

==========================================================

How to receive notification when PAF post from member site

1. Login in member
2. Go to Content -> Post -> Add post -> Publish -> Notification yes
3. Build and member should be deployed on same node - master8
4. Keep app in background
5. Run notification crone in postman
curl --request POST \
--url 'https://dev-api-master2.vedant.life/v2/notifications?=' \
--header 'Authorization: Bearer
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjYxMzg5MzYsInNlc3Npb25JZCI6ImRiNz
c5ZDEyLTU1ZTYtNGM5Yi04MmVlLTE0YjA1ZGE5YzJhZiIsInYiOjJ9.ERsKWn_81_kwiy_NwUboXv5zxkzN
f1zPOSoUROdnN0w'

replace token with logged in user token in app


6. getting 200 code
7. Check notification on app.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy