Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 0 additions & 48 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

PhotoFiltersSDK aims to provide fast, powerful and flexible image processing instrument for creating awesome effects on any image media.

Library supports OS on API 23 and above.
Library supports OS on API 26 and above.

![PhotoFilters gif](art/photofilters.gif)

Expand Down
21 changes: 0 additions & 21 deletions build.gradle

This file was deleted.

4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
}
34 changes: 0 additions & 34 deletions example/build.gradle

This file was deleted.

39 changes: 39 additions & 0 deletions example/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
plugins {
alias(libs.plugins.android.application)
}

kotlin {
jvmToolchain(17)
}

android {
namespace = "com.example.filters"
compileSdk = 36

defaultConfig {
applicationId = "com.example.filters"
minSdk = 26
versionCode = 1
versionName = "1.0"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
lint {
targetSdk = 36
baseline = file("lint-baseline.xml")
}
}

dependencies {
implementation(project(":photofilterssdk"))

implementation(libs.androidx.appcompat)
implementation(libs.androidx.recyclerview)
}
165 changes: 165 additions & 0 deletions example/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 9.0.1" type="baseline" client="gradle" dependencies="false" name="AGP (9.0.1)" variant="all" version="9.0.1">

<issue
id="InvalidSetHasFixedSize"
message="When using `setHasFixedSize() in an `RecyclerView`, `wrap_content` cannot be used as a value for `size` in the scrolling direction."
errorLine1=" thumbListView?.setHasFixedSize(true)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/example/filters/MainActivity.kt"
line="42"
column="9"/>
</issue>

<issue
id="Overdraw"
message="Possible overdraw: Root element paints background `@color/thumb_background_color` with a theme that also paints a background (inferred theme is `@style/AppTheme`)"
errorLine1=" android:background=&quot;@color/thumb_background_color&quot;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/activity_main.xml"
line="7"
column="5"/>
</issue>

<issue
id="UnusedResources"
message="The resource `R.color.zomato_red` appears to be unused"
errorLine1=" &lt;color name=&quot;zomato_red&quot;>#a40100&lt;/color>"
errorLine2=" ~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/values/colors.xml"
line="4"
column="12"/>
</issue>

<issue
id="UnusedResources"
message="The resource `R.dimen.activity_horizontal_margin` appears to be unused"
errorLine1=" &lt;dimen name=&quot;activity_horizontal_margin&quot;>16dp&lt;/dimen>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/values/dimens.xml"
line="3"
column="12"/>
</issue>

<issue
id="UnusedResources"
message="The resource `R.dimen.activity_vertical_margin` appears to be unused"
errorLine1=" &lt;dimen name=&quot;activity_vertical_margin&quot;>16dp&lt;/dimen>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/values/dimens.xml"
line="4"
column="12"/>
</issue>

<issue
id="UnusedResources"
message="The resource `R.dimen.recycler_size` appears to be unused"
errorLine1=" &lt;dimen name=&quot;recycler_size&quot;>100dp&lt;/dimen>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/values/dimens.xml"
line="6"
column="12"/>
</issue>

<issue
id="UnusedResources"
message="The resource `R.string.hello_world` appears to be unused"
errorLine1=" &lt;string name=&quot;hello_world&quot;>Hello world!&lt;/string>"
errorLine2=" ~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/values/strings.xml"
line="4"
column="13"/>
</issue>

<issue
id="UnusedResources"
message="The resource `R.string.action_settings` appears to be unused"
errorLine1=" &lt;string name=&quot;action_settings&quot;>Settings&lt;/string>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/values/strings.xml"
line="5"
column="13"/>
</issue>

<issue
id="IconLocation"
message="Found bitmap drawable `res/drawable/photo.jpg` in densityless folder">
<location
file="src/main/res/drawable/photo.jpg"/>
</issue>

<issue
id="UseKtx"
message="Use the KTX function `createBitmap` instead?"
errorLine1=" val outputBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/example/filters/GeneralUtils.kt"
line="12"
column="28"/>
</issue>

<issue
id="UseKtx"
message="Use the KTX extension function `Bitmap.scale` instead?"
errorLine1=" Bitmap.createScaledBitmap("
errorLine2=" ^">
<location
file="src/main/java/com/example/filters/MainActivity.kt"
line="32"
column="13"/>
</issue>

<issue
id="UseKtx"
message="Use the KTX extension function `Bitmap.scale` instead?"
errorLine1=" val thumbImage = Bitmap.createScaledBitmap("
errorLine2=" ^">
<location
file="src/main/java/com/example/filters/MainActivity.kt"
line="51"
column="30"/>
</issue>

<issue
id="UseKtx"
message="Use the KTX extension function `Bitmap.scale` instead?"
errorLine1=" Bitmap.createScaledBitmap("
errorLine2=" ^">
<location
file="src/main/java/com/example/filters/MainActivity.kt"
line="76"
column="17"/>
</issue>

<issue
id="UseKtx"
message="Use the KTX extension function `Bitmap.scale` instead?"
errorLine1=" thumb.image = Bitmap.createScaledBitmap("
errorLine2=" ^">
<location
file="src/main/java/com/example/filters/ThumbnailsManager.kt"
line="18"
column="27"/>
</issue>

<issue
id="ContentDescription"
message="Missing `contentDescription` attribute on image"
errorLine1=" &lt;ImageView"
errorLine2=" ~~~~~~~~~">
<location
file="src/main/res/layout/activity_main.xml"
line="11"
column="6"/>
</issue>

</issues>
1 change: 1 addition & 0 deletions example/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/thumb_background_color"
android:fitsSystemWindows="true"
tools:context=".MainActivity">

<ImageView
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
android.enableJetifier=true
android.useAndroidX=true
org.gradle.jvmargs=-Xmx8192m
org.gradle.jvmargs=-Xmx8192m
android.nonTransitiveRClass=true
12 changes: 12 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[versions]
agp = "9.0.1"
androidx-appcompat = "1.7.1"
androidx-recyclerview = "1.4.0"

[libraries]
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" }
androidx-recyclerview = { module = "androidx.recyclerview:recyclerview", version.ref = "androidx-recyclerview" }

[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Sep 22 22:24:21 IST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
36 changes: 0 additions & 36 deletions photofilterssdk/build.gradle

This file was deleted.

Loading