Ad Motor Android(v1.3) Version Release

Tags:

 

Change Logs

– register user email fix (Api)
– Language Configuration Modified to use Database instead of language file (backend)
– Paid Item as New Feature (backend & api)
– Backend setting as New Feature to use Database instead of ps_config file(backend)
– Transaction history as New Feature (backend)
– Use ckeditor plugin with textarea in Blog (backend)
– Paid Config as New Feature (backend)
– Model name already exist check with manufacturer id (backend)

 

Backend Effected Files

– application/models/User.php
– application/config/autoload.php
– application/config/config.php
– application/config/ps_config.php
– application/controllers/Main.php
– application/controllers/backend/Notis.php
– application/controllers/rest/Items.php
– application/controllers/rest/Users.php
– application/core/API_Controller.php
– application/core/BE_Controller.php
– application/core/My_Controller.php
– application/core/My_Model.php
– application/helpers/ps_helper.php
– application/helpers/ps_mail_helper.php
– application/language/english/index.html
– application/language/english/ps_lang.php
– application/libraries/PS_Adapter.php
– application/libraries/PS_Mail.php
– application/models/Item.php
– application/models/Module.php
– application/views/backend/abouts/entry_form.php
– application/views/backend/app_users/entry_form.php
– application/views/backend/banners/entry_form.php
– application/views/backend/banners/list.php
– application/views/backend/banners/list_script.php
– application/views/backend/banners/search_form.php
– application/views/backend/blogs/entry_form.php
– application/views/backend/blogs/list.php
– application/views/backend/blogs/list_script.php
– application/views/backend/buildtypes/list.php
– application/views/backend/buildtypes/list_script.php
– application/views/backend/buildtypes/search_form.php
– application/views/backend/colors/list.php
– application/views/backend/colors/list_script.php
– application/views/backend/colors/search_form.php
– application/views/backend/fueltypes/list.php
– application/views/backend/fueltypes/list_script.php
– application/views/backend/fueltypes/search_form.php
– application/views/backend/item_conditions/list.php
– application/views/backend/item_conditions/list_script.php
– application/views/backend/item_conditions/search_form.php
– application/views/backend/item_currency/list.php
– application/views/backend/item_currency/list_script.php
– application/views/backend/item_currency/search_form.php
– application/views/backend/item_locations/list.php
– application/views/backend/item_locations/list_script.php
– application/views/backend/item_locations/search_form.php
– application/views/backend/item_price/list.php
– application/views/backend/item_price/list_script.php
– application/views/backend/item_price/search_form.php
– application/views/backend/item_reports/entry_form.php
– application/views/backend/item_type/list.php
– application/views/backend/item_type/list_script.php
– application/views/backend/item_type/search_form.php
– application/views/backend/items/entry_form_script.php
– application/views/backend/items/search_form.php
– application/views/backend/manufacturers/entry_form.php
– application/views/backend/manufacturers/list.php
– application/views/backend/manufacturers/list_script.php
– application/views/backend/manufacturers/search_form.php
– application/views/backend/models/entry_form.php
– application/views/backend/models/list.php
– application/views/backend/models/list_script.php
– application/views/backend/partials/breadcrumb.php
– application/views/backend/partials/header.php
– application/views/backend/partials/sidebar.php
– application/views/backend/popularitems/search_form.php
– application/views/backend/profile/entry_form.php
– application/views/backend/registered_users/list_script.php
– application/views/backend/sellertypes/list.php
– application/views/backend/sellertypes/list_script.php
– application/views/backend/sellertypes/search_form.php
– application/views/backend/system_users/entry_form.php
– application/views/backend/transmissions/list.php
– application/views/backend/transmissions/list_script.php
– application/views/backend/transmissions/search_form.php
– assets/backend/css/style.css
– uploads/backend_logo1.png
– uploads/favicon1.ico
– uploads/thumbnail/backend_logo1.png
– application/controllers/backend/Backend_configs.php
– application/controllers/backend/Language_strings.php
– application/controllers/backend/Languages.php
– application/controllers/backend/Paid_items.php
– application/controllers/backend/Transactions.php
– application/controllers/rest/Paid_items.php
– application/models/Backend_config.php
– application/models/Language.php
– application/models/Language_string.php
– application/models/Paid_config.php
– application/models/Paid_item.php
– application/views/backend/backend_configs/
– application/views/backend/components/delete_language_modal.php
– application/views/backend/components/warning_confirm_modal.php
– application/views/backend/language_strings/
– application/views/backend/languages/
– application/views/backend/paid_items/
– application/views/backend/partials/breadcrumb_language.php
– application/views/backend/partials/language_form.php
– application/views/backend/partials/language_list.php
– application/views/backend/transactions/
– uploads/login_background.png
– uploads/thumbnail/login_background.png
– application/views/backend/blogs/entry_form.php
– application/views/backend/blogs/entry_form_script.php
– application/views/backend/partials/footer.php
– assets/backend/css/style.css
– application/views/backend/backend_configs/entry_form.php
– application/config/paypal.php
– application/controllers/backend/Paid_configs.php
– application/libraries/braintree_lib/
– application/libraries/paypal/
– application/libraries/stripe_lib/
– application/models/Code.php
– application/views/backend/paid_configs/
– application/controllers/backend/Models.php
– application/views/backend/models/entry_form_script.php

 

SQL Change Logs

ALTER TABLE core_modules ADD module_lang_key VARCHAR(255) NOT NULL AFTER module_desc;

INSERT INTO core_modules (`module_id`, module_name, module_desc, module_lang_key, module_icon, ordering, is_show_on_menu, `group_id`) VALUES ('31', 'languages', 'Languages', 'language_module', '', '10', '1', '6');

CREATE TABLE bs_language ( id VARCHAR(255) NOT NULL , symbol VARCHAR(50) NOT NULL , name VARCHAR(255) NOT NULL , status TINYINT(1) NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB;

CREATE TABLE bs_language_string ( id VARCHAR(255) NOT NULL , language_id VARCHAR(255) NOT NULL , `key` VARCHAR(255) NOT NULL , value VARCHAR(255) NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB;

CREATE TABLE `bs_paid_items_history` ( `id` varchar(255) NOT NULL,`item_id` varchar(255) NOT NULL, `start_date` timestamp NOT NULL DEFAULT current_timestamp(),`end_date`timestamp NOT NULL DEFAULT current_timestamp(), `amount` varchar(50) NOT NULL,`payment_method` varchar(50) NOT NULL,`added_date` timestamp NOT NULL DEFAULT current_timestamp(), `added_user_id` varchar(255) NOT NULL,`updated_date` timestamp NOT NULL DEFAULT current_timestamp(),`updated_user_id` varchar(255) NOT NULL,`updated_flag` int(11) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8;

ALTER TABLE `bs_paid_items_history` ADD PRIMARY KEY(`id`);

ALTER TABLE `bs_paid_items_history` ADD `start_timestamp` DOUBLE NOT NULL AFTER `start_date`;

ALTER TABLE `bs_paid_items_history` ADD `trans_code` VARCHAR(50) NOT NULL AFTER `payment_method`;

ALTER TABLE `bs_paid_items_history` ADD `status` TINYINT(1) NOT NULL AFTER `trans_code`;

CREATE TABLE `core_backend_config` ( `id` varchar(255) NOT NULL,`sender_name` varchar(255) NOT NULL,`sender_email` varchar(255) NOT NULL, `receive_email` varchar(255) NOT NULL, `fcm_api_key` varchar(255) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8;

ALTER TABLE `core_backend_config` ADD PRIMARY KEY (`id`);

CREATE TABLE `bs_paid_ads_config` ( `id` varchar(255) NOT NULL, `day` int(11) NOT NULL, `amount` varchar(50) NOT NULL, `currency_short_form` varchar(255) NOT NULL, `currency_symbol` varchar(255) NOT NULL, `paypal_environment` varchar(255) NOT NULL, `paypal_merchant_id` varchar(255) NOT NULL, `paypal_public_key` varchar(255) NOT NULL, `paypal_private_key` varchar(255) NOT NULL, `paypal_enabled` tinyint(1) NOT NULL DEFAULT 0, `stripe_publishable_key` varchar(255) NOT NULL, `stripe_secret_key` varchar(255) NOT NULL, `stripe_enabled` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

ALTER TABLE `bs_paid_ads_config` ADD PRIMARY KEY(`id`);

ALTER TABLE `core_menu_groups` ADD `group_lang_key` VARCHAR(255) NOT NULL AFTER `group_icon`;

ALTER TABLE `bs_items` ADD `is_paid` TINYINT(1) NOT NULL DEFAULT '0' AFTER `license_expiration_date`;

INSERT INTO core_modules (`module_id`, module_name, module_desc, module_lang_key, module_icon, ordering, is_show_on_menu, `group_id`) VALUES ('34', 'transactions', 'Transactions History','transaction_module', '', '10', '1', '3');

INSERT INTO `core_modules` (`module_id`, `module_name`, `module_desc`, `module_lang_key`, `module_icon`, `ordering`, `is_show_on_menu`, `group_id`) VALUES ('35', 'paid_configs', 'Paid Configs', 'paid_config_module', '', '10', '1', '6');

INSERT INTO core_modules (`module_id`, module_name, module_desc, module_lang_key, module_icon, ordering, is_show_on_menu, `group_id`) VALUES ('32', 'paid_items', 'Paid Items','paid_item_module', '', '10', '1', '1');

INSERT INTO core_modules (`module_id`, module_name, module_desc, module_lang_key, module_icon, ordering, is_show_on_menu, `group_id`) VALUES ('33', 'backend_configs', 'Backend Setting','backend_setting_module', '', '10', '1', '6');

UPDATE `core_modules` SET `module_lang_key` = 'manufacturers_module' WHERE `core_modules`.`module_id` = 1;
UPDATE `core_modules` SET `module_lang_key` = 'models_module' WHERE `core_modules`.`module_id` = 2;
UPDATE `core_modules` SET `module_lang_key` = 'contact_module' WHERE `core_modules`.`module_id` = 3;
UPDATE `core_modules` SET `module_lang_key` = 'sys_user_module' WHERE `core_modules`.`module_id` = 4;
UPDATE `core_modules` SET `module_lang_key` = 'register_user_module' WHERE `core_modules`.`module_id` = 5;
UPDATE `core_modules` SET `module_lang_key` = 'about_module' WHERE `core_modules`.`module_id` = 6;
UPDATE `core_modules` SET `module_lang_key` = 'push_noti_module' WHERE `core_modules`.`module_id` = 7;
UPDATE `core_modules` SET `module_lang_key` = 'analytic_module' WHERE `core_modules`.`module_id` = 8;
UPDATE `core_modules` SET `module_lang_key` = 'export_database_module' WHERE `core_modules`.`module_id` = 9;
UPDATE `core_modules` SET `module_lang_key` = 'app_setting_module' WHERE `core_modules`.`module_id` = 10;
UPDATE `core_modules` SET `module_lang_key` = 'color_module' WHERE `core_modules`.`module_id` = 11;
UPDATE `core_modules` SET `module_lang_key` = 'popular_cars_module' WHERE `core_modules`.`module_id` = 12;
UPDATE `core_modules` SET `module_lang_key` = 'items_module' WHERE `core_modules`.`module_id` = 13;
UPDATE `core_modules` SET `module_lang_key` = 'fueltypes_module' WHERE `core_modules`.`module_id` = 14;
UPDATE `core_modules` SET `module_lang_key` = 'apikey_module' WHERE `core_modules`.`module_id` = 15;
UPDATE `core_modules` SET `module_lang_key` = 'apis_module' WHERE `core_modules`.`module_id` = 16;
UPDATE `core_modules` SET `module_lang_key` = 'buildtypes_module' WHERE `core_modules`.`module_id` = 17;
UPDATE `core_modules` SET `module_lang_key` = 'rating_module' WHERE `core_modules`.`module_id` = 18;
UPDATE `core_modules` SET `module_lang_key` = 'sellertype_module' WHERE `core_modules`.`module_id` = 19;
UPDATE `core_modules` SET `module_lang_key` = 'transmissions_module' WHERE `core_modules`.`module_id` = 20;
UPDATE `core_modules` SET `module_lang_key` = 'banners_module' WHERE `core_modules`.`module_id` = 21;
UPDATE `core_modules` SET `module_lang_key` = 'item_conditions_module' WHERE `core_modules`.`module_id` = 22;
UPDATE `core_modules` SET `module_lang_key` = 'version_module' WHERE `core_modules`.`module_id` = 23;
UPDATE `core_modules` SET `module_lang_key` = 'item_currency_module' WHERE `core_modules`.`module_id` = 24;
UPDATE `core_modules` SET `module_lang_key` = 'item_price_module' WHERE `core_modules`.`module_id` = 25;
UPDATE `core_modules` SET `module_lang_key` = 'item_type_module' WHERE `core_modules`.`module_id` = 26;
UPDATE `core_modules` SET `module_lang_key` = 'blog_module' WHERE `core_modules`.`module_id` = 27;
UPDATE `core_modules` SET `module_lang_key` = 'item_reports_module' WHERE `core_modules`.`module_id` = 28;
UPDATE `core_modules` SET `module_lang_key` = 'app_setting_module' WHERE `core_modules`.`module_id` = 29;
UPDATE `core_modules` SET `module_lang_key` = 'location_module' WHERE `core_modules`.`module_id` = 30;
UPDATE `core_modules` SET `module_lang_key` = 'language_module' WHERE `core_modules`.`module_id` = 31;
UPDATE `core_modules` SET `module_lang_key` = 'paid_item_module' WHERE `core_modules`.`module_id` = 32;
UPDATE `core_modules` SET `module_lang_key` = 'backend_setting_module' WHERE `core_modules`.`module_id` = 33;
UPDATE `core_modules` SET `module_lang_key` = 'transaction_module' WHERE `core_modules`.`module_id` = 34;
UPDATE `core_modules` SET `module_lang_key` = 'paid_config_module' WHERE `core_modules`.`module_id` = 35;

UPDATE `core_menu_groups` SET `group_lang_key` = 'entry_group' WHERE `core_menu_groups`.`group_id` = 1;
UPDATE `core_menu_groups` SET `group_lang_key` = 'user_feedback_group' WHERE `core_menu_groups`.`group_id` = 3;
UPDATE `core_menu_groups` SET `group_lang_key` = 'user_mang_group' WHERE `core_menu_groups`.`group_id` = 4;
UPDATE `core_menu_groups` SET `group_lang_key` = 'miscellaneous_group' WHERE `core_menu_groups`.`group_id` = 5;
UPDATE `core_menu_groups` SET `group_lang_key` = 'setting_group' WHERE `core_menu_groups`.`group_id` = 6;

 

Important Note

  1. After you run the Query, you need to create english language
  2. Import this language csv file at here : https://www.dropbox.com/s/qq677sfgub2y0uf/ps_en_lang%28ad-motor%29.csv?dl=0
  3. You need to active the english as the default
  4. If you confuse for step 1 to 3, please take a look this video also : https://www.dropbox.com/s/22rcett4rglgris/lang_update_video.mov?dl=0

 

Android Change Logs

– Add Item Paid AD feature
– Fix Item Upload Issue (Must be choose at least one image)
– Fix login background image Issue
– Fix View count When click fav icon
– Back to dashboard from menu

 

 

Android effected file
updated : admotors-android/app/build.gradle
updated : admotors-android/app/src/main/AndroidManifest.xml
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/api/PSApiService.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/Config.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/db/PSCoreDb.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/di/AppModule.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/di/MainActivityModule.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/di/ViewModelModule.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/MainActivity.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/repository/item/ItemRepository.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/blog/detail/BlogDetailFragment.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/blog/list/adapter/BlogListAdapter.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/common/NavigationController.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/dashboard/DashBoardSearchFragment.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/item/adapter/ItemHorizontalListAdapter.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/item/adapter/ItemVerticalListAdapter.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/item/detail/ItemFragment.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/item/entry/ItemEntryFragment.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/item/loginUserItem/LoginUserItemListActivity.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/model/ModelFragment.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/user/phonelogin/PhoneLoginFragment.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/user/ProfileFragment.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/user/UserForgotPasswordFragment.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/user/userlist/detail/UserDetailFragment.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/user/UserLoginFragment.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/user/UserRegisterFragment.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/utils/Constants.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/utils/Utils.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/viewmodel/apploading/PSAPPLoadingViewModel.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/viewobject/holder/ItemParameterHolder.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/viewobject/Item.java
updated : admotors-android/app/src/main/java/com/panaceasoft/admotors/viewobject/PSAppInfo.java
updated : admotors-android/app/src/main/res/layout/fragment_blog_detail.xml
updated : admotors-android/app/src/main/res/layout/fragment_item.xml
updated : admotors-android/app/src/main/res/layout/fragment_phone_login.xml
updated : admotors-android/app/src/main/res/layout/fragment_profile.xml
updated : admotors-android/app/src/main/res/layout/fragment_user_forgot_password.xml
updated : admotors-android/app/src/main/res/layout/fragment_user_login.xml
updated : admotors-android/app/src/main/res/layout/fragment_user_register.xml
updated : admotors-android/app/src/main/res/layout/item_blog_list_adapter.xml
updated : admotors-android/app/src/main/res/layout/item_item_horizontal_with_user.xml
updated : admotors-android/app/src/main/res/layout/item_item_vertical_with_user.xml
updated : admotors-android/app/src/main/res/menu/menu_drawer.xml
updated : admotors-android/app/src/main/res/values-ar/strings.xml
updated : admotors-android/app/src/main/res/values-de/strings.xml
updated : admotors-android/app/src/main/res/values-es/strings.xml
updated : admotors-android/app/src/main/res/values-fr/strings.xml
updated : admotors-android/app/src/main/res/values-hi-rIN/strings.xml
updated : admotors-android/app/src/main/res/values-in/strings.xml
updated : admotors-android/app/src/main/res/values-it/strings.xml
updated : admotors-android/app/src/main/res/values-ja/strings.xml
updated : admotors-android/app/src/main/res/values-ko/strings.xml
updated : admotors-android/app/src/main/res/values-ms/strings.xml
updated : admotors-android/app/src/main/res/values-pt/strings.xml
updated : admotors-android/app/src/main/res/values-ru/strings.xml
updated : admotors-android/app/src/main/res/values-th/strings.xml
updated : admotors-android/app/src/main/res/values-tr/strings.xml
updated : admotors-android/app/src/main/res/values-zh/strings.xml
updated : admotors-android/app/src/main/res/values/colors.xml
updated : admotors-android/app/src/main/res/values/strings.xml

created : admotors-android/app/src/main/java/com/panaceasoft/admotors/db/ItemPaidHistoryDao.java
created : admotors-android/app/src/main/java/com/panaceasoft/admotors/repository/itempaidhistory/ItemPaidHistoryRepository.java
created : admotors-android/app/src/main/java/com/panaceasoft/admotors/repository/paypal/PaypalRepository.java
created : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/item/loginUserItem/LoginUserPaidItemFragment.java
created : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/item/promote/adapter/ItemPromoteHorizontalListAdapter.java
created : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/item/promote/adapter/ItemPromoteVerticalListAdapter.java
created : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/item/promote/ItemPromoteActivity.java
created : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/item/promote/ItemPromoteFragment.java
created : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/stripe/StripeActivity.java
created : admotors-android/app/src/main/java/com/panaceasoft/admotors/ui/stripe/StripeFragment.java
created : admotors-android/app/src/main/java/com/panaceasoft/admotors/viewmodel/ItemPaidHistoryViewModel/ItemPaidHistoryViewModel.java
created : admotors-android/app/src/main/java/com/panaceasoft/admotors/viewmodel/paypal/PaypalViewModel.java
created : admotors-android/app/src/main/java/com/panaceasoft/admotors/viewobject/ItemPaidHistory.java
created : admotors-android/app/src/main/res/drawable-hdpi/baseline_menu_transcation_24.png
created : admotors-android/app/src/main/res/drawable-hdpi/baseline_promotion_color_74.png
created : admotors-android/app/src/main/res/drawable-mdpi/baseline_menu_transcation_24.png
created : admotors-android/app/src/main/res/drawable-mdpi/baseline_promotion_color_74.png
created : admotors-android/app/src/main/res/drawable-xhdpi/baseline_menu_transcation_24.png
created : admotors-android/app/src/main/res/drawable-xhdpi/baseline_promotion_color_74.png
created : admotors-android/app/src/main/res/drawable-xxhdpi/baseline_menu_transcation_24.png
created : admotors-android/app/src/main/res/drawable-xxhdpi/baseline_promotion_color_74.png
created : admotors-android/app/src/main/res/drawable-xxxhdpi/baseline_menu_transcation_24.png
created : admotors-android/app/src/main/res/drawable-xxxhdpi/baseline_promotion_color_74.png
created : admotors-android/app/src/main/res/drawable/circle_black.xml
created : admotors-android/app/src/main/res/drawable/rounded_corner_global_transparent_shape_for_paid_ad.xml
created : admotors-android/app/src/main/res/layout/activity_item_promote_entry.xml
created : admotors-android/app/src/main/res/layout/activity_stripe.xml
created : admotors-android/app/src/main/res/layout/fragment_item_promote_entry.xml
created : admotors-android/app/src/main/res/layout/fragment_login_user_paid_item.xml
created : admotors-android/app/src/main/res/layout/fragment_stripe.xml
created : admotors-android/app/src/main/res/layout/item_promote_horizontal_with_user.xml
created : admotors-android/app/src/main/res/layout/item_promote_vertical_with_user.xml