-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature app-defined language implementation #1334
Commits on May 25, 2021
-
Added classes and interfaces for Language feat
* Added Language Context Interface for getter and setter for Language Provider * Added classes Language Provider, LanguageProviderAppDefined and LanguageProviderDevice * The interface retrieves the default language set by device if a language override is not set
Configuration menu - View commit details
-
Copy full SHA for 3606b78 - Browse repository at this point
Copy the full SHA 3606b78View commit details -
* Fixed the null check in the LanguageContext class * Added getLanguage method to retrieve the language from strategy
Configuration menu - View commit details
-
Copy full SHA for 91adc50 - Browse repository at this point
Copy the full SHA 91adc50View commit details -
Added network call to setLanguage method of OneSignal class
* added network call to setLanguage method in OneSignal class * Updated device info to retrieve language from LanguageContext class * Added SET_LANGUAGE to OSTaskController String Array to execute task delays
Configuration menu - View commit details
-
Copy full SHA for 1499bac - Browse repository at this point
Copy the full SHA 1499bacView commit details -
Added Unit test scripts for setLanguage method
* Added a Unit test to test setLanguage method executing during the initialization of OneSignal library * Added a Unit test to test setLanguage method executing after the OneSignal library has been initialized * Added a Unit test to test setLanguage method executing after a an app has been restarted and new session has been initialized
Configuration menu - View commit details
-
Copy full SHA for 9984b38 - Browse repository at this point
Copy the full SHA 9984b38View commit details -
Moved getCorrectedLanguage from OSUtils to LanguageProviderDevice
* Moved the implementation of OSUtils.getCorrectedLanguage to LanguageProviderDevice.getLanguage
Configuration menu - View commit details
-
Copy full SHA for cf72b34 - Browse repository at this point
Copy the full SHA cf72b34View commit details -
Moved access of Language classes for OneSignalPrefs
* Made OneSignal.preferences public for accessibility in Language classes * Moved callbacks for OneSignalPrefs from LanguageContext and LanguageProviderAppDefined classes to OneSignal.preferences
Configuration menu - View commit details
-
Copy full SHA for 03c2cd7 - Browse repository at this point
Copy the full SHA 03c2cd7View commit details -
Fix getLanguage OSInAppMessageController and NotificationChannelManager
* Fix OSInAppMessageController variantIdForMessage retrieves languageIndentifier from OneSignal languageContext * Fix NotificationChannelManager CreateChannel retrieves deviceLanguage from OneSignal languageContext
Configuration menu - View commit details
-
Copy full SHA for 211e795 - Browse repository at this point
Copy the full SHA 211e795View commit details -
Add Singleton LanguageContext and Dependency Injection to constructor
* Add Singleton pattern to LanguageContext class * Add OSSharedPreference dependency to LanguageProviderAppDefined constructor * Add OSSharedPreference dependency to LanguageContext constructor
Configuration menu - View commit details
-
Copy full SHA for fa4a479 - Browse repository at this point
Copy the full SHA fa4a479View commit details -
Add LanguageContext Dependency to OSInAppMessageController
* Add LanguageContext dependency to OSInAppMessageController constructor * Add LanguageContext dependency to OSInAppMessageControllerFactory constructor * Add LanguageContext dependency to OSInAppMessageDummyController * Rename languageIdentifier to language in OSInAppMessageController variantIdentifier
Configuration menu - View commit details
-
Copy full SHA for 34507f0 - Browse repository at this point
Copy the full SHA 34507f0View commit details -
Update NotificationChannelManager with LanguageContext instance
* Update NotificationChannelManager createChannel to use LanguageContext instance * Rename deviceLanguage variable to language for consistency
Configuration menu - View commit details
-
Copy full SHA for 70e6cf7 - Browse repository at this point
Copy the full SHA 70e6cf7View commit details -
Convert OneSignal preferences and languageContext to private
* Convert OneSignal preferences and OneSignal languageContext from public to private since they are being called through dependency injection
Configuration menu - View commit details
-
Copy full SHA for 9e391e9 - Browse repository at this point
Copy the full SHA 9e391e9View commit details -
* Fix format space LanguageContext class * Fix format space LanguageProviderAppDefined class * Fix format space LanguageProviderDevice class
Configuration menu - View commit details
-
Copy full SHA for 9c5095f - Browse repository at this point
Copy the full SHA 9c5095fView commit details -
Remove null check and JSONException operation at OneSignal.setLanguage
* Remove unnecessary null check at OneSignal.setLanguage * Remove error logging at JSONException catch at OneSignal.setLanguage
Configuration menu - View commit details
-
Copy full SHA for b88c48d - Browse repository at this point
Copy the full SHA b88c48dView commit details -
Test Fix NotificationChannelManagerRunner.processChannelListWithMulti…
…Language * Add OneSignal.initWithContext to NotificationChannelManagerRunner.processChannelListWithMultiLanguage to allow languageContext to initialize before using languageContext.getLanguage
Configuration menu - View commit details
-
Copy full SHA for 9420512 - Browse repository at this point
Copy the full SHA 9420512View commit details -
Add NonNull annotation to getLanguage implementations
* Add NonNull annotation to getLanguage implementations in LanguageProviderDevice, LanguageProviderAppDefined and LanguageContext classes
Configuration menu - View commit details
-
Copy full SHA for 67b5a73 - Browse repository at this point
Copy the full SHA 67b5a73View commit details -
* Move "en" string to constant in LanguageProviderAppDefined class * Move Corrected Language Strings to constant in LanguageProviderDevice class * Add OSTaskRemoteController.SET_LANGUAGE in place of setLanguage() string in OneSignal.setLanguage
Configuration menu - View commit details
-
Copy full SHA for 4144afb - Browse repository at this point
Copy the full SHA 4144afbView commit details -
Move preferences.getString to variable for clarity
* Move preferences.getString to variable instead of if statement for clarity in LanguageContext constructor
Configuration menu - View commit details
-
Copy full SHA for 5b4d1a8 - Browse repository at this point
Copy the full SHA 5b4d1a8View commit details