Merge branch 'foss' of https://github.com/ForgottenUmbrella/Simple-Gallery
This commit is contained in:
commit
04138b7a92
6 changed files with 81 additions and 27 deletions
|
@ -53,6 +53,16 @@ android {
|
||||||
main.java.srcDirs += 'src/main/kotlin'
|
main.java.srcDirs += 'src/main/kotlin'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
flavorDimensions "licensing"
|
||||||
|
productFlavors {
|
||||||
|
proprietary { }
|
||||||
|
foss {
|
||||||
|
// We're not using PhotoEditor here, so changing the name is fine.
|
||||||
|
applicationIdSuffix ".foss"
|
||||||
|
versionNameSuffix "-foss"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
lintOptions {
|
lintOptions {
|
||||||
checkReleaseBuilds false
|
checkReleaseBuilds false
|
||||||
abortOnError false
|
abortOnError false
|
||||||
|
@ -92,28 +102,30 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply the PESDKPlugin
|
// Apply the PESDKPlugin
|
||||||
apply plugin: 'ly.img.android.sdk'
|
if (is_proprietary) {
|
||||||
|
apply plugin: 'ly.img.android.sdk'
|
||||||
|
|
||||||
imglyConfig {
|
imglyConfig {
|
||||||
pesdk {
|
pesdk {
|
||||||
enabled true
|
enabled true
|
||||||
licencePath 'pesdk_license'
|
licencePath 'pesdk_license'
|
||||||
}
|
}
|
||||||
|
|
||||||
supportLibVersion "28.0.0"
|
supportLibVersion "28.0.0"
|
||||||
|
|
||||||
modules {
|
modules {
|
||||||
include 'ui:core'
|
include 'ui:core'
|
||||||
include 'ui:text'
|
include 'ui:text'
|
||||||
include 'ui:focus'
|
include 'ui:focus'
|
||||||
include 'ui:brush'
|
include 'ui:brush'
|
||||||
include 'ui:filter'
|
include 'ui:filter'
|
||||||
include 'ui:transform'
|
include 'ui:transform'
|
||||||
include 'ui:adjustment'
|
include 'ui:adjustment'
|
||||||
|
|
||||||
include 'backend:serializer'
|
include 'backend:serializer'
|
||||||
|
|
||||||
include 'assets:font-basic'
|
include 'assets:font-basic'
|
||||||
include 'assets:filter-basic'
|
include 'assets:filter-basic'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -201,20 +201,18 @@
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.NewEditActivity"
|
android:name=".activities.EditActivity"
|
||||||
android:label="@string/editor">
|
android:label="@string/editor">
|
||||||
<intent-filter>
|
|
||||||
|
<intent-filter
|
||||||
|
android:name="foss-editor">
|
||||||
|
|
||||||
<action android:name="android.intent.action.EDIT"/>
|
<action android:name="android.intent.action.EDIT"/>
|
||||||
|
|
||||||
<category android:name="android.intent.category.DEFAULT"/>
|
<category android:name="android.intent.category.DEFAULT"/>
|
||||||
|
|
||||||
<data android:mimeType="image/*"/>
|
<data android:mimeType="image/*"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
|
||||||
|
|
||||||
<activity
|
|
||||||
android:name=".activities.EditActivity"
|
|
||||||
android:label="@string/editor">
|
|
||||||
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="com.android.camera.action.CROP"/>
|
<action android:name="com.android.camera.action.CROP"/>
|
||||||
|
|
39
app/src/proprietary/AndroidManifest.xml
Normal file
39
app/src/proprietary/AndroidManifest.xml
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<manifest
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
package="com.simplemobiletools.gallery.pro"
|
||||||
|
android:installLocation="auto">
|
||||||
|
|
||||||
|
<application
|
||||||
|
android:name=".App">
|
||||||
|
|
||||||
|
<activity
|
||||||
|
android:name=".activities.EditActivity">
|
||||||
|
|
||||||
|
<intent-filter
|
||||||
|
android:name="foss-editor"
|
||||||
|
tools:node="remove">
|
||||||
|
|
||||||
|
<action android:name="android.intent.action.EDIT"/>
|
||||||
|
|
||||||
|
<category android:name="android.intent.category.DEFAULT"/>
|
||||||
|
|
||||||
|
<data android:mimeType="image/*"/>
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
|
||||||
|
<activity
|
||||||
|
android:name=".activities.NewEditActivity"
|
||||||
|
android:label="@string/editor">
|
||||||
|
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.EDIT"/>
|
||||||
|
|
||||||
|
<category android:name="android.intent.category.DEFAULT"/>
|
||||||
|
|
||||||
|
<data android:mimeType="image/*"/>
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
</application>
|
||||||
|
</manifest>
|
|
@ -2,17 +2,22 @@
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
ext.kotlin_version = '1.3.61'
|
ext.kotlin_version = '1.3.61'
|
||||||
|
ext.is_proprietary = gradle.startParameter.taskNames.any { task -> task.contains("Proprietary") }
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
jcenter()
|
jcenter()
|
||||||
maven { url 'https://artifactory.img.ly/artifactory/imgly' }
|
if (is_proprietary) {
|
||||||
|
maven { url 'https://artifactory.img.ly/artifactory/imgly' }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.5.3'
|
classpath 'com.android.tools.build:gradle:3.5.3'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
classpath 'ly.img.android.pesdk:plugin:7.0.10'
|
if (is_proprietary) {
|
||||||
|
classpath 'ly.img.android.pesdk:plugin:7.0.10'
|
||||||
|
}
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
|
Loading…
Reference in a new issue