Skip to content

Commit

Permalink
smart scaling feature added and some more improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
T8RIN committed Apr 7, 2022
1 parent cac3837 commit 63c0d10
Show file tree
Hide file tree
Showing 8 changed files with 349 additions and 112 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId "ru.tech.imageresizershrinker"
minSdk 21
targetSdk 32
versionCode 1
versionName "1.0"
versionCode 2
versionName "1.0.1"
}

buildTypes {
Expand Down Expand Up @@ -46,6 +46,6 @@ dependencies {
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.1'
implementation 'androidx.activity:activity-compose:1.4.0'
implementation "androidx.compose.ui:ui:1.2.0-alpha06"
implementation 'androidx.compose.material3:material3:1.0.0-alpha08'
implementation "androidx.compose.ui:ui:1.2.0-alpha07"
implementation 'androidx.compose.material3:material3:1.0.0-alpha09'
}
Binary file modified app/release/app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 1,
"versionName": "1.0",
"versionCode": 2,
"versionName": "1.0.1",
"outputFile": "app-release.apk"
}
],
Expand Down
1 change: 0 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
<activity
android:name=".MainActivity"
android:exported="true"
android:configChanges="orientation|screenSize|colorMode|uiMode"
android:theme="@style/Theme.ImageResizerShrinker">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
427 changes: 323 additions & 104 deletions app/src/main/java/ru/tech/imageresizershrinker/MainActivity.kt

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions app/src/main/java/ru/tech/imageresizershrinker/MainViewModel.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package ru.tech.imageresizershrinker

import android.graphics.Bitmap
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel

class MainViewModel : ViewModel() {

val globalBitmap = mutableStateOf<Bitmap?>(null)

}
8 changes: 8 additions & 0 deletions app/src/main/res/drawable/ic_twotone_image_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<vector android:height="24dp" android:tint="#000000"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillAlpha="0.3"
android:fillColor="@android:color/white"
android:pathData="M5,19h14L19,5L5,5v14zM9,13.14l2.14,2.58 3,-3.87L18,17L6,17l3,-3.86z" android:strokeAlpha="0.3"/>
<path android:fillColor="@android:color/white" android:pathData="M19,3L5,3c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2L21,5c0,-1.1 -0.9,-2 -2,-2zM19,19L5,19L5,5h14v14zM14.14,11.86l-3,3.86L9,13.14 6,17h12z"/>
</vector>
2 changes: 1 addition & 1 deletion app/src/main/res/values/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#2B1F3F</color>
<color name="ic_launcher_background">#DED4EF</color>
</resources>

0 comments on commit 63c0d10

Please sign in to comment.