PSWallpapers Android (v2.9) Released Note

Tags:

Change Logs

– Language Configuration Modified to use Database instead of language file (backend)
– Backend setting as New Feature to use Database instead of ps_config file(backend)
– sending email with SMTP email
– user id added to noti register and unregister ( Api )
– when register user delete, related table will delete (backend)
– relate breadcrumb item with lang (backend)

 

Backend Effected files

– application/language/english/index.html (deleted)
– application/language/english/ps_lang.php (deleted)
– application/config/autoload.php
– application/config/ps_config.php
– application/controllers/Main.php
– application/controllers/backend/Backend_configs.php
– application/controllers/backend/Language_strings.php
– application/controllers/backend/Languages.php
– application/controllers/backend/Notis.php
– application/controllers/rest/Images.php
– application/controllers/rest/Users.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/libraries/PS_Mail.php
– application/models/Backend_config.php
– application/models/Language.php
– application/models/Language_string.php
– application/models/Module.php
– application/views/backend/abouts/entry_form.php
– application/views/backend/app_users/entry_form.php
– application/views/backend/backend_configs/entry_form.php
– application/views/backend/backend_configs/entry_form_script.php
– application/views/backend/categories/entry_form.php
– application/views/backend/categories/list.php
– application/views/backend/categories/list_script.php
– application/views/backend/categories/search_form.php
– application/views/backend/colors/search_form.php
– application/views/backend/components/delete_language_modal.php
– application/views/backend/components/favicon_upload_modal.php
– application/views/backend/components/sidebar_logo_upload.php
– application/views/backend/components/warning_confirm_modal.php
– application/views/backend/language_strings/entry_form.php
– application/views/backend/language_strings/entry_form_script.php
– application/views/backend/language_strings/list.php
– application/views/backend/language_strings/search_form.php
– application/views/backend/languages/entry_form.php
– application/views/backend/languages/entry_form_script.php
– application/views/backend/languages/list.php
– application/views/backend/languages/list_script.php
– application/views/backend/languages/search_form.php
– application/views/backend/partials/breadcrumb_language.php
– application/views/backend/partials/header.php
– application/views/backend/partials/language_form.php
– application/views/backend/partials/language_list.php
– application/views/backend/partials/sidebar.php
– application/views/backend/registered_users/entry_form.php
– application/views/backend/system_users/entry_form.php
– application/views/backend/wallpapers/list.php
– application/views/backend/wallpapers/list_script.php
– uploads/favicon1.ico
– uploads/login_background.png
– uploads/thumbnail/login_background.png
– uploads/thumbnail/wp_logo_121.png
– uploads/wp_logo_121.png
– application/controllers/backend/Backend_configs.php
– application/helpers/ps_helper.php
– application/libraries/PS_Mail.php
– application/views/backend/backend_configs/entry_form.php
– application/views/backend/shuffles/entry_form.php
– application\controllers\rest\Notis.php
– application/libraries/PS_Delete.php
– application/models/Noti.php
– application/models/Touch.php

SQL

CREATE TABLE psw_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 psw_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;

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

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

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

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`);

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

INSERT INTO `core_backend_config` (`id`, `sender_name`, `sender_email`, `receive_email`, `fcm_api_key`) VALUES ('be1', 'Team PS', 'admin@panacea-soft.com', 'teamps.is.cool@gmail.com', 'AIzaSyBSVKk7S3AIO20az0CzX9wkmb8Z_DCJ7Wo');

UPDATE `core_modules` SET `module_lang_key` = 'cat_module' WHERE `core_modules`.`module_id` = 1;
UPDATE `core_modules` SET `module_lang_key` = 'wallpaper_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` = '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` = 'noti_module' WHERE `core_modules`.`module_id` = 7;
UPDATE `core_modules` SET `module_lang_key` = 'analytics_module' WHERE `core_modules`.`module_id` = 8;
UPDATE `core_modules` SET `module_lang_key` = 'export_db_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` = 'favourite_module' WHERE `core_modules`.`module_id` = 11;
UPDATE `core_modules` SET `module_lang_key` = 'most_wallpaper_module' WHERE `core_modules`.`module_id` = 12;
UPDATE `core_modules` SET `module_lang_key` = 'colors_module' WHERE `core_modules`.`module_id` = 13;
UPDATE `core_modules` SET `module_lang_key` = 'most_download_module' WHERE `core_modules`.`module_id` = 14;
UPDATE `core_modules` SET `module_lang_key` = 'api_key_module' WHERE `core_modules`.`module_id` = 15;
UPDATE `core_modules` SET `module_lang_key` = 'api_setting_module' WHERE `core_modules`.`module_id` = 16;
UPDATE `core_modules` SET `module_lang_key` = 'most_earning_module' WHERE `core_modules`.`module_id` = 17;
UPDATE `core_modules` SET `module_lang_key` = 'most_rating_module' WHERE `core_modules`.`module_id` = 18;
UPDATE `core_modules` SET `module_lang_key` = 'pending_module' WHERE `core_modules`.`module_id` = 19;
UPDATE `core_modules` SET `module_lang_key` = 'reject_module' WHERE `core_modules`.`module_id` = 20;
UPDATE `core_modules` SET `module_lang_key` = 'massupload_module' WHERE `core_modules`.`module_id` = 21;
UPDATE `core_modules` SET `module_lang_key` = 'multipleupload_module' WHERE `core_modules`.`module_id` = 22;
UPDATE `core_modules` SET `module_lang_key` = 'version_module' WHERE `core_modules`.`module_id` = 23;

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` = 'approval_group' WHERE `core_menu_groups`.`group_id` = 2;
UPDATE `core_menu_groups` SET `group_lang_key` = 'report_group' WHERE `core_menu_groups`.`group_id` = 3;
UPDATE `core_menu_groups` SET `group_lang_key` = 'user_man_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;

ALTER TABLE `core_backend_config` ADD `smtp_enable` TINYINT(1) NOT NULL AFTER `fcm_api_key`;
ALTER TABLE `core_backend_config` ADD `smtp_host` VARCHAR(255) NOT NULL AFTER `smtp_enable`;
ALTER TABLE `core_backend_config` ADD `smtp_port` VARCHAR(255) NOT NULL AFTER `smtp_host`;
ALTER TABLE `core_backend_config` ADD `smtp_user` VARCHAR(255) NOT NULL AFTER `smtp_port`;
ALTER TABLE `core_backend_config` ADD `smtp_pass` VARCHAR(255) NOT NULL AFTER `smtp_user`;

UPDATE `core_backend_config` SET `smtp_enable` = '0', `smtp_host` = 'ssl://smtp.dreamhost.com', `smtp_port` = '587', `smtp_user` = 'sender@blog.panacea-soft.com', `smtp_pass` = '12345678' WHERE `core_backend_config`.`id` = 'be1';

ALTER TABLE `psw_push_notification_tokens` ADD `user_id` VARCHAR(255) NOT NULL AFTER `os_type`;

 

Android Change Log
- Fixed notification on/off issue

 

Android Changes
updated : app/build.gradle
updated : app/src/main/java/com/panaceasoft/pswallpaper/Config.java
updated : app/src/main/java/com/panaceasoft/pswallpaper/MainActivity.java
updated : app/src/main/java/com/panaceasoft/pswallpaper/api/PSApiService.java
updated : app/src/main/java/com/panaceasoft/pswallpaper/db/PSCoreDb.java
updated : app/src/main/java/com/panaceasoft/pswallpaper/repository/aboutus/AboutUsRepository.java
updated : app/src/main/java/com/panaceasoft/pswallpaper/repository/common/NotificationTask.java
updated : app/src/main/java/com/panaceasoft/pswallpaper/ui/common/NotificationTaskHandler.java
updated : app/src/main/java/com/panaceasoft/pswallpaper/ui/notification/NotificationSettingFragment.java
updated : app/src/main/java/com/panaceasoft/pswallpaper/viewmodel/common/NotificationViewModel.java



Additional Files for Small Bug Fix
 - application/controllers/rest/Users.php
 - application/helpers/ps_mail_helper.php