Theta-client tips

Flutter

theta-client 1.12

Running flutter pub add theta_client_flutter will not work from a new app. You need to copy the contents of theta-client/flutter into your_project/packages/theta_client_flutter

install theta_client_flutter into a new application

  1. clone down theta-client from GitHub at https://github.com/ricohapi/theta-client
  2. in a separate folder, start a new flutter project flutter create --platforms=ios,android my_flutter_project
  3. mkdir my_flutter_project/packages
  4. mkdir my_flutter_project/packages/theta_client_flutter
  5. cp -r theta-client/flutter/* my_flutter_project/packages/theta_client_flutter/
  6. add the path of the locally-installed theta_client_flutter package to your my_flutter_project/pubspec.yaml file
  7. flutter pub get

This is the relevant portion of pubspec.yaml. Note that the dependency is specified with path: ./packages/theta_client_flutter

dependencies:
  flutter:
    sdk: flutter
  theta_client_flutter:
    path: ./packages/theta_client_flutter

In addition, upgrade the minimum version of iOS in project_root/ios/Podfile.

platform :ios, '16.0'

In ios/Flutter/AppFrameworkInfo.plist I added this key.

  <key>MinimumOSVersion</key>
  <string>16.0</string>

iOS

For iOS builds, including Flutter and React Native for iOS, theta-client is distributed as a pod.

Make sure you update the cocoapod repos.

pod repo update

You can check if your system can find the latest pod with

pod search THETAClient --simple

-> THETAClient (1.12.0)
   THETA Client
   pod 'THETAClient', '~> 1.12.0'
   - Homepage: https://github.com/ricohapi/theta-client
   - Source:  
   https://github.com/ricohapi/theta-client/releases/download/1.12.0/THETAClient.xcframework.zip
   - Versions: 1.12.0, 1.11.1, 1.11.0, 1.10.2, 1.10.1, 1.10.0, 1.9.1, 1.9.0,
   1.8.0, 1.7.1, 1.7.0, 1.6.0, 1.5.0, 1.4.0, 1.3.1, 1.3.0, 1.2.0, 1.1.0, 1.0.0
   [trunk repo]
(END)