From c9fa997fc0f1051ec6fa03b58dd6758a03fad6ff Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 4 Nov 2018 20:19:58 +0100 Subject: [PATCH] appending .pro to package name --- .gitignore | 3 ++- app/build.gradle | 2 +- app/src/main/AndroidManifest.xml | 2 +- .../simplemobiletools/draw/{ => pro}/App.kt | 2 +- .../draw/{ => pro}/actions/Action.kt | 2 +- .../draw/{ => pro}/actions/Line.kt | 2 +- .../draw/{ => pro}/actions/Move.kt | 2 +- .../draw/{ => pro}/actions/Quad.kt | 2 +- .../draw/{ => pro}/activities/MainActivity.kt | 26 +++++++------------ .../{ => pro}/activities/SettingsActivity.kt | 17 ++++-------- .../{ => pro}/activities/SimpleActivity.kt | 4 +-- .../{ => pro}/activities/SplashActivity.kt | 2 +- .../draw/{ => pro}/dialogs/SaveImageDialog.kt | 12 ++++----- .../draw/{ => pro}/extensions/Context.kt | 4 +-- .../draw/{ => pro}/helpers/Config.kt | 4 +-- .../draw/{ => pro}/helpers/Constants.kt | 2 +- .../{ => pro}/interfaces/CanvasListener.kt | 2 +- .../draw/{ => pro}/models/MyParcelable.kt | 2 +- .../draw/{ => pro}/models/MyPath.kt | 12 ++++----- .../draw/{ => pro}/models/PaintOptions.kt | 2 +- .../draw/{ => pro}/models/Svg.kt | 10 +++---- .../draw/{ => pro}/views/MyCanvas.kt | 12 ++++----- app/src/main/res/layout/activity_main.xml | 2 +- app/src/main/res/layout/activity_settings.xml | 22 ---------------- 24 files changed, 59 insertions(+), 93 deletions(-) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/App.kt (84%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/actions/Action.kt (79%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/actions/Line.kt (94%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/actions/Move.kt (94%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/actions/Quad.kt (96%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/activities/MainActivity.kt (95%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/activities/SettingsActivity.kt (85%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/activities/SimpleActivity.kt (92%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/activities/SplashActivity.kt (84%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/dialogs/SaveImageDialog.kt (92%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/extensions/Context.kt (50%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/helpers/Config.kt (94%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/helpers/Constants.kt (89%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/interfaces/CanvasListener.kt (71%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/models/MyParcelable.kt (96%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/models/MyPath.kt (88%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/models/PaintOptions.kt (84%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/models/Svg.kt (95%) rename app/src/main/kotlin/com/simplemobiletools/draw/{ => pro}/views/MyCanvas.kt (96%) diff --git a/.gitignore b/.gitignore index 7051e76..a1c018b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.iml +*.aab .gradle /local.properties /gradle.properties @@ -6,5 +7,5 @@ .DS_Store /build /captures -release.keystore +keystore.jks signing.properties diff --git a/app/build.gradle b/app/build.gradle index 7e14c6d..e2a0afb 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,7 +7,7 @@ android { buildToolsVersion "28.0.3" defaultConfig { - applicationId "com.simplemobiletools.draw" + applicationId "com.simplemobiletools.draw.pro" minSdkVersion 21 targetSdkVersion 28 versionCode 41 diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 5579c54..f631b4c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -2,7 +2,7 @@ diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/App.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/App.kt similarity index 84% rename from app/src/main/kotlin/com/simplemobiletools/draw/App.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/App.kt index 5b72a15..bfc953e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/App.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/App.kt @@ -1,4 +1,4 @@ -package com.simplemobiletools.draw +package com.simplemobiletools.draw.pro import android.app.Application import com.simplemobiletools.commons.extensions.checkUseEnglish diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/actions/Action.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/actions/Action.kt similarity index 79% rename from app/src/main/kotlin/com/simplemobiletools/draw/actions/Action.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/actions/Action.kt index fdffb48..eda8ab8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/actions/Action.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/actions/Action.kt @@ -1,4 +1,4 @@ -package com.simplemobiletools.draw.actions +package com.simplemobiletools.draw.pro.actions import android.graphics.Path import java.io.Serializable diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/actions/Line.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/actions/Line.kt similarity index 94% rename from app/src/main/kotlin/com/simplemobiletools/draw/actions/Line.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/actions/Line.kt index 9dce92e..ea2c0e6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/actions/Line.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/actions/Line.kt @@ -1,4 +1,4 @@ -package com.simplemobiletools.draw.actions +package com.simplemobiletools.draw.pro.actions import android.graphics.Path import java.io.Writer diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/actions/Move.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/actions/Move.kt similarity index 94% rename from app/src/main/kotlin/com/simplemobiletools/draw/actions/Move.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/actions/Move.kt index 6f6ac77..cc4fd5e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/actions/Move.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/actions/Move.kt @@ -1,4 +1,4 @@ -package com.simplemobiletools.draw.actions +package com.simplemobiletools.draw.pro.actions import android.graphics.Path import java.io.Writer diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/actions/Quad.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/actions/Quad.kt similarity index 96% rename from app/src/main/kotlin/com/simplemobiletools/draw/actions/Quad.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/actions/Quad.kt index 6bb093d..e256f62 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/actions/Quad.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/actions/Quad.kt @@ -1,4 +1,4 @@ -package com.simplemobiletools.draw.actions +package com.simplemobiletools.draw.pro.actions import android.graphics.Path import java.io.Writer diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt similarity index 95% rename from app/src/main/kotlin/com/simplemobiletools/draw/activities/MainActivity.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt index ceee5c6..0353738 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt @@ -1,4 +1,4 @@ -package com.simplemobiletools.draw.activities +package com.simplemobiletools.draw.pro.activities import android.app.Activity import android.content.Intent @@ -16,22 +16,21 @@ import android.webkit.MimeTypeMap import android.widget.SeekBar import com.simplemobiletools.commons.dialogs.ColorPickerDialog import com.simplemobiletools.commons.dialogs.FilePickerDialog -import com.simplemobiletools.commons.dialogs.UpgradeToProDialog import com.simplemobiletools.commons.extensions.* import com.simplemobiletools.commons.helpers.LICENSE_GLIDE import com.simplemobiletools.commons.helpers.PERMISSION_WRITE_STORAGE import com.simplemobiletools.commons.models.FAQItem import com.simplemobiletools.commons.models.FileDirItem import com.simplemobiletools.commons.models.Release -import com.simplemobiletools.draw.BuildConfig -import com.simplemobiletools.draw.R -import com.simplemobiletools.draw.dialogs.SaveImageDialog -import com.simplemobiletools.draw.extensions.config -import com.simplemobiletools.draw.helpers.JPG -import com.simplemobiletools.draw.helpers.PNG -import com.simplemobiletools.draw.helpers.SVG -import com.simplemobiletools.draw.interfaces.CanvasListener -import com.simplemobiletools.draw.models.Svg +import com.simplemobiletools.draw.pro.BuildConfig +import com.simplemobiletools.draw.pro.R +import com.simplemobiletools.draw.pro.dialogs.SaveImageDialog +import com.simplemobiletools.draw.pro.extensions.config +import com.simplemobiletools.draw.pro.helpers.JPG +import com.simplemobiletools.draw.pro.helpers.PNG +import com.simplemobiletools.draw.pro.helpers.SVG +import com.simplemobiletools.draw.pro.interfaces.CanvasListener +import com.simplemobiletools.draw.pro.models.Svg import kotlinx.android.synthetic.main.activity_main.* import java.io.ByteArrayOutputStream import java.io.File @@ -77,11 +76,6 @@ class MainActivity : SimpleActivity(), CanvasListener { if (!isImageCaptureIntent) { checkWhatsNewDialog() } - - if (!config.wasInitialUpgradeToProShown) { - UpgradeToProDialog(this) - config.wasInitialUpgradeToProShown = true - } } override fun onResume() { diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/SettingsActivity.kt similarity index 85% rename from app/src/main/kotlin/com/simplemobiletools/draw/activities/SettingsActivity.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/SettingsActivity.kt index 9668249..f5c7635 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/SettingsActivity.kt @@ -1,9 +1,10 @@ -package com.simplemobiletools.draw.activities +package com.simplemobiletools.draw.pro.activities import android.os.Bundle -import com.simplemobiletools.commons.extensions.* -import com.simplemobiletools.draw.R -import com.simplemobiletools.draw.extensions.config +import com.simplemobiletools.commons.extensions.beVisibleIf +import com.simplemobiletools.commons.extensions.updateTextColors +import com.simplemobiletools.draw.pro.R +import com.simplemobiletools.draw.pro.extensions.config import kotlinx.android.synthetic.main.activity_settings.* import java.util.* @@ -16,7 +17,6 @@ class SettingsActivity : SimpleActivity() { override fun onResume() { super.onResume() - setupUpgradeToPro() setupCustomizeColors() setupUseEnglish() setupPreventPhoneFromSleeping() @@ -26,13 +26,6 @@ class SettingsActivity : SimpleActivity() { updateTextColors(settings_holder) } - private fun setupUpgradeToPro() { - settings_upgrade_to_pro_holder.beGoneIf(isAProApp()) - settings_upgrade_to_pro_holder.setOnClickListener { - launchUpgradeToProIntent() - } - } - private fun setupCustomizeColors() { settings_customize_colors_holder.setOnClickListener { startCustomizationActivity() diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/activities/SimpleActivity.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/SimpleActivity.kt similarity index 92% rename from app/src/main/kotlin/com/simplemobiletools/draw/activities/SimpleActivity.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/SimpleActivity.kt index ed90032..fc04596 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/activities/SimpleActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/SimpleActivity.kt @@ -1,7 +1,7 @@ -package com.simplemobiletools.draw.activities +package com.simplemobiletools.draw.pro.activities import com.simplemobiletools.commons.activities.BaseSimpleActivity -import com.simplemobiletools.draw.R +import com.simplemobiletools.draw.pro.R open class SimpleActivity : BaseSimpleActivity() { override fun getAppIconIDs() = arrayListOf( diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/activities/SplashActivity.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/SplashActivity.kt similarity index 84% rename from app/src/main/kotlin/com/simplemobiletools/draw/activities/SplashActivity.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/SplashActivity.kt index 4e55758..1889903 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/activities/SplashActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/SplashActivity.kt @@ -1,4 +1,4 @@ -package com.simplemobiletools.draw.activities +package com.simplemobiletools.draw.pro.activities import android.content.Intent import com.simplemobiletools.commons.activities.BaseSplashActivity diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/dialogs/SaveImageDialog.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/dialogs/SaveImageDialog.kt similarity index 92% rename from app/src/main/kotlin/com/simplemobiletools/draw/dialogs/SaveImageDialog.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/dialogs/SaveImageDialog.kt index 1b6c34b..27be929 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/dialogs/SaveImageDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/dialogs/SaveImageDialog.kt @@ -1,14 +1,14 @@ -package com.simplemobiletools.draw.dialogs +package com.simplemobiletools.draw.pro.dialogs import androidx.appcompat.app.AlertDialog import com.simplemobiletools.commons.dialogs.ConfirmationDialog import com.simplemobiletools.commons.dialogs.FilePickerDialog import com.simplemobiletools.commons.extensions.* -import com.simplemobiletools.draw.R -import com.simplemobiletools.draw.activities.SimpleActivity -import com.simplemobiletools.draw.helpers.JPG -import com.simplemobiletools.draw.helpers.PNG -import com.simplemobiletools.draw.helpers.SVG +import com.simplemobiletools.draw.pro.R +import com.simplemobiletools.draw.pro.activities.SimpleActivity +import com.simplemobiletools.draw.pro.helpers.JPG +import com.simplemobiletools.draw.pro.helpers.PNG +import com.simplemobiletools.draw.pro.helpers.SVG import kotlinx.android.synthetic.main.dialog_save_image.view.* class SaveImageDialog(val activity: SimpleActivity, val defaultExtension: String, val defaultPath: String, val defaultFilename: String, diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/extensions/Context.kt similarity index 50% rename from app/src/main/kotlin/com/simplemobiletools/draw/extensions/Context.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/extensions/Context.kt index d0d7871..b0463a7 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/extensions/Context.kt @@ -1,6 +1,6 @@ -package com.simplemobiletools.draw.extensions +package com.simplemobiletools.draw.pro.extensions import android.content.Context -import com.simplemobiletools.draw.helpers.Config +import com.simplemobiletools.draw.pro.helpers.Config val Context.config: Config get() = Config.newInstance(applicationContext) diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/helpers/Config.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/helpers/Config.kt similarity index 94% rename from app/src/main/kotlin/com/simplemobiletools/draw/helpers/Config.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/helpers/Config.kt index 50559d8..7b42ae0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/helpers/Config.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/helpers/Config.kt @@ -1,9 +1,9 @@ -package com.simplemobiletools.draw.helpers +package com.simplemobiletools.draw.pro.helpers import android.content.Context import android.graphics.Color import com.simplemobiletools.commons.helpers.BaseConfig -import com.simplemobiletools.draw.R +import com.simplemobiletools.draw.pro.R class Config(context: Context) : BaseConfig(context) { companion object { diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/helpers/Constants.kt similarity index 89% rename from app/src/main/kotlin/com/simplemobiletools/draw/helpers/Constants.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/helpers/Constants.kt index 2ef6513..5bb3c8c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/helpers/Constants.kt @@ -1,4 +1,4 @@ -package com.simplemobiletools.draw.helpers +package com.simplemobiletools.draw.pro.helpers const val BRUSH_COLOR = "brush_color" const val CANVAS_BACKGROUND_COLOR = "canvas_background_color" diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/interfaces/CanvasListener.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/interfaces/CanvasListener.kt similarity index 71% rename from app/src/main/kotlin/com/simplemobiletools/draw/interfaces/CanvasListener.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/interfaces/CanvasListener.kt index ec83e96..fb7dbab 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/interfaces/CanvasListener.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/interfaces/CanvasListener.kt @@ -1,4 +1,4 @@ -package com.simplemobiletools.draw.interfaces +package com.simplemobiletools.draw.pro.interfaces interface CanvasListener { fun toggleUndoVisibility(visible: Boolean) diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/models/MyParcelable.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/models/MyParcelable.kt similarity index 96% rename from app/src/main/kotlin/com/simplemobiletools/draw/models/MyParcelable.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/models/MyParcelable.kt index 62a5f80..d378e61 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/models/MyParcelable.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/models/MyParcelable.kt @@ -1,4 +1,4 @@ -package com.simplemobiletools.draw.models +package com.simplemobiletools.draw.pro.models import android.os.Parcel import android.os.Parcelable diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/models/MyPath.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/models/MyPath.kt similarity index 88% rename from app/src/main/kotlin/com/simplemobiletools/draw/models/MyPath.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/models/MyPath.kt index 049d467..e3da9c6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/models/MyPath.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/models/MyPath.kt @@ -1,13 +1,13 @@ -package com.simplemobiletools.draw.models +package com.simplemobiletools.draw.pro.models import android.app.Activity import android.graphics.Path import com.simplemobiletools.commons.extensions.toast -import com.simplemobiletools.draw.R -import com.simplemobiletools.draw.actions.Action -import com.simplemobiletools.draw.actions.Line -import com.simplemobiletools.draw.actions.Move -import com.simplemobiletools.draw.actions.Quad +import com.simplemobiletools.draw.pro.R +import com.simplemobiletools.draw.pro.actions.Action +import com.simplemobiletools.draw.pro.actions.Line +import com.simplemobiletools.draw.pro.actions.Move +import com.simplemobiletools.draw.pro.actions.Quad import java.io.ObjectInputStream import java.io.Serializable import java.security.InvalidParameterException diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/models/PaintOptions.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/models/PaintOptions.kt similarity index 84% rename from app/src/main/kotlin/com/simplemobiletools/draw/models/PaintOptions.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/models/PaintOptions.kt index 81d5096..ee493b6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/models/PaintOptions.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/models/PaintOptions.kt @@ -1,4 +1,4 @@ -package com.simplemobiletools.draw.models +package com.simplemobiletools.draw.pro.models import android.graphics.Color diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/models/Svg.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/models/Svg.kt similarity index 95% rename from app/src/main/kotlin/com/simplemobiletools/draw/models/Svg.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/models/Svg.kt index 2d2cf27..3e748eb 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/models/Svg.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/models/Svg.kt @@ -1,4 +1,4 @@ -package com.simplemobiletools.draw.models +package com.simplemobiletools.draw.pro.models import android.graphics.Color import android.graphics.drawable.ColorDrawable @@ -9,10 +9,10 @@ import com.simplemobiletools.commons.extensions.getFileOutputStream import com.simplemobiletools.commons.extensions.getFilenameFromPath import com.simplemobiletools.commons.extensions.toast import com.simplemobiletools.commons.models.FileDirItem -import com.simplemobiletools.draw.R -import com.simplemobiletools.draw.activities.MainActivity -import com.simplemobiletools.draw.activities.SimpleActivity -import com.simplemobiletools.draw.views.MyCanvas +import com.simplemobiletools.draw.pro.R +import com.simplemobiletools.draw.pro.activities.MainActivity +import com.simplemobiletools.draw.pro.activities.SimpleActivity +import com.simplemobiletools.draw.pro.views.MyCanvas import java.io.* import java.util.* diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/views/MyCanvas.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/views/MyCanvas.kt similarity index 96% rename from app/src/main/kotlin/com/simplemobiletools/draw/views/MyCanvas.kt rename to app/src/main/kotlin/com/simplemobiletools/draw/pro/views/MyCanvas.kt index 47954bd..646ab81 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/views/MyCanvas.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/views/MyCanvas.kt @@ -1,4 +1,4 @@ -package com.simplemobiletools.draw.views +package com.simplemobiletools.draw.pro.views import android.app.Activity import android.content.Context @@ -12,11 +12,11 @@ import com.bumptech.glide.Glide import com.bumptech.glide.load.DecodeFormat import com.bumptech.glide.request.RequestOptions import com.simplemobiletools.commons.extensions.toast -import com.simplemobiletools.draw.R -import com.simplemobiletools.draw.interfaces.CanvasListener -import com.simplemobiletools.draw.models.MyParcelable -import com.simplemobiletools.draw.models.MyPath -import com.simplemobiletools.draw.models.PaintOptions +import com.simplemobiletools.draw.pro.R +import com.simplemobiletools.draw.pro.interfaces.CanvasListener +import com.simplemobiletools.draw.pro.models.MyParcelable +import com.simplemobiletools.draw.pro.models.MyPath +import com.simplemobiletools.draw.pro.models.PaintOptions import java.util.* import java.util.concurrent.ExecutionException diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index b40b63b..cd6235c 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -5,7 +5,7 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - - - - - - -