PS-City Android(v1.7) Version Released

Tags:


Change Logs

– user register with phone ( 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)
– choose default photo in gallery(backend)
– if shop unpublish, blog did not show (Api)

 

Backend Effected Files

– application/controllers/rest/Users.php
– application/models/User.php
– application/config/autoload.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/libraries/PS_Adapter.php
– application/libraries/PS_Mail.php
– application/libraries/braintree_lib/Braintree/Transaction.php
– application/models/Item.php
– application/models/Module.php
– application/views/backend/abouts/entry_form.php
– application/views/backend/abouts/entry_form_script.php
– application/views/backend/categories/entry_form.php
– application/views/backend/categories/list.php
– application/views/backend/cities/entry_form.php
– application/views/backend/collections/entry_form.php
– application/views/backend/collections/list.php
– application/views/backend/comments/entry_form.php
– application/views/backend/components/favicon_upload_modal.php
– application/views/backend/components/sidebar_logo_upload.php
– application/views/backend/feeds/entry_form.php
– application/views/backend/feeds\entry_form_script.php
– application/views/backend/feeds/list.php
– application/views/backend/item_reports/entry_form.php
– application/views/backend/items/entry_form.php
– application/views/backend/items/search_form.php
– application/views/backend/partials/header.php
– application/views/backend/partials/sidebar.php
– application/views/backend/popularcategories/entry_form.php
– application/views/backend/profile/entry_form.php
– application/views/backend/registered_users/entry_form.php
– application/views/backend/subcategories/entry_form.php
– application/views/backend/subcategories/list.php
– application/views/backend/system_users/entry_form.php
– application/views/backend/tags/entry_form.php
– application/views/backend/tags/list.php
– assets/backend/css/style.css
– application/controllers/backend/Backend_configs.php
– application/controllers/backend/Language_strings.php
– application/controllers/backend/Languages.php
– application/controllers/backend/Paid_configs.php
– application/controllers/backend/Paid_items.php
– application/controllers/backend/Transactions.php
– application/controllers/rest/Paid_items.php
– application/libraries/paypal/
– application/libraries/stripe_lib/
– 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_configs/
– 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/cities_background.png
– uploads/thumbnail/cities_background.png
– application\views\backend\partials\footer.php
– application/language/english/index.html (deleted)
– application/language/english/ps_lang.php (deleted)
– application/libraries/UploadHandler.php
– application/models/Image.php
– application/views/backend/components/gallery.php
– application/views/backend/transactions/list.php
– assets/fileupload/jfileupload/css/jquery.fileupload-ui.css
– assets/fileupload/jfileupload/js/jquery.fileupload-ui.js
– application/controllers/rest/Feeds.php
– application/models/rest/Feeds.php
– application/core/API_Controller.php

 

SQL Change Logs

ALTER TABLE `core_users` ADD `phone_id` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `google_id`;

ALTER TABLE `core_users` ADD `phone_verify` TINYINT(1) NOT NULL AFTER `google_verify`;

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 ('26', 'languages', 'Languages', 'language_module', '', '10', '1', '6');

CREATE TABLE cities_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 cities_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 `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_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', 'AIzaSyBFMRXy5NOBfPue3G7o9HYA_JZd6IZwmQE');

INSERT INTO core_modules (`module_id`, module_name, module_desc, module_lang_key, module_icon, ordering, is_show_on_menu, `group_id`) VALUES ('27', 'backend_configs', 'Backend Setting','backend_setting_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 ('28', 'paid_configs', 'Paid Configs', 'paid_config_module', '', '10', '1', '6');

CREATE TABLE `cities_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 `cities_paid_ads_config` ADD PRIMARY KEY(`id`);

CREATE TABLE `cities_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 `cities_paid_items_history` ADD PRIMARY KEY(`id`);

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

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

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

ALTER TABLE `cities_items` ADD `is_paid` TINYINT(1) NOT NULL AFTER `featured_date`;

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 ('29', '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 ('30', 'transactions', 'Transactions History','transaction_module', '', '10', '1', '4');

ALTER TABLE `core_images` ADD `is_default` TINYINT(1) NOT NULL AFTER `img_desc`;

UPDATE `core_modules` SET `module_lang_key` = 'cat_module' WHERE `core_modules`.`module_id` = 1;
UPDATE `core_modules` SET `module_lang_key` = 'popular_item_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` = 'system_user_module' WHERE `core_modules`.`module_id` = 4;
UPDATE `core_modules` SET `module_lang_key` = 'popular_cat_module' WHERE `core_modules`.`module_id` = 5;
UPDATE `core_modules` SET `module_lang_key` = 'most_rate_item_module' WHERE `core_modules`.`module_id` = 6;
UPDATE `core_modules` SET `module_lang_key` = 'collection_module' WHERE `core_modules`.`module_id` = 7;
UPDATE `core_modules` SET `module_lang_key` = 'export_database_module' WHERE `core_modules`.`module_id` = 9;
UPDATE `core_modules` SET `module_lang_key` = 'subcat_module' WHERE `core_modules`.`module_id` = 10;
UPDATE `core_modules` SET `module_lang_key` = 'new_feed_module' WHERE `core_modules`.`module_id` = 12;
UPDATE `core_modules` SET `module_lang_key` = 'item_module' WHERE `core_modules`.`module_id` = 13;
UPDATE `core_modules` SET `module_lang_key` = 'noti_module' WHERE `core_modules`.`module_id` = 14;
UPDATE `core_modules` SET `module_lang_key` = 'version_module' WHERE `core_modules`.`module_id` = 15;
UPDATE `core_modules` SET `module_lang_key` = 'api_key_module' WHERE `core_modules`.`module_id` = 16;
UPDATE `core_modules` SET `module_lang_key` = 'comments_module' WHERE `core_modules`.`module_id` = 18;
UPDATE `core_modules` SET `module_lang_key` = 'favourites_module' WHERE `core_modules`.`module_id` = 21;
UPDATE `core_modules` SET `module_lang_key` = 'about_module' WHERE `core_modules`.`module_id` = 22;
UPDATE `core_modules` SET `module_lang_key` = 'about_city_module' WHERE `core_modules`.`module_id` = 23;
UPDATE `core_modules` SET `module_lang_key` = 'register_user_module' WHERE `core_modules`.`module_id` = 24;
UPDATE `core_modules` SET `module_lang_key` = 'reported_item_module' WHERE `core_modules`.`module_id` = 25;
UPDATE `core_modules` SET `module_lang_key` = 'language_module' WHERE `core_modules`.`module_id` = 26;
UPDATE `core_modules` SET `module_lang_key` = 'backend_setting_module' WHERE `core_modules`.`module_id` = 27;
UPDATE `core_modules` SET `module_lang_key` = 'paid_config_module' WHERE `core_modules`.`module_id` = 28;
UPDATE `core_modules` SET `module_lang_key` = 'paid_item_module' WHERE `core_modules`.`module_id` = 29;
UPDATE `core_modules` SET `module_lang_key` = 'transaction_module' WHERE `core_modules`.`module_id` = 30;

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

Android Change Logs

– Add Item Paid AD feature
– Add Phone Login feature
– Add Back to dashboard from menu feature
– Fix login background image Issue

Android Effected Files
updated : ps-city-android/app/build.gradle
updated : ps-city-android/app/src/main/AndroidManifest.xml
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/api/PSApiService.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/Config.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/db/PSCoreDb.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/di/AppModule.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/di/MainActivityModule.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/di/ViewModelModule.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/MainActivity.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/repository/item/ItemRepository.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/repository/user/UserRepository.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/apploading/AppLoadingFragment.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/common/NavigationController.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/item/adapter/ItemListAdapter.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/item/adapter/ItemPopularListAdapter.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/item/adapter/ItemVerticalListAdapter.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/item/detail/ItemFragment.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/item/history/UserHistoryListActivity.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/item/search/searchlist/SearchListAdapter.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/user/ProfileFragment.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/user/UserForgotPasswordFragment.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/user/UserLoginFragment.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/user/UserRegisterFragment.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/utils/Constants.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/utils/Utils.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/viewmodel/apploading/AppLoadingViewModel.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/viewmodel/user/UserViewModel.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/viewobject/holder/ItemParameterHolder.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/viewobject/Item.java
updated : ps-city-android/app/src/main/java/com/panaceasoft/pscity/viewobject/PSAppInfo.java
updated : ps-city-android/app/src/main/res/layout/fragment_item.xml
updated : ps-city-android/app/src/main/res/layout/fragment_profile.xml
updated : ps-city-android/app/src/main/res/layout/fragment_user_forgot_password.xml
updated : ps-city-android/app/src/main/res/layout/fragment_user_login.xml
updated : ps-city-android/app/src/main/res/layout/fragment_user_register.xml
updated : ps-city-android/app/src/main/res/layout/item_item_list_with_city_name.xml
updated : ps-city-android/app/src/main/res/layout/item_item_vertical_list_adapter.xml
updated : ps-city-android/app/src/main/res/layout/item_item_vertical_with_city_name.xml
updated : ps-city-android/app/src/main/res/menu/menu_drawer.xml
updated : ps-city-android/app/src/main/res/values-ar/strings.xml
updated : ps-city-android/app/src/main/res/values-de/strings.xml
updated : ps-city-android/app/src/main/res/values-es/strings.xml
updated : ps-city-android/app/src/main/res/values-fr/strings.xml
updated : ps-city-android/app/src/main/res/values-hi-rIN/strings.xml
updated : ps-city-android/app/src/main/res/values-in/strings.xml
updated : ps-city-android/app/src/main/res/values-it/strings.xml
updated : ps-city-android/app/src/main/res/values-ja/strings.xml
updated : ps-city-android/app/src/main/res/values-ko/strings.xml
updated : ps-city-android/app/src/main/res/values-ms/strings.xml
updated : ps-city-android/app/src/main/res/values-pt/strings.xml
updated : ps-city-android/app/src/main/res/values-ru/strings.xml
updated : ps-city-android/app/src/main/res/values-th/strings.xml
updated : ps-city-android/app/src/main/res/values-tr/strings.xml
updated : ps-city-android/app/src/main/res/values-zh/strings.xml
updated : ps-city-android/app/src/main/res/values/colors.xml
updated : ps-city-android/app/src/main/res/values/strings.xml

created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/db/ItemPaidHistoryDao.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/repository/itempaidhistory/ItemPaidHistoryRepository.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/repository/paypal/PaypalRepository.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/item/promote/adapter/ItemPromoteHorizontalListAdapter.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/item/promote/adapter/ItemPromoteVerticalListAdapter.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/item/promote/ItemPromoteActivity.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/item/promote/ItemPromoteFragment.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/item/promote/LoginUserItemFragment.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/item/promote/LoginUserPaidItemFragment.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/stripe/StripeActivity.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/stripe/StripeFragment.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/user/phonelogin/PhoneLoginActivity.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/user/phonelogin/PhoneLoginFragment.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/user/verifyphone/VerifyMobileActivity.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/ui/user/verifyphone/VerifyMobileFragment.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/viewmodel/ItemPaidHistoryViewModel/ItemPaidHistoryViewModel.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/viewmodel/paypal/PaypalViewModel.java
created : ps-city-android/app/src/main/java/com/panaceasoft/pscity/viewobject/ItemPaidHistory.java
created : ps-city-android/app/src/main/res/drawable-hdpi/baseline_promotion_color_74.png
created : ps-city-android/app/src/main/res/drawable-hdpi/baseline_show_sponsor.png
created : ps-city-android/app/src/main/res/drawable-hdpi/baseline_very_phone_icon.png
created : ps-city-android/app/src/main/res/drawable-mdpi/baseline_promotion_color_74.png
created : ps-city-android/app/src/main/res/drawable-mdpi/baseline_show_sponsor.png
created : ps-city-android/app/src/main/res/drawable-mdpi/baseline_very_phone_icon.png
created : ps-city-android/app/src/main/res/drawable-xhdpi/baseline_promotion_color_74.png
created : ps-city-android/app/src/main/res/drawable-xhdpi/baseline_show_sponsor.png
created : ps-city-android/app/src/main/res/drawable-xhdpi/baseline_very_phone_icon.png
created : ps-city-android/app/src/main/res/drawable-xxhdpi/baseline_promotion_color_74.png
created : ps-city-android/app/src/main/res/drawable-xxhdpi/baseline_show_sponsor.png
created : ps-city-android/app/src/main/res/drawable-xxhdpi/baseline_very_phone_icon.png
created : ps-city-android/app/src/main/res/drawable-xxxhdpi/baseline_promotion_color_74.png
created : ps-city-android/app/src/main/res/drawable-xxxhdpi/baseline_show_sponsor.png
created : ps-city-android/app/src/main/res/drawable-xxxhdpi/baseline_very_phone_icon.png
created : ps-city-android/app/src/main/res/drawable/circle_black.xml
created : ps-city-android/app/src/main/res/drawable/rounded_corner_global_transparent_shape_for_paid_ad.xml
created : ps-city-android/app/src/main/res/layout/activity_item_promote_entry.xml
created : ps-city-android/app/src/main/res/layout/activity_phone_login.xml
created : ps-city-android/app/src/main/res/layout/activity_stripe.xml
created : ps-city-android/app/src/main/res/layout/activity_verify_mobile.xml
created : ps-city-android/app/src/main/res/layout/fragment_item_promote_entry.xml
created : ps-city-android/app/src/main/res/layout/fragment_login_user_item.xml
created : ps-city-android/app/src/main/res/layout/fragment_login_user_paid_item.xml
created : ps-city-android/app/src/main/res/layout/fragment_phone_login.xml
created : ps-city-android/app/src/main/res/layout/fragment_stripe.xml
created : ps-city-android/app/src/main/res/layout/fragment_verify_mobile.xml
created : ps-city-android/app/src/main/res/layout/item_promote_horizontal_with_user.xml
created : ps-city-android/app/src/main/res/layout/item_promote_vertical_with_user.xml