Updated README, gitignore and build.gradle

This commit is contained in:
Sylvain Berfini 2018-11-16 10:57:01 +01:00
parent ac24369382
commit 9c41b63769
5 changed files with 11 additions and 44 deletions

40
.gitignore vendored
View file

@ -6,55 +6,19 @@
.settings
adb.pid
bc-android.keystore
bin
build
certdata.txt
check_tools.mk
default.properties
doc
gen
liblinphone-junit-report.xml
liblinphone-sdk/android-*
liblinphonetester_*.zip
libs
libs-debug
linphone-android.iml
linphone-junit-report*.xml
linphonetester_*.zip
*.iml
lint.xml
local.properties
Makefile
obj
proguard-project.txt
project.properties
res/.DS_Store
res/raw/lpconfig.xsd
submodules/externals/build/cunit/CUnit/
submodules/externals/build/ffmpeg/arm/
submodules/externals/build/ffmpeg/x86
submodules/externals/build/libvpx/arm
submodules/externals/build/libvpx/x86
submodules/externals/build/openh264/arm
submodules/externals/build/openh264/x86
submodules/externals/ffmpeg/arm/
tests/*$py.class
tests/build.xml
tests/project.properties
ant_password.properties
liblinphone_tester/liblinphonetester_*
liblinphone_tester/tests.output
tests/linphonetester_*
tests/tests.output
WORK
.d
app/google-services.json
.*clang*
**/*.iml
src/linphone-wrapper
liblinphone_tester/res/raw/
**/.classpath
**/.project
**/*.kdev4
liblinphone-sdk/res/
**/.vscode
res/value-hi_IN
linphone-sdk-android/*.aar

View file

@ -9,15 +9,19 @@ However, if you wish to use a locally compiled SDK here's how to proceed.
## Building a local SDK
1. Update the submodules of this project (if not done yet) using the following command:
1. Clone the linphone-sdk repository from out gitlab:
```
git submodule update --recursive --init
git clone git@gitlab.linphone.org:BC/public/linphone-sdk.git --recursive
```
After that the folder linphone-sdk will now contain all the modules required to build our SDK.
2. Follow the instructions in the linphone-sdk/README file to build the SDK.
3. Rebuild the app in Android Studio.
3. Edit in the linphone-sdk-android folder of this project the symbolic link (debug or release) to the generated aar:
```
ln -s <path to linphone-sdk>/linphone-sdk/build/linphone-sdk/bin/outputs/aar/linphone-sdk-android-<debug or release>.aar linphone-sdk-android/linphone-sdk-android-<debug or release>.aar
```
4. Rebuild the app in Android Studio.
## Create an apk with a different package name

View file

@ -107,6 +107,7 @@ dependencies {
if (isLocalAarAvailable()) {
implementation project(":linphone-sdk-android")
} else {
// TODO: Use hardcoded correct SDK version number
releaseImplementation "org.linphone:liblinphone-sdk:${android.defaultConfig.versionName}"
debugImplementation "org.linphone:liblinphone-sdk:${android.defaultConfig.versionName}-DEBUG"
}

View file

@ -1 +0,0 @@
../linphone-sdk/build/linphone-sdk/bin/outputs/aar/linphone-sdk-android-debug.aar

View file

@ -1 +0,0 @@
../linphone-sdk/build/linphone-sdk/bin/outputs/aar/linphone-sdk-android-release.aar