Как реализовать Argear(фильтры Ar) в приложении типа tiktok
Я хочу интегрировать Argear(для фильтров Ar) в свое приложение, похожее на Tiktok, как я могу этого добиться?
Я импортировал пример приложения ArGear в качестве второго модуля и теперь получаю сообщение об ошибке.
Есть ли другой простой способ реализовать фильтры Ar и Beauty в приложении.
ошибка -Dependent features configured but no package ID was set.
gradle файлы обоих модулей
Первый модуль
```apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.gully.gullystar"
minSdkVersion 23
targetSdkVersion 29
versionCode 25
versionName "2.6"
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
buildConfigField "String", "APIKEY", '\"gully@456123\"'
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
buildConfigField "String", "APIKEY", '\"gully@456123\"'
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
dataBinding = true
}
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
}
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation project(path: ':appar')
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.google.android.material:material:1.1.0'
implementation "android.arch.lifecycle:extensions:1.1.1"
implementation "android.arch.lifecycle:viewmodel:1.1.1"
//Retrofit
implementation 'com.google.code.gson:gson:2.8.6'
implementation("com.squareup.retrofit2:retrofit:$RETROFIT_VERSION") {
exclude module: 'okhttp'
}
implementation "com.squareup.retrofit2:converter-gson:$RETROFIT_VERSION"
implementation "com.squareup.retrofit2:adapter-rxjava2:$RETROFIT_VERSION"
implementation 'com.squareup.okhttp3:logging-interceptor:4.2.2'
//RxJava
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'io.reactivex.rxjava2:rxjava:2.2.15'
implementation 'com.jakewharton.rxbinding3:rxbinding:3.0.0-alpha2'
//Firebase
implementation 'com.google.firebase:firebase-analytics:17.4.3'
implementation 'com.google.firebase:firebase-messaging:20.2.1'
//Glide
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
//sdp
implementation 'com.intuit.sdp:sdp-android:1.0.6'
//exoplayer
implementation 'com.google.android.exoplayer:exoplayer:2.11.1'
implementation 'com.google.android.exoplayer:exoplayer-core:2.11.1'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.11.1'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.11.1'
//Multidex
implementation 'com.android.support:multidex:1.0.3'
//likeButton
implementation 'com.github.jd-alexander:LikeButton:0.2.3'
//Facebook
implementation('com.facebook.android:facebook-android-sdk:5.15.3') {
exclude group: 'com.android.support'
}
implementation 'com.google.android.gms:play-services-auth:18.0.0'
implementation 'com.google.firebase:firebase-auth:19.3.1'
implementation 'com.camerakit:camerakit:1.0.0-beta3.11'
implementation 'com.camerakit:jpegkit:0.1.0'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.4'
//Camera
implementation "androidx.camera:camera-core:$camerax_version"
implementation "androidx.camera:camera-camera2:$camerax_version"
implementation "androidx.camera:camera-extensions:$camerax_ext_version"
//customTab
//implementation 'com.android.support:customtabs:23.3.0'
// QR libraries
implementation 'com.google.zxing:core:3.3.3'
implementation 'com.journeyapps:zxing-android-embedded:3.2.0@aar'
implementation 'com.budiyev.android:code-scanner:2.1.0'
//Swipe refresh
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-andx-11'
//Card Slider
implementation 'com.github.IslamKhSh:CardSlider:1.0.1'
// Loader
implementation 'com.agrawalsuneet.androidlibs:loaderspack:1.2.3'
//SpinKit
implementation 'com.github.ybq:Android-SpinKit:1.4.0'
//PrDownloader
implementation 'com.mindorks.android:prdownloader:0.6.0'
//Mp4 Parser
implementation 'com.googlecode.mp4parser:isoparser:1.1.7'
//Transcoder
implementation 'com.otaliastudios:transcoder:0.9.1'
//Branch
implementation 'io.branch.sdk.android:library:5.0.1'
implementation 'com.google.firebase:firebase-messaging-directboot:20.2.1'
//Ads
implementation 'com.facebook.android:audience-network-sdk:5.9.1'
implementation 'com.google.android.gms:play-services-ads:19.2.0'
//in app purchase
implementation 'com.anjlab.android.iab.v3:library:1.0.45'
implementation 'com.github.MasayukiSuda:Mp4Composer-android:v0.4.0'
implementation 'com.google.firebase:firebase-database:19.3.1'
//All arch: armeabi, armeabi-v7a, arm64-v8a, x86
// compile 'org.wysaid:gpuimage-plus:2.6.3'
//Pure graphics lib without ffmpeg. (all arch for branch 'min')
// implementation 'org.wysaid:gpuimage-plus:2.6.3'
implementation 'com.google.android.play:core:1.8.0'
implementation (name: 'argear', ext: 'aar')
}
второй модуль
```apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
buildscript {
apply from: 'versions.gradle'
repositories {
maven { url 'https://maven.google.com' }
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
}
}
android {
compileSdkVersion compile_sdkVersion
defaultConfig {
applicationId "com.seerslab.argear.sample"
minSdkVersion min_sdkVersion
targetSdkVersion target_sdkVersion
versionCode 1
versionName "0.0.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a'
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
android.applicationVariants.all{ variant ->
variant.outputs.all {
outputFileName = "ARGearSample.apk"
}
}
}
}
productFlavors {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
dataBinding {
enabled = true
}
}
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.appcompat:appcompat:$appcompactVersion"
implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
implementation "androidx.recyclerview:recyclerview:$recyclerviewVersion"
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycleExtensionsVersion"
implementation "com.github.bumptech.glide:glide:$glideVersion"
testImplementation 'junit:junit:4.12'
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
implementation "com.squareup.okhttp3:logging-interceptor:$okhttpLoggingInterceptorVersion"
implementation "com.google.code.gson:gson:$gsonVersion"
// ARGear
implementation (name: 'argear', ext: 'aar')
// Build off of TensorFlow Lite
implementation 'org.tensorflow:tensorflow-lite:1.14.0'
implementation 'org.tensorflow:tensorflow-lite-gpu:1.14.0'
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
}