Skip to content

Commit

Permalink
Updated Gradle, changes how Photos are opened
Browse files Browse the repository at this point in the history
  • Loading branch information
kslcsdalsadg committed Dec 27, 2024
1 parent 61c6c91 commit 28d9b6d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 16 deletions.
13 changes: 4 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,18 @@ android {
def localProperties = new Properties()
localProperties.load(new FileInputStream(rootProject.file("local.properties")))

compileSdk 34
compileSdk 35

defaultConfig {
applicationId 'com.google.android.apps.photos'
minSdkVersion 29
targetSdkVersion 34
versionCode 7
versionName "1.2.2"
targetSdkVersion 35
versionCode 8
versionName "1.2.3"
}

signingConfigs {
release {
storeFile file(localProperties["RELEASE_STORE_FILE"])
storePassword localProperties["RELEASE_STORE_PASSWORD"]
keyAlias localProperties["RELEASE_KEY_ALIAS"]
keyPassword localProperties["RELEASE_KEY_PASSWORD"]

enableV3Signing = true
enableV4Signing = true
}
Expand Down
Binary file modified app/release/app-release.apk.idsig
Binary file not shown.
7 changes: 4 additions & 3 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 7,
"versionName": "1.2.2",
"versionCode": 8,
"versionName": "1.2.3",
"outputFile": "app-release.apk"
}
],
"elementType": "File"
"elementType": "File",
"minSdkVersionForDexing": 29
}
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAHRD" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />

<!-- This is here to make sure GPhotosShim has access to the gcam application -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class MainActivity : Activity() {
// If the URI is not pending anymore we send an implicit intent
// so you can now handle the image with any gallery you want
val intent = Intent()
intent.action = Intent.ACTION_VIEW
intent.action = MediaStore.ACTION_REVIEW
intent.setDataAndType(uri, "image/*")
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
startActivity(intent)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.2'
classpath 'com.android.tools.build:gradle:8.7.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Fri Dec 27 12:01:24 CET 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 28d9b6d

Please sign in to comment.