Skip to content

Commit

Permalink
Merge pull request #10428 from Isira-Seneviratne/AGP_8.1
Browse files Browse the repository at this point in the history
Bump AGP to 8.1.1
  • Loading branch information
TobiGr authored Sep 20, 2023
2 parents 50fb48f + 779ea19 commit 673aa0a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ public boolean isDirect() {

/**
* Only using Java I/O. Creates the directory named by this abstract pathname, including any
* necessary but nonexistent parent directories. Note that if this
* operation fails it may have succeeded in creating some of the necessary
* necessary but nonexistent parent directories.
* Note that if this operation fails it may have succeeded in creating some of the necessary
* parent directories.
*
* @return <code>true</code> if and only if the directory was created,
Expand All @@ -180,9 +180,12 @@ public boolean isDirect() {
*/
public boolean mkdirs() {
if (docTree == null) {
// TODO: Use Files.createDirectories() when AGP 8.1 is available:
// https://issuetracker.google.com/issues/282544786
return Files.exists(ioTree) || ioTree.toFile().mkdirs();
try {
Files.createDirectories(ioTree);
} catch (final IOException e) {
Log.e(TAG, "Error while creating directories at " + ioTree, e);
}
return Files.exists(ioTree);
}

if (docTree.exists()) {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.2'
classpath 'com.android.tools.build:gradle:8.1.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down

0 comments on commit 673aa0a

Please sign in to comment.