GitHub Text Fetcher Extension for Kodular Easily fetch raw text data directly from GitHub for dynamic content in your Kodular apps.
This Kodular extension (GitHub Text Fetcher) provides a simple and efficient way for your applications to retrieve raw text content from any public GitHub file. This allows you to update in-app information (like announcements, configurations, news, etc.) without needing to publish a new app version.
1.Asynchronous Data Fetching: Retrieves text data in the background without freezing your app's UI. 2.Direct GitHub Raw Link Support: Works directly with the raw file URLs from GitHub. 3.Event-Driven Responses: Triggers specific events for both successful data retrieval and any errors that occur. 4.Lightweight & Easy to Use: Minimal blocks required to integrate dynamic content.
Download the DB_Github.aix file from the root of this repository. Open Kodular Creator. In the Palette section, navigate to "Extension" and click "Import Extension." Select and import the downloaded GitHubTextFetcher.aix file. Drag the GitHubTextFetcher component from the "Extension" category onto your screen in the Designer.
The DB_Github extension provides the following blocks for seamless integration with your Kodular projects:
with this block you can call spesific text data but you must add its raw URL example: (https://raw.githubusercontent.com/your-username/your-repository/main/your-file.txt)
This event is triggered when the text data has been successfully fetched from the GitHub raw URL specified in the GetGithubData call. This is where you will receive the content of your GitHub file.
This event is triggered if an error occurs during the data fetching process (e.g., network issues, invalid URL, file not found, server errors, or any other issue that prevents a successful request).
This event allows you to download a file from a specified URL (e.g., a raw GitHub file) and save it to a designated location on the user's device. This is particularly useful for downloading assets, configurations, or other files directly from your GitHub repository.
This method is designed to fetch JSON formatted data from a specified URL, typically a raw JSON file hosted on GitHub.
This event is triggered when a file initiated by the Download File method has been successfully downloaded and saved to the specified folderPath on the device.
This event is triggered when JSON data, initiated by the FetchJsonData method, has been successfully fetched from the specified GitHub URL. This block provides the raw JSON content as a string, which you can then parse using Kodular's built-in JSON utilities.






