-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
101 lines (90 loc) · 5.04 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
compileSdkVersion androidCompileSdkVersion
defaultConfig {
applicationId 'com.snap.camerakit.sample.full'
minSdkVersion androidMinSdkVersion
targetSdkVersion androidTargetSdkVersion
versionCode cameraKitDistributionCode
versionName cameraKitDistributionVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
manifestPlaceholders = [
'cameraKitApiToken': cameraKitApiToken,
// Snap Kit parameters for the Lens Push To Device authentication via Login Kit:
'snapKitClientId': 'REPLACE-THIS-WITH-YOUR-OWN-APP-SPECIFIC-VALUE',
'snapKitRedirectUrl': 'REPLACE-THIS-WITH-YOUR-OWN-APP-SPECIFIC-VALUE',
'snapKitScheme': 'camerakit-support',
'snapKitHost': 'REPLACE-THIS-WITH-YOUR-OWN-APP-SPECIFIC-VALUE',
'snapKitPath': '/oauth2',
]
buildConfigField 'String', "LENS_GROUP_ID_TEST", "\"$cameraKitLensesGroupId\""
buildConfigField 'String', "LENS_GROUP_ID_AR_CORE", "\"$cameraKitLensesGroupIdArCore\""
}
testBuildType = project.hasProperty('testBuildType') ? project.property('testBuildType') : 'debug'
buildTypes {
debug {}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
if (testBuildType == 'release') {
proguardFiles += 'proguard-rules-instrumentation.pro'
}
signingConfig signingConfigs.debug
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
signingConfigs {
debug {
storeFile rootProject.file('debug.keystore')
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
implementation "androidx.core:core-ktx:$ktxVersion"
implementation "androidx.appcompat:appcompat:$appCompatVersion"
implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
implementation "androidx.drawerlayout:drawerlayout:$drawerLayoutVersion"
implementation "com.google.android.material:material:$materialVersion"
implementation "androidx.recyclerview:recyclerview:$recyclerViewVersion"
implementation "com.github.bumptech.glide:glide:$glideVersion"
implementation "com.google.android.exoplayer:exoplayer-core:$exoPlayerVersion"
implementation "com.google.android.exoplayer:exoplayer-ui:$exoPlayerVersion"
implementation "com.google.android.gms:play-services-vision:$gmsVisionVersion"
// The main CameraKit artifact that provides all the core functionality.
// It is not necessary to define it here if support-camera-layout artifact is
// used as it transitively depends on it, however it is kept for the reference.
implementation "com.snap.camerakit:camerakit:$cameraKitVersion"
// Provides convenience Kotlin specific extensions to the public CameraKit API.
implementation "com.snap.camerakit:camerakit-kotlin:$cameraKitVersion"
// Provides an opinionated but extensible implementation that wraps
// camera as well as CameraKit Session management with a View that can be
// embedded into any Activity or Fragment where CameraKit integration is needed.
implementation "com.snap.camerakit:support-camera-layout:$cameraKitVersion"
// Optional dependency that provides location access to certain lenses.
// Used by the support-camera-layout when creating the Source<LocationProcessor>
// for the CameraKit Session, if removed, falls back to default, no-op implementation.
implementation "com.snap.camerakit:support-gms-location:$cameraKitVersion"
// Optional dependency that provides ArCore backed Source<ImageProcessor> to enable
// depth and other ArCore specific features in lenses that require them.
// Used by the support-camera-layout but can be safely removed if not needed.
implementation "com.snap.camerakit:support-arcore:$cameraKitVersion"
implementation "com.snap.camerakit:lenses-bundle:$cameraKitVersion"
// Optional dependency that provides Lens Push to Device functionality.
implementation "com.snap.camerakit:camerakit-extension-lens-push-to-device:$cameraKitVersion"
// Optional dependency that provides Login Kit based implementation of AuthTokenProvider.
implementation "com.snap.camerakit:camerakit-extension-auth-token-provider-loginkit:$cameraKitVersion"
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation 'androidx.test:rules:1.4.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
androidTestImplementation "org.jetbrains.kotlin:kotlin-test:$kotlinVersion"
}