Skip to content

Commit

Permalink
Merge pull request #18 from Parseus/dev
Browse files Browse the repository at this point in the history
Dev -> master: version 2.0.0
  • Loading branch information
Parseus authored Jan 20, 2021
2 parents 2af39ad + b328cb1 commit 093d473
Show file tree
Hide file tree
Showing 151 changed files with 2,473 additions and 1,463 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Codec Info is a simple tool that provides detailed listing of multimedia encoder
Features:
- Get info about audio codecs (max supported instances, input channels, bitrate range, sample rates and tunneled playback)
- Get info about video codecs (max resolution, frame rate, color profiles, adaptive playback, secure decryption and more)
- Easily share codec info with others
- Get info about DRM supported by the device
- Easily share codec/DRM info with others
- No ads!

![phone_screen2](https://user-images.githubusercontent.com/3923037/92001672-41bf4c80-ed3f-11ea-916d-0dd2d62931b1.png)
Expand Down
Binary file modified amazon_icon_smaller.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 19 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ android {
applicationId "com.parseus.codecinfo"
minSdkVersion 16
targetSdkVersion 30
versionCode 15
versionName "1.11.0"
versionCode 16
versionName "2.0.0"
resConfigs "en"

vectorDrawables.useSupportLibrary = true

manifestPlaceholders = [appName:"android.app.Application"]
}
buildTypes {
debug {
versionNameSuffix "-dev"
multiDexEnabled true
manifestPlaceholders = [appName:"androidx.multidex.MultiDexApplication"]
}
release {
minifyEnabled true
Expand All @@ -30,10 +33,18 @@ android {
productFlavors {
full {
dimension "app"

dependenciesInfo {
includeInApk = false
}
}

openSource {
dimension "app"

dependenciesInfo {
includeInApk = false
}
}
}

Expand All @@ -57,17 +68,19 @@ android {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'
implementation "androidx.core:core-ktx:1.5.0-alpha05"
implementation 'androidx.appcompat:appcompat:1.3.0-beta01'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation "androidx.core:core-ktx:1.5.0-beta01"
implementation 'androidx.leanback:leanback:1.1.0-beta01'
implementation 'androidx.leanback:leanback-preference:1.1.0-beta01'
implementation 'androidx.preference:preference-ktx:1.1.1'
implementation 'com.google.android.material:material:1.2.1'
implementation 'com.google.android.material:material:1.3.0-rc01'

implementation 'com.github.ditacristianionut:AppInfoBadge:1.3'
implementation "com.squareup.leakcanary:plumber-android:$leakCanary_version"

debugImplementation 'androidx.multidex:multidex:2.0.1'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.5'
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanary_version"

fullImplementation fileTree(include: ['*.jar'], dir: 'libs')
fullImplementation 'com.google.android.play:core:1.9.0'
Expand Down
8 changes: 7 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@
-dontwarn android.hardware.scontext.**
-dontwarn com.samsung.**
#noinspection ShrinkerUnresolvedReference
-keep class com.samsung.** { *; }
-keep class com.samsung.** { *; }

# TODO: Remove after LeakCanary 2.7 is released
# Enum values are referenced reflectively in EnumSet initialization
-keepclassmembers,allowoptimization enum leakcanary.AndroidLeakFixes {
public static **[] values();
}
13 changes: 0 additions & 13 deletions app/src/debug/java/com/parseus/codecinfo/CodecInfoApp.kt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.parseus.codecinfo
package com.parseus.codecinfo.utils

import android.content.Context
import android.os.Build
Expand Down Expand Up @@ -56,11 +56,13 @@ fun initializeSamsungGesture(context: Context, pager: ViewPager2, tabLayout: Tab
gestureHand = SgestureHand(Looper.getMainLooper(), gesture)
gestureHand!!.start(Sgesture.TYPE_HAND_PRIMITIVE) { info ->
if (info.angle in 225..315) { // to the left
tabLayout.setScrollPosition(0, 0f, true)
pager.currentItem = 0
val newPosition = (pager.currentItem - 1) and tabLayout.tabCount
tabLayout.setScrollPosition(newPosition, 0f, true)
pager.currentItem = newPosition
} else if (info.angle in 45..135) { // to the right
tabLayout.setScrollPosition(1, 0f, true)
pager.currentItem = 1
val newPosition = (pager.currentItem + 1) and tabLayout.tabCount
tabLayout.setScrollPosition(newPosition, 0f, true)
pager.currentItem = newPosition
}
}
}
Expand Down
51 changes: 36 additions & 15 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="auto"
android:installLocation="preferExternal"
package="com.parseus.codecinfo">

<uses-sdk tools:overrideLibrary="androidx.leanback, androidx.leanback.preference, com.dci.dev.appinfobadge, com.afollestad.recyclical" />
Expand All @@ -19,53 +19,74 @@
</intent>
</queries>

<!--suppress AndroidDomInspection -->
<application
android:allowBackup="true"
android:fullBackupContent="@xml/backup_rules"
android:banner="@drawable/banner"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:name=".CodecInfoApp"
android:name="${appName}"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="UnusedAttribute">
tools:ignore="MissingClass,RtlEnabled,UnusedAttribute">
<activity
android:name=".MainActivity"
android:label="@string/app_name">
android:name=".ui.MainActivity"
android:label="@string/app_name"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
<category android:name="android.intent.category.PENWINDOW_LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data android:name="android.app.searchable" android:resource="@xml/searchable" />
</activity>
<activity
android:name=".settings.SettingsActivity"
android:label="@string/settings"
android:parentActivityName=".MainActivity" />
android:name="com.parseus.codecinfo.ui.settings.SettingsActivity"
android:label="@string/action_settings"
android:parentActivityName=".ui.MainActivity" />

<activity
android:name=".tv.TvActivity"
android:name="com.parseus.codecinfo.ui.tv.TvActivity"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat.Leanback">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".tv.TvCodecDetailsActivity"
<activity android:name="com.parseus.codecinfo.ui.tv.TvCodecDetailsActivity"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat.Leanback"
android:parentActivityName=".tv.TvActivity"/>
<activity android:name=".tv.TvSettingsActivity"
android:parentActivityName="com.parseus.codecinfo.ui.tv.TvActivity"/>
<activity android:name="com.parseus.codecinfo.ui.tv.TvSettingsActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.Preference"
android:parentActivityName=".tv.TvActivity" />
<activity android:name=".tv.TvAboutActivity"
android:parentActivityName="com.parseus.codecinfo.ui.tv.TvActivity" />
<activity android:name="com.parseus.codecinfo.ui.tv.TvAboutActivity"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat.Leanback"
android:parentActivityName="com.parseus.codecinfo.ui.tv.TvActivity" />
<activity android:name="com.parseus.codecinfo.ui.tv.TvSearchActivity"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat.Leanback"
android:parentActivityName=".tv.TvActivity" />
android:parentActivityName="com.parseus.codecinfo.ui.tv.TvActivity" />

<provider
android:authorities="${applicationId}.fileprovider"
android:name="androidx.core.content.FileProvider"
android:grantUriPermissions="true"
android:exported="false">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>

<uses-library
android:name="com.sec.android.app.multiwindow"
Expand Down
Binary file added app/src/main/amazon_appstore_promo_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions app/src/main/assets/changelog.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<html>
<body>

<h2>Version 2.0.0</h2>
<p>Added a new tab with DRM types (and their properties) supported by the device.</p>
<p>Added a search functionality - search for info in a current list of codecs/DRM or codec/DRM properties!</p>
<p>UI overhaul providing improvements for larger screens, landscape orientation and dark mode.</p>
<p>Bugfixes and general improvements.</p>

<h2>Version 1.11.0</h2>
<p>Improved hardware acceleration detection for some older Qualcomm codecs.</p>
<p>(Android 10 and newer) Aliases for other codecs are now hidden by default; this can be changed in settings.</p>
Expand Down
Binary file removed app/src/main/banner.png
Binary file not shown.
Binary file modified app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 0 additions & 31 deletions app/src/main/java/com/parseus/codecinfo/Extensions.kt

This file was deleted.

Loading

0 comments on commit 093d473

Please sign in to comment.