File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
packages/mobile/android/app Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -216,9 +216,10 @@ android {
216216 }
217217 }
218218 buildTypes. each {
219- it. buildConfigField(" String " , " SHOULD_RUN_BACKEND_WORKER" , " \" true\" " )
220- it. buildConfigField(" String " , " QSS_ALLOWED" , " \" false\" " )
219+ it. buildConfigField(" Boolean " , " SHOULD_RUN_BACKEND_WORKER" , " true" )
220+ it. buildConfigField(" Boolean " , " QSS_ALLOWED" , " false" )
221221 it. buildConfigField(" String" , " QSS_ENDPOINT" , " \"\" " )
222+ it. buildConfigField(" Boolean" , " DEBUG" , " false" )
222223 }
223224 buildTypes {
224225 debug {
Original file line number Diff line number Diff line change @@ -203,7 +203,8 @@ Java_com_quietmobile_Backend_BackendWorker_startNodeWithArguments(
203203 current_args_position += strlen (current_args_position) + 1 ;
204204 }
205205
206- free (args_buffer);
206+ // NOTE: this works on android but breaks on GrapheneOS which uses its own hardened version of calloc/malloc/free
207+ // free(args_buffer);
207208
208209 rn_register_bridge_cb (&rcv_message);
209210
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class MainActivity : ReactActivity() {
4444 val intent = intent
4545 checkAgainstIntentUpdate(intent)
4646
47- if (BuildConfig .SHOULD_RUN_BACKEND_WORKER == = " true " ) {
47+ if (BuildConfig .SHOULD_RUN_BACKEND_WORKER ) {
4848 val context = applicationContext
4949 BackendWorkManager (context).enqueueRequests()
5050 }
You can’t perform that action at this time.
0 commit comments