Skip to content

Android

Eli Aloni edited this page Mar 27, 2022 · 2 revisions

Adding Permissions

One can add new Android permissions by modifying the project_vars.sh script , located in the project scripts folder

For example adding the following permissions:
android.permission.INTERNET and android.permission.ACCESS_NETWORK_STATE
The following line should be added into project_vars.sh
export ANDROID_PERMISSIONS=('android.permission.INTERNET' 'android.permission.ACCESS_NETWORK_STATE')

See example in NakamaNetworking Sample

Referencing .net Assemblies

Adding and referencing Assemblies should be done as follows:

  • The Assemblies should be placed in the Project References folder , see example referencing Nakama.dll
  • The Assemblies should be referenced in the project_vars.sh script with the following line
    export DOTNET_REFERENCE_DLL=('some_assembly.dll' 'another_assembly.dll') , see example referencing Nakama.dll

Adding Android package dependencies

Android package dependencies can be added by modifying the project_vars.sh script located in the project scripts folder
export ANDROID_DEPENDENCIES=('dependency 1' 'dependency 2' 'dependency 3' ... )
See example Google Play services