-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from udacity/main
Fix gradle and build issues
- Loading branch information
Showing
16 changed files
with
103 additions
and
247 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,66 @@ | ||
/* | ||
* Copyright 2018, The Android Open Source Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
apply plugin: 'com.android.application' | ||
|
||
apply plugin: 'kotlin-android' | ||
|
||
apply plugin: 'kotlin-kapt' | ||
|
||
apply plugin: 'androidx.navigation.safeargs' | ||
|
||
android { | ||
compileSdkVersion 30 | ||
namespace = "com.example.android.navigation" | ||
compileSdkVersion 34 | ||
|
||
buildFeatures { | ||
dataBinding true | ||
} | ||
|
||
defaultConfig { | ||
applicationId 'com.example.android.navigation' | ||
minSdkVersion 19 | ||
targetSdkVersion 30 | ||
vectorDrawables.useSupportLibrary = true | ||
applicationId "com.example.android.navigation" | ||
minSdkVersion 21 | ||
targetSdkVersion 34 | ||
versionCode 1 | ||
versionName "1.0" | ||
vectorDrawables.useSupportLibrary = true | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
productFlavors { | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
|
||
kotlinOptions { | ||
jvmTarget = "17" | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(include: ['*.jar'], dir: 'libs') | ||
|
||
// Kotlin | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$version_kotlin" | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$version_kotlin" | ||
|
||
// Constraint Layout | ||
// AndroidX libraries | ||
implementation "androidx.core:core-ktx:$version_core" | ||
implementation "androidx.appcompat:appcompat:1.7.0" | ||
implementation "androidx.constraintlayout:constraintlayout:$version_constraint_layout" | ||
|
||
// Core | ||
implementation "androidx.core:core:$version_core" | ||
|
||
// Material Design | ||
implementation "com.google.android.material:material:$version_material" | ||
|
||
// Navigation | ||
implementation "android.arch.navigation:navigation-fragment-ktx:$version_navigation" | ||
implementation "android.arch.navigation:navigation-ui-ktx:$version_navigation" | ||
// Navigation Component | ||
implementation "androidx.navigation:navigation-fragment-ktx:$version_navigation" | ||
implementation "androidx.navigation:navigation-ui-ktx:$version_navigation" | ||
|
||
// Lifecycle components | ||
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1" | ||
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.6.1" | ||
|
||
// Testing dependencies | ||
testImplementation 'junit:junit:4.13.2' | ||
androidTestImplementation 'androidx.test:runner:1.5.2' | ||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.