Skip to content

Commit 68ef78f

Browse files
committed
Update readme and install DeepAR via maven server
1 parent e377a30 commit 68ef78f

8 files changed

+34
-26
lines changed

.idea/jarRepositories.xml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

-12
This file was deleted.

README.md

+20-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# quickstart-android-java
22

3-
To run the example
4-
* Go to https://developer.deepar.ai, sign up, create the project and the Android app, copy the license key and paste it to MainActivity.java (instead of your_license_key_goes_here string)
5-
* Download the SDK from https://developer.deepar.ai and copy the deepar.aar into quickstart-android-java/deepar folder
3+
## Overview
4+
5+
This is an example app demonstrating DeepAR SDK.
6+
7+
- Preview of fun face filters, effects and background replacement.
8+
- Carousel with filter thumbnails.
9+
- Take screenshot.
10+
- Record video.
11+
- Front and back camera.
12+
- Source code demonstrates how to integrate DeepAR for Android in your app.
13+
14+
For more info on DeepAR for Android see: https://docs.deepar.ai/category/deepar-sdk-for-android
15+
16+
## How to run
17+
18+
1. Open the project in Android Studio.
19+
2. Create a DeepAR developer account: https://developer.deepar.ai/signup.
20+
3. Create a project: https://developer.deepar.ai/projects.
21+
4. Add a Android app to the project. Note that you need to specify the `applicationId` of your app app. The `applicationId` is located in the `app/build.gradle` and in this case it is "ai.deepar.deepar_example".
22+
5. Copy the generated license key in the `MainActivity.java` instead of your_license_key_here.

app/build.gradle

+1-7
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,15 @@ android {
2222
targetCompatibility JavaVersion.VERSION_1_8
2323
}
2424
}
25-
repositories {
26-
flatDir {
27-
dirs '../deepar'
28-
}
29-
}
3025

3126
dependencies {
32-
implementation fileTree(dir: 'libs', include: ['*.jar'])
3327
implementation 'androidx.appcompat:appcompat:1.0.2'
3428
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
3529
implementation 'com.google.android.material:material:1.3.0'
3630
implementation 'androidx.navigation:navigation-fragment:2.3.4'
3731
implementation 'androidx.navigation:navigation-ui:2.3.4'
3832
testImplementation 'junit:junit:4.12'
39-
implementation (name: 'deepar', ext:'aar')
33+
implementation 'ai.deepar.ar:DeepAR:5.3.0'
4034
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
4135
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
4236
def camerax_version = "1.0.1"

build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ buildscript {
44
repositories {
55
google()
66
jcenter()
7+
maven {
8+
url "https://sdk.developer.deepar.ai/maven-android-repository/releases/"
9+
}
710

811
}
912
dependencies {
@@ -18,6 +21,9 @@ allprojects {
1821
repositories {
1922
google()
2023
jcenter()
24+
maven {
25+
url "https://sdk.developer.deepar.ai/maven-android-repository/releases/"
26+
}
2127
}
2228
}
2329

deepar/build.gradle

-2
This file was deleted.

settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
include ':app', ':deepar'
1+
include ':app'
22
rootProject.name='DeepAR_Example'

0 commit comments

Comments
 (0)