-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.example
More file actions
110 lines (81 loc) · 4.14 KB
/
Copy path.env.example
File metadata and controls
110 lines (81 loc) · 4.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# =============================================================================
# StopTB Android App — Environment Configuration Template
# =============================================================================
# Copy this file to .env and fill in the actual values.
# DO NOT commit the actual .env file to version control.
#
# IMPORTANT: This is an Android (NDK/JNI) project.
# Sensitive values below are implemented in native C++ code via CMake.
# File: app/src/main/cpp/
# Class: app/src/main/java/.../utils/KeyUtils.kt
# =============================================================================
# -----------------------------------------------------------------------------
# 1. SERVER URLs (implemented in native C++ — KeyUtils.kt external functions)
# -----------------------------------------------------------------------------
# Main Amrit/TMC API base URL → KeyUtils.baseTMCUrl()
BASE_TMC_URL=https://your-amrit-server.example.com/
# ABHA (Ayushman Bharat Health Account) base URL → KeyUtils.baseAbhaUrl()
BASE_ABHA_URL=https://abha.example.com/
# ABHA token URL → KeyUtils.abhaTokenUrl()
ABHA_TOKEN_URL=https://abha.example.com/v1/sessions
# ABHA auth URL → KeyUtils.abhaAuthUrl()
ABHA_AUTH_URL=https://abha.example.com/v1/auth/
# Chat server URL → KeyUtils.chatUrl()
CHAT_URL=https://chat.example.com/
# -----------------------------------------------------------------------------
# 2. ABHA CLIENT CREDENTIALS (implemented in native C++)
# -----------------------------------------------------------------------------
# ABHA client ID → KeyUtils.abhaClientID()
ABHA_CLIENT_ID=your_abha_client_id_here
# ABHA client secret → KeyUtils.abhaClientSecret()
ABHA_CLIENT_SECRET=your_abha_client_secret_here
# Encrypted pass key → KeyUtils.encryptedPassKey()
ENCRYPTED_PASS_KEY=your_encrypted_pass_key_here
# -----------------------------------------------------------------------------
# 3. KEYSTORE (for release signing — keystore.properties)
# -----------------------------------------------------------------------------
# Path to the .jks keystore file (relative to project root)
KEYSTORE_FILE=keystore/stoptb-release.jks
# Keystore password
KEYSTORE_PASSWORD=your_keystore_password
# Key alias inside the keystore
KEY_ALIAS=your_key_alias
# Key password
KEY_PASSWORD=your_key_password
# -----------------------------------------------------------------------------
# 4. FIREBASE (google-services.json — required for Firebase Crashlytics + FCM)
# -----------------------------------------------------------------------------
# Place google-services.json in: app/google-services.json
# Get it from Firebase Console → Project Settings → Your Apps
# Required for:
# - Firebase Crashlytics (crash reporting)
# - FCM (push notifications)
FIREBASE_PROJECT_ID=your-firebase-project-id
FIREBASE_APP_ID=1:xxxxxxxxxxxx:android:xxxxxxxxxxxx
FIREBASE_API_KEY=your_firebase_api_key
# -----------------------------------------------------------------------------
# 5. BUILD CONFIGURATION
# -----------------------------------------------------------------------------
# NDK Version (required for native C++ build)
NDK_VERSION=29.0.14033849
# App version (managed in version/version.properties)
VERSION=1.0.5
VERSION_CODE=5
# Product Flavors:
# stoptb → applicationId: org.piramalswasthya.stoptb (Production)
# stoptbUat → applicationId: org.piramalswasthya.stoptb.uat (UAT/Testing)
# -----------------------------------------------------------------------------
# 6. SETUP STEPS FOR NEW DEVELOPERS
# -----------------------------------------------------------------------------
#
# 1. Clone the repository
# 2. Install Android Studio (latest stable)
# 3. Install NDK version: 29.0.14033849
# (Android Studio → SDK Manager → SDK Tools → NDK Side by side)
# 4. Create native C++ implementation:
# app/src/main/cpp/keys.cpp with actual values for KeyUtils functions
# 5. Create keystore.properties at project root with signing credentials
# 6. Place google-services.json in app/ directory
# 7. Build project: ./gradlew assembleDebug
#
# =============================================================================