Skip to content

Commit 40e90f6

Browse files
陈玉国陈玉国
authored andcommitted
修改 podspec,增加 license 类型
1 parent 86d04a1 commit 40e90f6

File tree

3 files changed

+36
-38
lines changed

3 files changed

+36
-38
lines changed

example/ios/Podfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ flutter_ios_podfile_setup
2929

3030
target 'Runner' do
3131
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
32-
# 本地调试运行时,需注释掉上面的 flutter_install, 并使用下面的本地安装
33-
# pod 'sensors_analytics_flutter_plugin', :path => '../../'
3432
end
3533

3634
post_install do |installer|

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
/* Begin PBXBuildFile section */
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11+
1803C0A65BE9D1203A3EC997 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EEDD677024E767B8D7131FF3 /* libPods-Runner.a */; };
1112
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
1213
978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
1314
97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
1415
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
1516
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
1617
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
17-
C7F98F518FC60775C5D1DFE8 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D18D9D5115C7BD186A258A5D /* libPods-Runner.a */; };
1818
/* End PBXBuildFile section */
1919

2020
/* Begin PBXCopyFilesBuildPhase section */
@@ -34,11 +34,11 @@
3434
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
3535
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
3636
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
37-
64BBA7F176BCA83E13626910 /* 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>"; };
37+
7AA46B7AD48C6AA04FE55CDC /* 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>"; };
3838
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
3939
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
4040
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
41-
873612E54ECFDEED139A1A2C /* 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>"; };
41+
87FD2D591C97ED0956A1B7A5 /* 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>"; };
4242
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
4343
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
4444
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -47,16 +47,16 @@
4747
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
4848
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
4949
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
50-
A52EEC2737FB298191C51BB5 /* 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>"; };
51-
D18D9D5115C7BD186A258A5D /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
50+
EB1A4E84909D36251A8A12D6 /* 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>"; };
51+
EEDD677024E767B8D7131FF3 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
5252
/* End PBXFileReference section */
5353

5454
/* Begin PBXFrameworksBuildPhase section */
5555
97C146EB1CF9000F007C117D /* Frameworks */ = {
5656
isa = PBXFrameworksBuildPhase;
5757
buildActionMask = 2147483647;
5858
files = (
59-
C7F98F518FC60775C5D1DFE8 /* libPods-Runner.a in Frameworks */,
59+
1803C0A65BE9D1203A3EC997 /* libPods-Runner.a in Frameworks */,
6060
);
6161
runOnlyForDeploymentPostprocessing = 0;
6262
};
@@ -66,21 +66,13 @@
6666
2ED1876E1158C03834CA23B8 /* Pods */ = {
6767
isa = PBXGroup;
6868
children = (
69-
873612E54ECFDEED139A1A2C /* Pods-Runner.debug.xcconfig */,
70-
64BBA7F176BCA83E13626910 /* Pods-Runner.release.xcconfig */,
71-
A52EEC2737FB298191C51BB5 /* Pods-Runner.profile.xcconfig */,
69+
EB1A4E84909D36251A8A12D6 /* Pods-Runner.debug.xcconfig */,
70+
7AA46B7AD48C6AA04FE55CDC /* Pods-Runner.release.xcconfig */,
71+
87FD2D591C97ED0956A1B7A5 /* Pods-Runner.profile.xcconfig */,
7272
);
7373
path = Pods;
7474
sourceTree = "<group>";
7575
};
76-
932E1FAF11A168C3B056CE75 /* Frameworks */ = {
77-
isa = PBXGroup;
78-
children = (
79-
D18D9D5115C7BD186A258A5D /* libPods-Runner.a */,
80-
);
81-
name = Frameworks;
82-
sourceTree = "<group>";
83-
};
8476
9740EEB11CF90186004384FC /* Flutter */ = {
8577
isa = PBXGroup;
8678
children = (
@@ -99,7 +91,7 @@
9991
97C146F01CF9000F007C117D /* Runner */,
10092
97C146EF1CF9000F007C117D /* Products */,
10193
2ED1876E1158C03834CA23B8 /* Pods */,
102-
932E1FAF11A168C3B056CE75 /* Frameworks */,
94+
9D3D3F1526D9246C4C161CFF /* Frameworks */,
10395
);
10496
sourceTree = "<group>";
10597
};
@@ -135,22 +127,30 @@
135127
name = "Supporting Files";
136128
sourceTree = "<group>";
137129
};
130+
9D3D3F1526D9246C4C161CFF /* Frameworks */ = {
131+
isa = PBXGroup;
132+
children = (
133+
EEDD677024E767B8D7131FF3 /* libPods-Runner.a */,
134+
);
135+
name = Frameworks;
136+
sourceTree = "<group>";
137+
};
138138
/* End PBXGroup section */
139139

140140
/* Begin PBXNativeTarget section */
141141
97C146ED1CF9000F007C117D /* Runner */ = {
142142
isa = PBXNativeTarget;
143143
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
144144
buildPhases = (
145-
B4551749B6E9A7BF7A2B964F /* [CP] Check Pods Manifest.lock */,
145+
9B0882BD1FA89DBDEE42DAF7 /* [CP] Check Pods Manifest.lock */,
146146
9740EEB61CF901F6004384FC /* Run Script */,
147147
97C146EA1CF9000F007C117D /* Sources */,
148148
97C146EB1CF9000F007C117D /* Frameworks */,
149149
97C146EC1CF9000F007C117D /* Resources */,
150150
9705A1C41CF9048500538489 /* Embed Frameworks */,
151151
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
152-
CB186228C5A897726CDCD25D /* [CP] Embed Pods Frameworks */,
153-
4D0DFBB3407CCD13BA57DE56 /* [CP] Copy Pods Resources */,
152+
71F1637384E9C5502C895E0B /* [CP] Embed Pods Frameworks */,
153+
D84365CC59E6F687DD519B02 /* [CP] Copy Pods Resources */,
154154
);
155155
buildRules = (
156156
);
@@ -224,21 +224,21 @@
224224
shellPath = /bin/sh;
225225
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n";
226226
};
227-
4D0DFBB3407CCD13BA57DE56 /* [CP] Copy Pods Resources */ = {
227+
71F1637384E9C5502C895E0B /* [CP] Embed Pods Frameworks */ = {
228228
isa = PBXShellScriptBuildPhase;
229229
buildActionMask = 2147483647;
230230
files = (
231231
);
232232
inputFileListPaths = (
233-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
233+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
234234
);
235-
name = "[CP] Copy Pods Resources";
235+
name = "[CP] Embed Pods Frameworks";
236236
outputFileListPaths = (
237-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
237+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
238238
);
239239
runOnlyForDeploymentPostprocessing = 0;
240240
shellPath = /bin/sh;
241-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
241+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
242242
showEnvVarsInLog = 0;
243243
};
244244
9740EEB61CF901F6004384FC /* Run Script */ = {
@@ -256,7 +256,7 @@
256256
shellPath = /bin/sh;
257257
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n";
258258
};
259-
B4551749B6E9A7BF7A2B964F /* [CP] Check Pods Manifest.lock */ = {
259+
9B0882BD1FA89DBDEE42DAF7 /* [CP] Check Pods Manifest.lock */ = {
260260
isa = PBXShellScriptBuildPhase;
261261
buildActionMask = 2147483647;
262262
files = (
@@ -278,21 +278,21 @@
278278
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";
279279
showEnvVarsInLog = 0;
280280
};
281-
CB186228C5A897726CDCD25D /* [CP] Embed Pods Frameworks */ = {
281+
D84365CC59E6F687DD519B02 /* [CP] Copy Pods Resources */ = {
282282
isa = PBXShellScriptBuildPhase;
283283
buildActionMask = 2147483647;
284284
files = (
285285
);
286286
inputFileListPaths = (
287-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
287+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
288288
);
289-
name = "[CP] Embed Pods Frameworks";
289+
name = "[CP] Copy Pods Resources";
290290
outputFileListPaths = (
291-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
291+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
292292
);
293293
runOnlyForDeploymentPostprocessing = 0;
294294
shellPath = /bin/sh;
295-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
295+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
296296
showEnvVarsInLog = 0;
297297
};
298298
/* End PBXShellScriptBuildPhase section */

sensors_analytics_flutter_plugin.podspec renamed to ios/sensors_analytics_flutter_plugin.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Pod::Spec.new do |s|
1010
:type => 'Commercial',
1111
:file => '../LICENSE' }
1212
s.author = { "caojiang" => "[email protected]" }
13-
s.source = { :git => 'https://github.com/sensorsdata/sensors_analytics_flutter_plugin.git', :tag => "v#{s.version}" }
14-
s.source_files = 'ios/Classes/**/*'
15-
s.public_header_files = 'ios/Classes/**/*.h'
13+
s.source = { :path => '.'}
14+
s.source_files = 'Classes/**/*'
15+
s.public_header_files = 'Classes/**/*.h'
1616
s.dependency 'Flutter'
1717
s.platform = :ios, '9.0'
1818
s.dependency 'SensorsAnalyticsSDK', ">= 4.9.0"
1919
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
2020
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
21-
s.resource_bundle = { 'sensors_analytics_flutter_plugin' => 'ios/Resources/**/*'}
21+
s.resource_bundle = { 'sensors_analytics_flutter_plugin' => 'Resources/**/*'}
2222
end

0 commit comments

Comments
 (0)