Skip to content

RookeriesDevelopment/rook_demo_app_flutter_rook_sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rook SDK demo app flutter

Demo app for ROOK SDK packages:

Configure & Run

In the lib folder create a secrets.dart file with a Secrets class and add the following constants:

class Secrets {
  static String clientUUID = 'clientUUID';
  static String secretKey = 'secretKey';
}

Run flutter pub get

In the ios folder, ensure that your Podfile is targeted to ios 13+ (platform :ios, '13.0')

In the ios folder, run pod install

If you want to test rookYesterdaySync open the android folder as an Android Studio project, then in the MainActivity file inside the app module uncomment the rookYesterdaySync declaration and the enable function.

class MainActivity : FlutterActivity() {

//    private val rookYesterdaySync by rookYesterdaySync(
//        enableLogs = isDebug,
//        clientUUID = REPLACE_WITH_YOUR_CLIENT_UUID,
//        secretKey = REPLACE_WITH_YOUR_SECRET_KEY,
//        environment = rookEnvironment,
//    )

    override fun onCreate(savedInstanceState: Bundle?) {
        // Must be before super.onCreate(savedInstanceState)
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
//            rookYesterdaySync.enable(this)
        }

        super.onCreate(savedInstanceState)
    }
}

Important

Don't forget to also add your credentials

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages