AdBot Documentation

AdBot - ChatGPT Open AI Android and iOS App

AdBot is a highly popular AI-based program that people use for generating dialogues. The chatbot has a language-based model that the developer fine-tunes for human interaction in a conversational manner. It's a simulated chatbot primarily designed for customer service; people use it for various other purposes. Using the ChatGPT chatbot is fairly simple, as all you have to do is type in your text and receive the information. Premium features like that text to speech multiple language support configuration, speech to text multiple language support configuration, text share, image download and share. However, OpenAI does require an account before you can use any of its tools, so if you don't have one, you will have to register. Q: Do you want to your personal and professional openAI chatbot Android and iOS Apps? This is perfect for you. Get this software licenses for entrepreneurs and start-ups. Our main goal is to provide software to entrepreneurs at a low cost.

Setup Environment

  1. Android Studio/VS Code: To customised this project you should have Flutter and Dart installed and configured effectively on your device Install Flutter Set up your editor Install the Flutter and Dart Plugins.
  2. Java (JDK): Install java jdk version - 11(LTS) according to your os system.
  3. Dart (SDK): Install the latest stable version of Dart.
  4. Flutter (SDK): To configure this project you have to install flutter updated version
  5. nb
  6. Unzip the flies folder and open it. There have source code name as adbot-app, then use your preferred IDE (Android Studio / Visual Code / IntelliJ) to open the project.
Please run this command:
                                flutter pub get
                            

Setup App

  1. App Name Change: Go to /lib/utils/strings.dart file and replace with own information, which you want to update.
  2. app
  3. Logo/Icon Change: Go to /assets/Logo/ file and replace all image assets with keep the file name same.
  4. app
  5. Package Name and App Name Change: Go to /pubspec.yml/ file and put your app name.
  6. app

    uncomment these marked line of code

    app Please run all command:
                                            flutter pub get
                                            
    flutter pub run flutter_app_name

    After running all command, please comment out these code again like this.

    app
  7. App Laucnher Name-Icon Change: Go to /flutter_launcher_icons.yml/ file and put your luncher icon path
  8. app Please run all command:
                                            flutter pub get
                                        
                                            flutter pub run flutter_launcher_icons
                                        
                                            flutter pub run change_app_package_name:main com.new.package.name
                                        
    Where com.new.package.name is the new package name that you want for your app. replace it with any name you want.
  9. Go to /lib/services/status_service_admin.dart file and changes status: true=ENABLE, false=DISABLE
  10. app
  11. Please try to use real device for installing app, sometimes it's not run emulator/simulator

Setup Firebase

Follow the below steps to add your flutter app to firebase: We are going to add our flutter app to firebase using Firebase CLI but Firebase CLI needs node js to work on the operating system.

Setup Payment Gateway

    Setup ChatGPT OPEN AI API KEY and Paypal Payment:

  1. Go to Firebase Console and Open Firestore Database, then click on +Start Collection and make Collection ID name as "credentials" and click on Next button.
  2. app After that, add new Document ID name as "manage-api-key" and add those fields and put their values, click on Save button. app Final result will look like that, app

    Setup Stripe Gateway

  1. Go to /lib/utils/config.dart file and put your own gateway information
  2. app

    Setup Paystack

  1. Create an account from paystack Click Here
  2. After Login to account then collect Public key and Go to /lib/utils/config.dart file and put your own gateway information
  3. app
  4. Copy that Secret key, and Public key > paste that to your Project > ApiConfig file
  5. app

    Setup Flutterwave

  1. Create an account from Flutterwave Click Here
  2. After Login to account then go to settings > API key & Webhooks > (Secret key & Public key)
  3. app

    Setup SSLCommerz

  1. First Read Doc Click Here
  2. There are two processes of integration:
      SSLCOMMERZ Easy Checkout in your checkout page
      Redirect the customer from your checkout page to SSLCOMMERZ Hosted page
  3. For registration in Sandbox Click Here
  4. For registration in Production Click Here
  5. Registration in Sandbox :
      Click Create Sandbox Account
    app
      Fill Application Domain Name
    app
      Write Your Company Name
    app
      Company Location
    app
      Write your name
    app
      Email
    app
      Number
    app
      Set user name
    app
      Set Password & confirm password
    app
      Now Review your Info and If ok then Click Confirm Reg or go to previous and set again
    app
      After Reg Success Check your email for Store ID and Secret Key
    app app
      You may check our plugins available for multiple carts and libraries: Click Here
    app
  6. For Flutter:
      For iOS : Deployment Target : 11.0 (Simulator will not work)
      For Android : minSdkVersion 18
  7. Installation: flutter pub add flutter_sslcommerz
      This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get): dependencies:
    flutter_sslcommerz: ^2.1.0-nullsafety.0
  8. Add Comment out this code in in you android>manifest file
  9. app
  10. In application tag add this comment out code
  11. app
  12. Add Comment out this code in android>app>build level
  13. app
    1. AppDevs Example LINK: Click Here

Setup In App Purchase

For GPay

  1. Go to Google Pay for Business and sign up your GPay Account.
  2. Create your account and go to Google Pay & Wallet Console and collect merchantId and merchantName.
  3. Then open /assets/google_pay.json file and put merchantId and merchantName.
  4. In App Purchase

For ApplePay

  1. Go to Apple Pay and sign up your Apple Pay Account.
  2. Create your account and go to dashboard and collect merchantIdentifier, displayName and shippingMethods.
  3. Then open /assets/apple_pay.json file and put merchantIdentifier, displayName and shippingMethods.
  4. In App Purchase

Setup Landing Page

Requirements

  1. After download the adbot-app files from codecayon , you will get landing page as well. Open the adbot file on VS Code. It's can be installed on a domain or subdomain: For Example, yourdomain.com OR xyz.yourdomain.com. Don’t install the landing page in a sub directory (like: yourdomain.com/folder)
  2. Go to Click Here Download the Node.js source code or a pre-built installer for your platform.
  3. Open terminal solve it by following:
  4.                                         npm install
                                        
                                            npm start
                                        

For Customization

  1. Image Assets: go to /src/assets/images/ file and replace all image assets with keep the file name same.
  2. landing
  3. Config: go to /src/components/utils/Config.jsx file and replace with own information, which you want to update
  4. landing
  5. Strings: go to /src/components/utils/Strings.jsx file and replace with own information, which you want to update
  6. landing

Server Deployment

  1. Open your terminal and run this command
  2.                                         npm run build
                                        
    landing
  3. build folder will genertate look like this
  4. landing
  5. please zip the build folder
  6. landing
  7. Login with cPanel server and go to public_html folder, then click on Upload
  8. landing
  9. Upload the build zip file here
  10. landing
  11. After completing upload successfully, go back to public_html folder and reload it. You will get build zip file and click on mouse right button and extract it.
  12. landing
  13. Go to build folder and select all files and click on Move
  14. landing
  15. Confirm public_html folder path and click Move Files button.
  16. landing
  17. Select build folder and build zip files and delete these. Because it's unnecessary.
  18. landing
  19. Finally, run your domain address on the browser, look like this
  20. landing

Build & Run:

Run the Android Application:

  1. In the target selector, select an Android device for running the app. If none are listed as available, select Tools> Android > AVD Manager and create one there. For details, see Managing AVDs. Click the run icon in the toolbar, or invoke the menu item Run > Run. Locate the main Android Studio toolbar:
  2. If you don't use Android Studio or IntelliJ you can use the command line to run your application using the following command:
  3.                                         flutter run
                                        
    build

Run the iOS Application:

  1. The first thing that we require in hand is a test flutter app on our Mac
  2. Before we start testing our flutter app on the iPhone you need to make sure that our phone trusts us as a developer on that device. To do that follow this path go:
  3.                                         Settings > General > Device Management or Profile > (Tap On) Trust “Your Developer Name”
                                        
  4. To test or deploy our flutter app to a physical device we first need to enable physical device deployment in Xcode using Apple ID or an Apple Developer account. And we also need to set up a package manager to manage flutter plugins that are to be used in the project.
  5. First, we are going to install a third-party package manager called CocoaPods to manage flutter plugins that our project might depend on. To install and set up cocoapod the below command needs to be executed successfully in the terminal.
  6.                                         $ sudo gem install cocoapods
                                        
    build
  7. After we are done with the cocoapod installation we will proceed to locate the Runner.xcworkspace file inside the ios folder in our project directory. Then we need to open this file on the Xcode with a double click. OR write command
  8.                                         $ open ios/Runner.xcworkspace
                                        
    build
  9. When it’s done loading we need to make sure we are on the Runner file which is listed first on the left menu bar.
  10. build
  11. After that, we need to be inside the Signing & Capabilities page. In this page we will click on the button which says ‘Add an Account’.
  12. build
  13. And add your Apple ID, put your password and select your account.
  14. build
  15. Now, go back to the General tab and change the Bundle Identifier to something unique. (In place of “example” put something else).
  16. build
  17. So, if you haven’t already connected your iPhone you will see “No device” in the search bar shown below.
  18. build
  19. Go ahead and connect your phone with the PC and when it’s done you will see a phone icon in place of “No device”. Select your phone which will take a few seconds to load.
  20. build
  21. And once that is done you need to press the play button on the left menu bar, which will start building the app on the iPhone
  22. build
  23. This process will take some time and once it’s done you will see a message appear that says the build process was completed successfully.
  24. build

Install And Release Android App:

Here is your section structure.

  1. After you make all your changes and customizations save all your project, Open the console, navigate to your project folder and execute the following command to build your app:
  2.                                         flutter build apk --release
                                        
  3. If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size.

Build and Install App:

  1. To generate an app bundle, run:
  2.                                         flutter build appbundle --target-platform android-arm,android-arm64,android-x64
                                        
    Learn more on https://developer.android.com/guide/app-bundle
  3. To split the APKs per ABI, run:
  4.                                         flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
                                        
    Learn more on https://developer.android.com/studio/build/configure-apk-splits#confi
  5. If you want to upload your application on Google Play you must sign it before uploading, generate a signing key by running the following command:
  6.                                         keytool -genkey -v -keystore android/app/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
                                        
  7. Reference the keystore from the app: Create a file named appdir/android/key.properties that contains a reference to your keystore:
  8.                                         storePassword=password from previous step 
    keyPassword=password from previous step
    keyAlias=key
    storeFile=location of the key store file, e.g. /Users/user name/key.jks
  9. Go to android/app/build.gradle
  10.                                         def keystorePropertiesFile = rootProject.file("key.properties")
    def keystoreProperties = new Properties()
    keystoreProperties.load(new FileInputStream(keystorePropertiesFile))

    • signingConfigs {
        release {
          keyAlias keystoreProperties['keyAlias']
          keyPassword keystoreProperties['keyPassword']
          storeFile file(keystoreProperties['storeFile'])
          storePassword keystoreProperties['storePassword']
        }
      }
    • buildTypes {
        release {
         signingConfig signingConfigs.release
        }
      }
  11. Learn More: Build and release an Android app
  12. After approved android app on PlayStore, go to inside app console Setup>App Integrity>App Signing and copy SHA-1 certificate fingerprint & SHA-256 certificate fingerprint, then paste it on firebase project and click on Save button
  13. android android android

Install And Release iOS App:

Before you can build and release your app on the App Store, you need to set up a place for it using App Store Connect. But first, you need to register a unique bundle ID for your app. This can be done by logging into your Apple Developer account and following these steps:

  1. Login to AppStore Conscole Account Click Here
  2. Open the App IDs page.
  3. Click + to create a new Bundle ID.
  4. Fill out the needed information: App Name, and Explicit App ID.
  5. If your app needs specific services, select them and click Continue.
  6. Review the details and click Register to finish.
  7. Then go to account dashboard Select My Apps.
  8. Click + then select New App.
  9. Fill in your app details and make sure iOS is selected, then click Create.
  10. From the sidebar, select App Information.
  11. In the General Information section, select the Bundle ID that you registered above.
  12. You’ve set everything up from Apple’s side, and next you’ll adjust your Xcode project’s settings to prepare your app for release. Go ahead and fire up Xcode.
  13. Open Runner.xcworkspace that is inside your app’s iOS folder.
  14. From the Xcode project navigator, select the Runner project.
  15. Go to the General tab.
  16. In the Identity section, fill out the information and make sure the Bundle Identifier is the one registered on App Store Connect.
  17. In the Signing section, make sure Automatically manage signing is checked and select your team
  18. Fill out the rest of the information as needed.
  19. Next, you’ll update your app’s icon. This can be done by selecting Assets.xcassets in the Runner folder from Xcode’s project navigator.
  20. At this point, all the settings have been updated for release and there is a placeholder ready on App Store Connect, which means you can build and release.
  21. From the command line, run flutter build ios
  22. Then go back to Xcode and reopen Runner.xcworkspace
  23. Select Product -> Scheme -> Runner
  24. Select Product -> Destination -> Generic iOS Device.
  25. Select Product -> Archive to produce a build archive.
  26. From the Xcode Organizer window, select your iOS app from the sidebar, then select the build archive you just produced.
  27. Click the Validate… button to build.
  28. Once the archive is successfully validated, click Upload to App Store
  29. Back on App Store Connect, check the status of your build from the Activities tab. Once it’s ready to release:
  30. Go to Pricing and Availability and fill out the required information.
  31. From the sidebar, select the status.
  32. Select Prepare for Submission and complete all required fields.
  33. Click Submit for Review
  34. Learn More: Build and release an iOS app
  35. That’s it! Your app will now be uploaded to the App Store. Apple will review your app before releasing and keep you updated on the status of your app.
  36. After uploading ios app on AppStore, go to inside app console App Information>Apple ID and copy, then paste it on firebase project
  37. ios

Support

Once again, thank you so much for purchasing this app. As I said at the beginning, I'd be glad to help you if you have any questions relating to this app. Just let us know, We will assist you. Contact us at support center.

Email Us : [email protected]

[N.B. For this project, you have to follow our documentation where we noted the requirements. if you face any kind of problems or fail to configure this project, then we are not responsible for this situation. after that, if you want to configure this project by us then you will have to pay for that installation charge. Thank You.]