Please carefully read this guide in order to fully configure this template, and remember to test it on a Real Device – the Emulator may fail.
An internet connection is required.
IMPORTANT: The backend of this template is the DBase API.
https://mydomain.com/dbasefiles
- and replace the string of the DATABASE_PATH
variable in the DBase.swift
file with your URL:
let DATABASE_PATH = "http://xsgames.co/__apps/bazaar/";
Users.json
and Posts.json
files
This template has native Apple Swift code, so you can edit it only with Xcode running on a Mac computer. If you don’t have it, download it for free on the Mac App Store.
Info.plist
file – you can find it in the files list on the left-side panel – and set the text you wish in the Value
column of the Privacy rows.Main.storyboard
and you can find it in the list of file that is shown in left-side panel of the Xcode window.tou.html
file form the left-side panel’s list in Xcode – it’s located into the Intro-Login-SignUp folder – and edit it accordingly to your own Terms of Service and Privacy Policy. Also, replace the APP_NAME
words with the new name you assigned to your App. "mailto:support@yourdomain.com">support@yourdomain.com
tou.html
file, so you must replace support@yourdomain.com with a valid email address where people can contact you for any question, feedback or in case they want to delete their account.
ID_id value
, select that row and click the Delete Row(s) button.ID_id
value you’ve previously noted in all the other Tables of your database, check out all the rows until you’ll find that ID_id
and delete it – this happens in case it appears into some Array type columns.
ID_id
in your database:
AR_reportedBy
in the Items table has some cell with the ID_id value of some user, and take action for it asap. You may delete the abusive User or Item from your database forever by selecting a cell and click Delete Row(s), but please note that before deleting a user from the Users table you must note its ID_id and search for it in the other tables, and remove such ID’s if necessary.
Users.json
and Posts.json
files
let APP_NAME = "Bazaar"
let GOOGLE_SIGN_IN_CLIENT_ID = "191162618244-xyzweradsrztd.apps.googleusercontent.com"
let ADMOB_INTERSTITIAL_UNIT_ID = "ca-app-pub-3940256099942544/1033173712"
You also have to replace the string into Info.plist
with your own App ID:#
symbol. The main color of the app and some UI will be affected by your change:
let MAIN_COLOR = hexValue("#70ceb8")
let BLACK_COLOR = hexValue("#252525")
let LIGHT_GREY = hexValue("#F2F3F7")
.ttf
or .otf
font file into the left-side panel in Xcode and click the Finish button in the popup that will show up: public static String ADMIN_EMAIL = "admin@email.com";
let MAX_TIME_FOR_VIDEO: TimeInterval = 10 // seconds
XXXXXXXXXX
with the ID of your app while preparing it for submission on its App Store Connect page:
let APP_STORE_LINK = "http://itunes.apple.com/app/id" + "XXXXXXXXXX"
let PRICE_CURRENCY = "USD"
Assets.xcassets/Categories
folder in Xcode accordingly to your changes, ALL lowercase characters:
let categoriesList = [
"All Categories", // Mandatory element, it must stay at first position
"Clothes",
"Home",
"Electronics",
"Hobbies",
"Toys",
"Pets",
"Books",
"Music",
"Health",
"Vehicles",
"Properties",
"Other",
// If you'll add new Categories here, remember to add their relative images in the 'Assets.xcassets/Categories' folder too, all lowercase names
]
let citiesList = [
"All Categories", // Mandatory element, it must stay at the first position
"New York City",
"Chicago, Illinois",
"Charleston, South Carolina",
"Las Vegas, Nevada",
"Seattle, Washington",
"San Francisco, California",
"Washington, D.C.",
"New Orleans, Louisiana",
"Palm Springs, California",
"San Diego, California",
"St. Louis, Missouri",
"Sedona, Arizona",
"Honolulu, Hawaii",
"Miami Beach",
"Branson, Missouri",
"Boston, Massachusetts",
"Savannah, Georgia",
"Orlando, Florida",
"Portland, Oregon",
"Lahaina, Hawaii",
"Saint Augustine, Florida",
"Nashville, Tennessee",
"Los Angeles, California",
"San Antonio, Texas",
"Austin, Texas.",
]
let listingTypes = [
"On sale",
"Looking for"
]
Price ranges
Youcan edit the items of this array as you wish, just keep their format, which is From + an integer number:
let priceRanges = [
"Any price", // Mandatory element, it must stay at first position
"From 30",
"From 50",
"From 100",
"From 150",
"From 200",
"From 500",
"From 1000",
]
// MARK: - TABLES & COLUMNS NAMES
DATABASE_PATH
into the DBase.java
file
GOOGLE_SIGN_IN_CLIENT_ID
variable of the DBase.swift file in Xcode. let GOOGLE_SIGN_IN_CLIENT_ID = "191162618244-qmjf889os6jffa53d53el3dsk87..."
AuthKey_XXXXXXXX.p8
file on your computer. Pay attention, you’ll be able to download it only once, so save it in a safe place!_Push
folder of your DBase backend in your server fireInterstitialAd;
Xcode will show you a list of Swift files where such code is located.