diff --git a/android/app/src/main/java/com/example/openbook/ImageConverter.java b/android/app/src/main/java/social/openbook/app/ImageConverter.java similarity index 96% rename from android/app/src/main/java/com/example/openbook/ImageConverter.java rename to android/app/src/main/java/social/openbook/app/ImageConverter.java index 22fb0c92a..d06c2be6e 100644 --- a/android/app/src/main/java/com/example/openbook/ImageConverter.java +++ b/android/app/src/main/java/social/openbook/app/ImageConverter.java @@ -1,4 +1,4 @@ -package com.example.openbook; +package social.openbook.app; import android.graphics.Bitmap; import android.graphics.BitmapFactory; diff --git a/android/app/src/main/java/com/example/openbook/MainActivity.java b/android/app/src/main/java/social/openbook/app/MainActivity.java similarity index 91% rename from android/app/src/main/java/com/example/openbook/MainActivity.java rename to android/app/src/main/java/social/openbook/app/MainActivity.java index 9936e534e..9fa1a4353 100644 --- a/android/app/src/main/java/com/example/openbook/MainActivity.java +++ b/android/app/src/main/java/social/openbook/app/MainActivity.java @@ -2,8 +2,8 @@ import android.content.Intent; import android.os.Bundle; -import com.example.openbook.plugins.ImageConverterPlugin; -import com.example.openbook.plugins.SharePlugin; +import social.openbook.app.plugins.ImageConverterPlugin; +import social.openbook.app.plugins.SharePlugin; import io.flutter.embedding.android.FlutterActivity; import io.flutter.embedding.engine.plugins.PluginRegistry; diff --git a/android/app/src/main/java/com/example/openbook/plugins/ImageConverterPlugin.java b/android/app/src/main/java/social/openbook/app/plugins/ImageConverterPlugin.java similarity index 89% rename from android/app/src/main/java/com/example/openbook/plugins/ImageConverterPlugin.java rename to android/app/src/main/java/social/openbook/app/plugins/ImageConverterPlugin.java index 529849a5b..27d87db5d 100644 --- a/android/app/src/main/java/com/example/openbook/plugins/ImageConverterPlugin.java +++ b/android/app/src/main/java/social/openbook/app/plugins/ImageConverterPlugin.java @@ -1,10 +1,9 @@ -package com.example.openbook.plugins; +package social.openbook.app.plugins; import androidx.annotation.NonNull; -import com.example.openbook.ImageConverter; -import com.example.openbook.ImageConverter.TargetFormat; +import social.openbook.app.ImageConverter; +import social.openbook.app.ImageConverter.TargetFormat; import io.flutter.embedding.engine.plugins.FlutterPlugin; -import io.flutter.plugin.common.BinaryMessenger; import io.flutter.plugin.common.MethodCall; import io.flutter.plugin.common.MethodChannel; import io.flutter.plugin.common.MethodChannel.MethodCallHandler; @@ -18,7 +17,7 @@ public class ImageConverterPlugin implements MethodCallHandler, FlutterPlugin { @Override public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) { - methodChannel = new MethodChannel(binding.getBinaryMessenger(), "openspace.social/image_converter"); + methodChannel = new MethodChannel(binding.getBinaryMessenger(), "okuna.io/image_converter"); methodChannel.setMethodCallHandler(this); } diff --git a/android/app/src/main/java/com/example/openbook/plugins/SharePlugin.java b/android/app/src/main/java/social/openbook/app/plugins/SharePlugin.java similarity index 98% rename from android/app/src/main/java/com/example/openbook/plugins/SharePlugin.java rename to android/app/src/main/java/social/openbook/app/plugins/SharePlugin.java index 40b4c42bd..afcbd7b52 100644 --- a/android/app/src/main/java/com/example/openbook/plugins/SharePlugin.java +++ b/android/app/src/main/java/social/openbook/app/plugins/SharePlugin.java @@ -1,4 +1,4 @@ -package com.example.openbook.plugins; +package social.openbook.app.plugins; import android.content.Context; import android.content.Intent; @@ -7,8 +7,8 @@ import android.webkit.MimeTypeMap; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import com.example.openbook.ImageConverter; -import com.example.openbook.util.InputStreamSupplier; +import social.openbook.app.ImageConverter; +import social.openbook.app.util.InputStreamSupplier; import io.flutter.embedding.engine.plugins.FlutterPlugin; import io.flutter.plugin.common.EventChannel; @@ -24,7 +24,7 @@ public class SharePlugin implements FlutterPlugin, EventChannel.StreamHandler { @Override public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) { applicationContext = binding.getApplicationContext(); - eventChannel = new EventChannel(binding.getBinaryMessenger(), "openbook.social/receive_share"); + eventChannel = new EventChannel(binding.getBinaryMessenger(), "okuna.io/receive_share"); eventChannel.setStreamHandler(this); } diff --git a/android/app/src/main/java/com/example/openbook/util/InputStreamSupplier.java b/android/app/src/main/java/social/openbook/app/util/InputStreamSupplier.java similarity index 84% rename from android/app/src/main/java/com/example/openbook/util/InputStreamSupplier.java rename to android/app/src/main/java/social/openbook/app/util/InputStreamSupplier.java index 88b3f7dad..769dbdb2b 100644 --- a/android/app/src/main/java/com/example/openbook/util/InputStreamSupplier.java +++ b/android/app/src/main/java/social/openbook/app/util/InputStreamSupplier.java @@ -1,4 +1,4 @@ -package com.example.openbook.util; +package social.openbook.app.util; import java.io.FileNotFoundException; import java.io.InputStream; diff --git a/ios/Runner/ImageConverterPlugin.m b/ios/Runner/ImageConverterPlugin.m index ab13b2f90..80d42451b 100755 --- a/ios/Runner/ImageConverterPlugin.m +++ b/ios/Runner/ImageConverterPlugin.m @@ -13,7 +13,7 @@ typedef NS_ENUM(NSInteger, TargetFormat) { @implementation ImageConverterPlugin + (void)registerWithRegistrar:(NSObject *)registrar { FlutterMethodChannel *channel = - [FlutterMethodChannel methodChannelWithName:@"openspace.social/image_converter" + [FlutterMethodChannel methodChannelWithName:@"okuna.io/image_converter" binaryMessenger:[registrar messenger]]; ImageConverterPlugin *instance = [[ImageConverterPlugin alloc] init]; [registrar addMethodCallDelegate:instance channel:channel]; diff --git a/lib/plugins/image_converter/image_converter.dart b/lib/plugins/image_converter/image_converter.dart index baee392e7..1ead18b71 100644 --- a/lib/plugins/image_converter/image_converter.dart +++ b/lib/plugins/image_converter/image_converter.dart @@ -4,7 +4,7 @@ import 'package:flutter/services.dart'; class ImageConverter { static const MethodChannel _channel = - const MethodChannel('openspace.social/image_converter'); + const MethodChannel('okuna.io/image_converter'); static Future> convertImage(List imageData, [TargetFormat format = TargetFormat.JPEG]) async { String formatName; diff --git a/lib/services/share.dart b/lib/services/share.dart index c41a20c30..84d3cdd45 100644 --- a/lib/services/share.dart +++ b/lib/services/share.dart @@ -13,7 +13,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; class ShareService { - static const _stream = const EventChannel('openbook.social/receive_share'); + static const _stream = const EventChannel('okuna.io/receive_share'); ToastService _toastService; MediaService _mediaService;