Introduction
Country Radio is an advanced multi-station radio streaming application offering a plethora of features. It includes support for multiple radio stations, Country Filters, Customizable favorite lists, and integration with AdMob ads, All Screen Player, Auto Stop Timer, among others. These functionalities are encapsulated within an elegant UI design. This versatile template enables users to seamlessly create their own impressive applications, thereby significantly reducing time and effort.
System Required
-
Gmail Account credentials for Firebase
-
Apple developer account credentials : Create Account
-
Android Studio : Download
-
Flutter Sdk : Download
-
Branch.io Account : Create Account
-
Xcode (Only Mac Users).
Things to do before you continue
-
Setup Backend (Must do it)
-
Once you follow above documentation, you will find some credentials like Base url, Admin panel link and password etc. collect them as you will require them as we continue.
Change Base URL
-
Find the country_radio.zip from the folder downloaded from codecanyon and open in in android studio.
-
Open country_radio>lib/utils/const_res.dart
-
Replace "baseUrl" with your BaseUrl.
-
Replace "itemBaseUrl" with your new ImageBaseUrl.
Change package name
-
Android
-
Step 1 : Go to android > app
-
Step 2 : Click to build.gradle
-
Step 3 : Here, change the only applicationId And it's done.

-
iOS
-
Step 1 : Select the ios folder
-
- In the Android Studio Project panel , locate the ios folder under your Flutter project.
-
-
Step 2 : Navigate to Tools > Flutter
-
- On the top menu bar, go to: Tools → Flutter → Open iOS/macOS module in Xcode
-
-
Step 3 : Xcode Opens Automatically
-
- This will launch Xcode, opening your Flutter project's iOS module.
-
- From there, you can configure signing, capabilities, launch screen, etc.
-
-
Step 4 : Go to runner > Signing & Capabilities
-
Step 5 : Change your bundle identifier as you want, and it's done.

Once the project gets opened in Xcode successfully, follow the steps below.

Change app name
-
Android
-
Step 1 : Go to android > app > src > main > AndroidManifest.xml and make changes shown in the below image.

-
iOS
-
Step 1 : Now right click on iOS directory flutter > Open iOS module in Xcode
-
Step 2 : Now go to Runner > General > Display Name, change it as you want.


Change app color
-
Step 1 : Now go to your project lib > utilities > color_res.dart as shown in the below image.

Change app font family
-
Step 1 : Select any font from google font
-
Visit the https://fonts.google.com/
-
Search for your font.
-
Once you find it, click to open.
-
Click on the Download Family button on the top right side of your screen.
-
Extract the compressed file.
-
Step 2 : Import the Font into Project
-
Copy-Paste [font].ttf file into the fonts folder.
-
Step 3 : Add Font to Pubspec.yaml
-
Replace the family name with your font family. To get the family name, simply take the first part before the dash sign (-). For example, if the downloaded font name is Montserrat-Regular , take the Montserrat as your family name
-
Go to pubspec.yaml file:
-
Replace the asset path with the path where your font is residing.
-
Then pub get to successfully load your font
Here’s how you download the font:

To import the Font in your project:

To add Font to pubspec.yaml file:

Change app icon
-
Step 1 : Generating Different Sized Icons
-
Step 2 : Adding Icons in Android.
-
Step 3 : Adding Icons in IOS
-
Step 4 : Run the Application
Go to https://www.appicon.co/ and upload the icon image and tick the iPhone and Android options and click on Generate. This site generates different sized Icons for both android and IOS at the same time.

It will Download the Zip file named AppIcons with the android and Assets.xcassets named folders along with images for appstore and playstore which can be directly uploaded as an icon in both the stores

Now, open your Project in Android Studio.
Navigate to android/app/src/main/res and right-click on res folder and click "open in Finder". Now delete all the mipmap folders in res folder and paste the mipmap folders from AppIcon/android folder which you have downloaded.

Now navigate to the ios/Runner/Assets.xcassets. Now after you are in Runner folder, right-click on Runner folder and click “open in Finder”. Now delete the Assets.xcassets folder and paste the Assets.xcassets folder from AppIcon/Assets.xcassets which you have downloaded.

After manually changing the images in android and IOS folders now go to lib/main.dart and run the flutter project using the below command in the flutter console.
flutter run

Configure Firebase
-
Go to the firebase project you might created while following backend documentation.
-
If you don't have, follow the steps below and create one project.
-
At first, follow this link https://firebase.google.com/
-
Now, we first have to create a Firebase project. Firebase project will go through and describe what it is. This allows us to add an app to that project. It can have many projects inside of Firebase.
-
Now, we have to give a name and id to the project, enable Google Analytics for the project, set an analytics location, and accept all the terms and conditions. Firebase console automatically creates a unique id for the project.
-
Step 1 : Giving a name to the project
-
Step 2 : Enable Google analytics for the project
-
Step 3 : First Choose default Firebase account and then create project






Add Android app to Firebase
-
In the next step, we have to choose the platform to add Firebase to our application. The platform can be Android, iOS, Web etc..
-
Your package name is generally the applicationId in your build.gradle (app-level) file
-
See this page for information on using keytool to get the SHA-1 hash of your signing certificate
-
Add your applicationid in the first field and SHA-1 to the third field as shown in the image below.
-
Download the google-services.json file & place it in your project's app root directory.
-
Back in the Firebase console-setup workflow, click Next to skip the remaining steps and then finish and complete





Add iOS app in Firebase
-
We have to choose the platform to add Firebase to our application. Click on iOS.
-
On the next screen, enter your iOS bundle ID & App nickname and click on Register App. You can find your bundle ID in the General tab for your app's primary target in Xcode. If specified, the app nickname will be used throughout the Firebase console to represent this app. Nicknames aren't visible to users.
-
Download the GoogleService-Info.plist file & move the GoogleService-Info.plist file you just downloaded into the root of your Xcode project and add it to all targets. Make sure the config file is not appended with additional characters, like (2).
-
Back in the Firebase console-setup workflow, click Next to skip the remaining steps and the finish.
-
Click to Authentication and sign in mathod tab
-
Click to Enable
-
Select your support email and save
-
Successfully Enable google sign in method
-
Set Google ‘REVERSED_CLIENT_ID’
-
Open GoogleService-Info.plist file and find ‘REVERSED_CLIENT_ID’ and Copy it.
-
And paste it in project > target > info > URL Types
-
Click to Authentication and sign in mathod tab
-
Then click on email/password provider
-
Then both button switch to enable and save
-
Your email and password successfully Enable
-
Click to Authentication and sign in mathod tab
-
Then click to apple provider
-
Click to Enable and save it
-
your apple provider Successfully Enable
-
Login to Apple Developer Account
-
- Go to Apple Developer Account
-
- Log in with your Apple Developer credentials.
-
-
Navigate to Keys Section
-
- Click Certificates, Identifiers & Profiles.
-
- In the left sidebar, click Keys.
-
-
Enter a name (e.g., NotificationKey ).
-
Check the box for Apple Push Notifications service (APNs). then Configure button press
-
Select Environment section Select "Sandbox & Production" and Key Restriction section select "Team Scoped (All Topics)"
-
Click "Continue" & then "Save". Once saved, you will be presented with a screen displaying the private "Key ID" & the ability to download the key. Copy the ID, and download the file to your local machine:
-
The file & Key ID can now be added to your Firebase Project. On the Firebase Console, navigate to the "Project settings" and select the "Cloud Messaging" tab. Select your iOS application under the "iOS app configuration" heading.s
-
Upload the downloaded file and enter the Key & Team IDs;
-
Follow This guide and setup project at Branch.io.
-
Setup subscriptions
-
You need to define subscriptions on Google Play Console (For Android) and Apple App Store Connect (For iOS) before connecting with RevenueCat.
-
Android subscription : Follow this guide
-
iOS subscription : Follow this guide
-
Create an account or log in to RevenueCat from here to get started.
-
If you have created a new account, you will be automatically prompted to create your first project. Enter a Project name and click "CREATE PROJECT" button.
-
Next, you need to add your Android and iOS apps to RevenueCat in order to use and manage the subscriptions.
-
Let's start by configuring the Android app:
-
Go to Apps under Project settings (from the left menu). Select Play Store .
-
Enter the App name and the package ID.
-
You need to create another Service Account for RevenueCat. Follow This guide to generate the credentials in JSON format. Drag and drop the Credentials JSON file. Click "SAVE CHANGES".
-
This completes the Android app setup on RevenueCat.
-
Follow the steps below to configure the iOS app:
-
Go back to the Apps page and click on "+ New".
-
Select App Store.
-
Enter an App name, Bundle ID, and App-Specific Shared Secret. To generate an App-Specific Shared Secret, follow The guide . Once you have the key, click "SET SECRET", enter the value, and click Set. Then click "SAVE CHANGES".
-
This completes the iOS app setup on RevenueCat.
-
You will find these configuration levels on the left menu of the RevenueCat dashboard under the section Product Setup:
-
In this configuration, you need to add all the subscriptions for both your Android and iOS app that the user can purchase. This is like a 1-to-1 mapping of the products in RevenueCat that you have already added to the stores (Google Play Store and Apple App Store).
-
To add products, follow these steps:
-
Select Products under the Product Setup section. Click "+ New".
-
You need to enter the product Identifier and the App . Make sure you use exactly the same product ID you used for the Android/iOS subscription. Click ADD .
-
Similarly, add the other subscriptions as well (for both Android and iOS).
-
Follow these steps to add an entitlement:
-
Select Entitlements under the Product Setup section. Click "+ New".
-
Enter an Identifier and Description for the entitlement. Click ADD.
-
Next, you need to attach the products to this entitlement. Click on the entitlement that you just created.
-
Click on Attach.
-
Select a Product from the dropdown and click ADD .
-
Similarly, attach all the other products to this entitlement.
-
Follow the steps below to add offerings:
-
Select Offerings under the Product Setup section. Click "+ New".
-
Enter an Identifier and Description for the offering. Click ADD.
-
Click to open the offering that you just created.
-
Click on "+ New" beside the Packages.
-
Enter an Identifier for the package from the dropdown and add a Description . Click ADD.
-
Similarly, add the other packages as well.
-
Click to open a package. Then click Attach.
-
Select the respective Play Store and App Store products from the dropdown. Click Attach.
-
Similarly, attach the correct products to the other two packages as well.
-
This completes the three levels of configuration on the RevenueCat.
-
you need to add the App Store Key and Play Store Key to Your project You can get these keys by going to the RevenueCat dashboard > API Keys > Public app-specific API keys. Copy and paste these keys into the respective fields of Project
-
Follow This guide and you can create build for android.
-
Follow This guide and you can create build for iOS.
- Telegram (Support Desk) : +91 7990425274
- Email : help.retrytech@gmail.com
- Whatsapp (No Support Here) : +91 7990425274





Google sign in




Email sign in





Apple sign in



Create APNs Auth key for push notification






Copy Key ID & Download File



Branch.io Setup
Subscription
Connect with RevenueCat


Adding Android app



Adding iOS app



Define subscriptions on RevenueCat

Products



Entitlements






Offerings









RevenueCat Project setup


