✏️
WorDroid
  • Getting Started
  • Requirements
  • Changelog
  • Step 1: Register your app
    • Register your app
    • Add your site
    • Add Navigation Drawer & Bottom Navigation Items
    • Configure Basic Settings
  • Step 2: Wordpress Plugin
    • Install the WordPress plugin
    • Sync the settings from dashboard
    • Customize app homepage
    • Notification Settings
  • OneSignal Configuration
  • Firebase Configuration
  • Step 3 : Android Studio Part
    • Change Package Name
    • Firebase Configuration
    • Add Site URL and Other Configuration
    • Change Text-to-speech language
    • Configure Login
    • Generating APK / Signed APK
  • FAQ
  • Bug Fixes
    • Release APK Crashes after signing
    • Unable to comment on posts
  • Data Helper
Powered by GitBook
On this page
  • Change SITE URL
  • YouTube Configuration
  • OneSignal ID
  • Force RTL

Was this helpful?

  1. Step 3 : Android Studio Part

Add Site URL and Other Configuration

PreviousFirebase ConfigurationNextChange Text-to-speech language

Last updated 5 years ago

Was this helpful?

You need to add your Site URL, RTL Setting, YouTube API Key, Chanel ID etc.

Go to com > itsanubhav > wordroid4 > Config.java

Change SITE URL

Config.java
public static final String SITE_URL = "http://dev.itsanubhav.com/";

Change this to your site url

Also make sure you put your URL in the AndroidManifest.xml file so that you app can deal with the deeplinks.

AndroidManifest.xml
<data
    android:host="dev.itsanubhav.com"
    android:scheme="https" />

YouTube Configuration

Config.java
public static final String chanelID = "UCWU5xE86VniV8eZ6mKce-Tw";

public static final String YT_API_KEY = "AIzaSyBtENkElp2xxxxxxxoYErJCGlMY8XPxxxxx";

public static final String YT_LATEST_CHANEL_ID = "UUNhT2txZHDfeIS0g7ZK7uRg";

and replace the value of YT_API_KEY.

YT_LATEST_CHANEL_ID is the playlist id of your latest videos channel.

OneSignal ID

You need to put your OneSingal App ID in the build.gradle (Module: app) file.

build.gradle
manifestPlaceholders = [
        onesignal_app_id               : '82fa91c3-9c88-4c3f-9fc5-dc88a0149038',
        // Project number pulled from dashboard, local value is ignored.
        onesignal_google_project_number: 'REMOTE'
]

Force RTL

You can force the app to support the RTL (Right to left). Just go to the Config.java and change the FORCE_RTL = false to FORCE_RTL = true

Config.java
public static final boolean FORCE_RTL = false;

Find your YouTube Chanel ID and paste it in the value of chanelID

Create your own API key
here