Skip to content

Commit

Permalink
Dependencies update and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasGorisse committed May 12, 2022
1 parent 5f52aae commit b0422a4
Show file tree
Hide file tree
Showing 15 changed files with 94 additions and 87 deletions.
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
buildscript {
ext {
compileSdkVersion = 31
minSdkVersion = 24
targetSdkVersion = 31
compileSdk = 31
minSdk = 24
targetSdk = 31

kotlin_version = '1.6.10'
kotlin_version = '1.6.21'
kotlinx_coroutines_version = '1.5.2'
lifecycle_runtime_ktx_version = '2.4.0'
lifecycle_runtime_ktx_version = '2.4.1'
fragment_ktx_version = '1.4.1'
core_ktx_version = '1.7.0'

Expand All @@ -19,15 +19,15 @@ buildscript {
arcore_version = '1.31.0'
fuel_version = '2.3.1'

material_version = '1.5.0'
material_version = '1.6.0'
}
repositories {
google()
mavenLocal()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.0'
classpath 'com.android.tools.build:gradle:7.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0'
}
Expand Down
20 changes: 10 additions & 10 deletions core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'kotlin-kapt'
// id 'com.vanniktech.maven.publish'
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdk
compileSdkVersion rootProject.ext.compileSdk

defaultConfig {
// Sceneform requires minSdkVersion >= 24.
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
// Sceneform requires minSdk >= 24.
minSdk rootProject.ext.minSdk
targetSdk rootProject.ext.targetSdk

consumerProguardFiles 'lib-proguard-rules.pro'

buildConfigField 'String', 'VERSION_NAME', "\"${project.properties['VERSION_NAME']}\""
}
compileOptions {
// Sceneform libraries use language constructs from Java 8.
// Add these compile options if targeting minSdkVersion < 26.
// Add these compile options if targeting minSdk < 26.
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
aaptOptions {
noCompress 'filamat', 'ktx'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
androidResources {
noCompress 'filamat', 'ktx'
}
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
12 changes: 6 additions & 6 deletions samples/3d-model-viewer/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'kotlin-kapt'
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdk
compileSdkVersion rootProject.ext.compileSdk

defaultConfig {
applicationId "com.google.ar.sceneform.samples.sceneviewbackground"

// Sceneform requires minSdkVersion >= 24.
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
// Sceneform requires minSdk >= 24.
minSdk rootProject.ext.minSdk
targetSdk rootProject.ext.targetSdk
versionCode 1
versionName "1.0"
}
Expand Down
9 changes: 5 additions & 4 deletions samples/ar-model-viewer-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ plugins {
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdk
compileSdkVersion rootProject.ext.compileSdk
defaultConfig {
applicationId "com.google.ar.sceneform.samples.gltf"

// Sceneform requires minSdkVersion >= 24.
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
// Sceneform requires minSdk >= 24.
minSdk rootProject.ext.minSdk
targetSdk rootProject.ext.targetSdk
versionCode 1
versionName "1.0"
}
Expand Down
9 changes: 5 additions & 4 deletions samples/ar-model-viewer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ plugins {
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdk
compileSdkVersion rootProject.ext.compileSdk

defaultConfig {
applicationId "com.google.ar.sceneform.samples.gltf"

// Sceneform requires minSdkVersion >= 24.
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
// Sceneform requires minSdk >= 24.
minSdk rootProject.ext.minSdk
targetSdk rootProject.ext.targetSdk
versionCode 1
versionName "1.0"
}
Expand Down
10 changes: 6 additions & 4 deletions samples/augmented-faces/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ plugins {
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdk
compileSdkVersion rootProject.ext.compileSdk

defaultConfig {
applicationId "com.google.ar.sceneform.samples.augmentedfaces"

// Sceneform requires minSdkVersion >= 24.
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
// Sceneform requires minSdk >= 24.
minSdk rootProject.ext.minSdk
targetSdk rootProject.ext.targetSdk
versionCode 1
versionName "1.0"
}
Expand Down
12 changes: 6 additions & 6 deletions samples/augmented-images/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'kotlin-kapt'
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdk
compileSdkVersion rootProject.ext.compileSdk

defaultConfig {
applicationId "com.google.ar.sceneform.samples.augmentedimages"

// Sceneform requires minSdkVersion >= 24.
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
// Sceneform requires minSdk >= 24.
minSdk rootProject.ext.minSdk
targetSdk rootProject.ext.targetSdk
versionCode 1
versionName "1.0.0"
}
Expand Down
12 changes: 7 additions & 5 deletions samples/depth/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,23 @@ plugins {
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdk
compileSdkVersion rootProject.ext.compileSdk

defaultConfig {
applicationId 'com.google.ar.sceneform.samples.depth'

// Sceneform requires minSdkVersion >= 24.
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
// Sceneform requires minSdk >= 24.
minSdk rootProject.ext.minSdk
targetSdk rootProject.ext.targetSdk
versionCode 1
versionName "1.0"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
aaptOptions {
androidResources {
noCompress 'filamat', 'ktx'
}

Expand Down
13 changes: 7 additions & 6 deletions samples/environment-lights/build.gradle
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'kotlin-kapt'
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdk
compileSdkVersion rootProject.ext.compileSdk

buildFeatures {
dataBinding true
}
defaultConfig {
applicationId "com.google.ar.sceneform.samples.environmentlights"

// Sceneform requires minSdkVersion >= 24.
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
// Sceneform requires minSdk >= 24.
minSdk rootProject.ext.minSdk
targetSdk rootProject.ext.targetSdk
versionCode 2
versionName "1.0.1"
}
Expand All @@ -26,7 +27,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
aaptOptions {
androidResources {
noCompress 'filamat', 'ktx'
}
}
Expand Down
4 changes: 2 additions & 2 deletions samples/environment-lights/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.google.ar.sceneform.samples.environmentlights">
<!-- "AR Required" apps must declare minSdkVersion ≥ 24.
"AR Optional" apps must declare minSdkVersion ≥ 14 -->
<!-- "AR Required" apps must declare minSdk ≥ 24.
"AR Optional" apps must declare minSdk ≥ 14 -->
<!-- Always needed for AR. -->

<uses-permission android:name="android.permission.CAMERA" />
Expand Down
12 changes: 6 additions & 6 deletions samples/image-texture/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'kotlin-kapt'
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdk
compileSdkVersion rootProject.ext.compileSdk

defaultConfig {
applicationId "com.google.ar.sceneform.samples.imagetexture"

// Sceneform requires minSdkVersion >= 24.
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
// Sceneform requires minSdk >= 24.
minSdk rootProject.ext.minSdk
targetSdk rootProject.ext.targetSdk
versionCode 1
versionName "1.0"
}
Expand Down
12 changes: 6 additions & 6 deletions samples/video-texture/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'kotlin-kapt'
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdk
compileSdkVersion rootProject.ext.compileSdk

defaultConfig {
applicationId "com.google.ar.sceneform.samples.videotexture"

// Sceneform requires minSdkVersion >= 24.
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
// Sceneform requires minSdk >= 24.
minSdk rootProject.ext.minSdk
targetSdk rootProject.ext.targetSdk
versionCode 1
versionName "1.0"
}
Expand Down
20 changes: 10 additions & 10 deletions sceneform/build.gradle
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'kotlin-kapt'
// id 'com.vanniktech.maven.publish'
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdk
compileSdkVersion rootProject.ext.compileSdk

defaultConfig {
// Sceneform requires minSdkVersion >= 24.
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
// Sceneform requires minSdk >= 24.
minSdk rootProject.ext.minSdk
targetSdk rootProject.ext.targetSdk
}
compileOptions {
// Sceneform libraries use language constructs from Java 8.
// Add these compile options if targeting minSdkVersion < 26.
// Add these compile options if targeting minSdk < 26.
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
aaptOptions {
noCompress 'filamat', 'ktx'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
androidResources {
noCompress 'filamat', 'ktx'
}
}

dependencies {
Expand Down
Loading

0 comments on commit b0422a4

Please sign in to comment.