Skip to content

Commit

Permalink
Rename plugin update
Browse files Browse the repository at this point in the history
  • Loading branch information
RaimundWege committed Oct 19, 2019
1 parent a730ca9 commit fc409b5
Show file tree
Hide file tree
Showing 23 changed files with 41 additions and 115 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
@@ -1,4 +1,4 @@
group 'app.trufi.core'
group 'app.trufi.trufi_core'
version '1.0-SNAPSHOT'

buildscript {
Expand Down
2 changes: 1 addition & 1 deletion android/settings.gradle
@@ -1 +1 @@
rootProject.name = 'core'
rootProject.name = 'trufi_core'
2 changes: 1 addition & 1 deletion android/src/main/AndroidManifest.xml
@@ -1,3 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="app.trufi.core">
package="app.trufi.trufi_core">
</manifest>
@@ -1,17 +1,17 @@
package app.trufi.core
package app.trufi.trufi_core

import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel.Result
import io.flutter.plugin.common.PluginRegistry.Registrar

class CorePlugin: MethodCallHandler {
class TrufiCorePlugin: MethodCallHandler {
companion object {
@JvmStatic
fun registerWith(registrar: Registrar) {
val channel = MethodChannel(registrar.messenger(), "core")
channel.setMethodCallHandler(CorePlugin())
val channel = MethodChannel(registrar.messenger(), "trufi_core")
channel.setMethodCallHandler(TrufiCorePlugin())
}
}

Expand Down
2 changes: 1 addition & 1 deletion example/.metadata
Expand Up @@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.

version:
revision: cc949a8e8b9cf394b9290a8e80f87af3e207dce5
revision: 1aedbb1835bd6eb44550293d57d4d124f19901f0
channel: stable

project_type: app
4 changes: 2 additions & 2 deletions example/README.md
@@ -1,6 +1,6 @@
# core_example
# trufi_core_example

Demonstrates how to use the core plugin.
Demonstrates how to use the trufi_core plugin.

## Getting Started

Expand Down
2 changes: 1 addition & 1 deletion example/android/app/build.gradle
Expand Up @@ -38,7 +38,7 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "app.trufi.core_example"
applicationId "app.trufi.trufi_core_example"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/src/debug/AndroidManifest.xml
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="app.trufi.core_example">
package="app.trufi.trufi_core_example">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
4 changes: 2 additions & 2 deletions example/android/app/src/main/AndroidManifest.xml
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="app.trufi.core_example">
package="app.trufi.trufi_core_example">

<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
Expand All @@ -8,7 +8,7 @@
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:label="core_example"
android:label="trufi_core_example"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
Expand Down
@@ -1,4 +1,4 @@
package app.trufi.core_example
package app.trufi.trufi_core_example

import android.os.Bundle

Expand Down
2 changes: 1 addition & 1 deletion example/android/app/src/profile/AndroidManifest.xml
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="app.trufi.core_example">
package="app.trufi.trufi_core_example">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
3 changes: 0 additions & 3 deletions example/ios/Podfile
@@ -1,6 +1,3 @@
# Using a CDN with CocoaPods 1.7.2 or later can save a lot of time on pod installation, but it's experimental rather than the default.
# source 'https://cdn.cocoapods.org/'

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

Expand Down
76 changes: 4 additions & 72 deletions example/ios/Runner.xcodeproj/project.pbxproj
Expand Up @@ -7,7 +7,6 @@
objects = {

/* Begin PBXBuildFile section */
060DE2AA888ACDF0E2BBADE4 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A6252605D410BCA31755FF6 /* Pods_Runner.framework */; };
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
Expand Down Expand Up @@ -39,11 +38,8 @@
/* Begin PBXFileReference section */
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
3B17FB72F2B29821A5043E71 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
3EC1486B753A452B8328319A /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
4A6252605D410BCA31755FF6 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
Expand All @@ -55,7 +51,6 @@
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
C6FA795C1852BDDFF15EDA7D /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -65,31 +60,12 @@
files = (
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
060DE2AA888ACDF0E2BBADE4 /* Pods_Runner.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
3EDF2FC65448E08AD09BBE0B /* Frameworks */ = {
isa = PBXGroup;
children = (
4A6252605D410BCA31755FF6 /* Pods_Runner.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
83D4F54B024476494E232387 /* Pods */ = {
isa = PBXGroup;
children = (
3EC1486B753A452B8328319A /* Pods-Runner.debug.xcconfig */,
3B17FB72F2B29821A5043E71 /* Pods-Runner.release.xcconfig */,
C6FA795C1852BDDFF15EDA7D /* Pods-Runner.profile.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
};
9740EEB11CF90186004384FC /* Flutter */ = {
isa = PBXGroup;
children = (
Expand All @@ -109,8 +85,6 @@
9740EEB11CF90186004384FC /* Flutter */,
97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */,
83D4F54B024476494E232387 /* Pods */,
3EDF2FC65448E08AD09BBE0B /* Frameworks */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -152,14 +126,12 @@
isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
875440641DC1D175B7F75526 /* [CP] Check Pods Manifest.lock */,
9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
6A4115E276613BD8718DF9FF /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand All @@ -181,7 +153,6 @@
TargetAttributes = {
97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1;
DevelopmentTeam = NNB9PHQ49J;
LastSwiftMigration = 0910;
};
};
Expand Down Expand Up @@ -234,43 +205,6 @@
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
};
6A4115E276613BD8718DF9FF /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
875440641DC1D175B7F75526 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -376,7 +310,6 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = NNB9PHQ49J;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -388,7 +321,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
PRODUCT_BUNDLE_IDENTIFIER = app.trufi.coreExample;
PRODUCT_BUNDLE_IDENTIFIER = app.trufi.trufiCoreExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 4.0;
Expand Down Expand Up @@ -510,7 +443,6 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = NNB9PHQ49J;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -522,7 +454,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
PRODUCT_BUNDLE_IDENTIFIER = app.trufi.coreExample;
PRODUCT_BUNDLE_IDENTIFIER = app.trufi.trufiCoreExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -538,7 +470,6 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = NNB9PHQ49J;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -550,7 +481,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
PRODUCT_BUNDLE_IDENTIFIER = app.trufi.coreExample;
PRODUCT_BUNDLE_IDENTIFIER = app.trufi.trufiCoreExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 4.0;
Expand Down Expand Up @@ -582,6 +513,7 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

};
rootObject = 97C146E61CF9000F007C117D /* Project object */;
}
3 changes: 0 additions & 3 deletions example/ios/Runner.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/ios/Runner/Info.plist
Expand Up @@ -11,7 +11,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>core_example</string>
<string>trufi_core_example</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
import 'package:global_configuration/global_configuration.dart';
import 'package:core/trufi_app.dart';
import 'package:trufi_core/trufi_app.dart';

void main() async {
await GlobalConfiguration().loadFromAsset("app_config");
Expand Down
6 changes: 3 additions & 3 deletions example/pubspec.yaml
@@ -1,5 +1,5 @@
name: core_example
description: Demonstrates how to use the core plugin.
name: trufi_core_example
description: Demonstrates how to use the trufi_core plugin.
publish_to: 'none'

environment:
Expand All @@ -17,7 +17,7 @@ dev_dependencies:
flutter_test:
sdk: flutter

core:
trufi_core:
path: ../

# For information on the generic Dart part of this file, see the
Expand Down
2 changes: 1 addition & 1 deletion example/test/widget_test.dart
Expand Up @@ -8,7 +8,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

import 'package:core/trufi_app.dart';
import 'package:trufi_core/trufi_app.dart';

void main() {
testWidgets('Verify Platform version', (WidgetTester tester) async {
Expand Down
4 changes: 0 additions & 4 deletions ios/Classes/CorePlugin.h

This file was deleted.

8 changes: 0 additions & 8 deletions ios/Classes/CorePlugin.m

This file was deleted.

@@ -1,10 +1,10 @@
import Flutter
import UIKit

public class SwiftCorePlugin: NSObject, FlutterPlugin {
public class SwiftTrufiCorePlugin: NSObject, FlutterPlugin {
public static func register(with registrar: FlutterPluginRegistrar) {
let channel = FlutterMethodChannel(name: "core", binaryMessenger: registrar.messenger())
let instance = SwiftCorePlugin()
let channel = FlutterMethodChannel(name: "trufi_core", binaryMessenger: registrar.messenger())
let instance = SwiftTrufiCorePlugin()
registrar.addMethodCallDelegate(instance, channel: channel)
}

Expand Down
4 changes: 4 additions & 0 deletions ios/Classes/TrufiCorePlugin.h
@@ -0,0 +1,4 @@
#import <Flutter/Flutter.h>

@interface TrufiCorePlugin : NSObject<FlutterPlugin>
@end
8 changes: 8 additions & 0 deletions ios/Classes/TrufiCorePlugin.m
@@ -0,0 +1,8 @@
#import "TrufiCorePlugin.h"
#import <trufi_core/trufi_core-Swift.h>

@implementation TrufiCorePlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
[SwiftTrufiCorePlugin registerWithRegistrar:registrar];
}
@end

0 comments on commit fc409b5

Please sign in to comment.