mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
As a step toward merging jitsi-meet-react with jitsi-meet to share as much source code as possible between mobile and Web, merge the part of jitsi-meet-react's source tree which supports mobile inside the jitsi-meet source tree and leave jitsi-meet-react's Web support in the source code revision history but don't have it in master anymore because it's different from jitsi-meet's Web support. In other words, the two projects are mechanically merged at the file level and don't really share source code between mobile and Web.
67 lines
1.5 KiB
Python
67 lines
1.5 KiB
Python
import re
|
|
|
|
# To learn about Buck see [Docs](https://buckbuild.com/).
|
|
# To run your application with Buck:
|
|
# - install Buck
|
|
# - `npm start` - to start the packager
|
|
# - `cd android`
|
|
# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
|
|
# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
|
|
# - `buck install -r android/app` - compile, install and run application
|
|
#
|
|
|
|
lib_deps = []
|
|
for jarfile in glob(['libs/*.jar']):
|
|
name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile)
|
|
lib_deps.append(':' + name)
|
|
prebuilt_jar(
|
|
name = name,
|
|
binary_jar = jarfile,
|
|
)
|
|
|
|
for aarfile in glob(['libs/*.aar']):
|
|
name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile)
|
|
lib_deps.append(':' + name)
|
|
android_prebuilt_aar(
|
|
name = name,
|
|
aar = aarfile,
|
|
)
|
|
|
|
android_library(
|
|
name = 'all-libs',
|
|
exported_deps = lib_deps
|
|
)
|
|
|
|
android_library(
|
|
name = 'app-code',
|
|
srcs = glob([
|
|
'src/main/java/**/*.java',
|
|
]),
|
|
deps = [
|
|
':all-libs',
|
|
':build_config',
|
|
':res',
|
|
],
|
|
)
|
|
|
|
android_build_config(
|
|
name = 'build_config',
|
|
package = 'org.jitsi.jitsi_meet_react',
|
|
)
|
|
|
|
android_resource(
|
|
name = 'res',
|
|
res = 'src/main/res',
|
|
package = 'org.jitsi.jitsi_meet_react',
|
|
)
|
|
|
|
android_binary(
|
|
name = 'app',
|
|
package_type = 'debug',
|
|
manifest = 'src/main/AndroidManifest.xml',
|
|
keystore = '//android/keystores:debug',
|
|
deps = [
|
|
':app-code',
|
|
],
|
|
)
|