mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
[flutter] spine_flutter.dart -> spine_dart.dart, api.dart in generated pulling in all modules
This commit is contained in:
parent
6ad01acc6a
commit
f85b3c1f19
@ -1319,12 +1319,12 @@ ${declaration} {`;
|
||||
}
|
||||
|
||||
const methodSuffix = this.getMethodSuffix(method.name, cType.name);
|
||||
|
||||
|
||||
// Don't consider dispose methods as inherited - they're type-specific
|
||||
if (methodSuffix === 'dispose') {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
const parentMethodName = `${parentName}_${methodSuffix}`;
|
||||
|
||||
const hasInParent = parent.methods.some(m => m.name === parentMethodName);
|
||||
@ -1455,7 +1455,7 @@ ${declaration} {`;
|
||||
lines.push('// Arrays');
|
||||
lines.push(`export 'arrays.dart';`);
|
||||
|
||||
const filePath = path.join(path.dirname(path.dirname(this.outputDir)), 'lib/generated/spine_dart.dart');
|
||||
const filePath = path.join(path.dirname(path.dirname(this.outputDir)), 'lib/generated/api.dart');
|
||||
fs.writeFileSync(filePath, lines.join('\n'));
|
||||
}
|
||||
|
||||
|
||||
@ -41,7 +41,7 @@ import 'package:path/path.dart' as path;
|
||||
|
||||
import 'ffi_proxy.dart';
|
||||
import 'spine_dart_init.dart' if (dart.library.html) 'spine_flutter_init_web.dart';
|
||||
import 'spine_flutter.dart';
|
||||
import 'spine_dart.dart';
|
||||
import 'raw_image_provider.dart';
|
||||
|
||||
export 'spine_widget.dart';
|
||||
|
||||
@ -36,7 +36,7 @@ import 'generated/atlas.dart';
|
||||
import 'generated/skeleton_data.dart';
|
||||
|
||||
// Export generated classes
|
||||
export 'generated/spine_dart.dart';
|
||||
export 'generated/api.dart';
|
||||
|
||||
Future<void> initSpineFlutter({bool useStaticLinkage = false, bool enableMemoryDebugging = false}) async {
|
||||
final ffi = await initSpineDartFFI(useStaticLinkage);
|
||||
@ -34,7 +34,7 @@ import 'package:flutter/scheduler.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
import 'spine_flutter.dart';
|
||||
import 'spine_dart.dart';
|
||||
|
||||
/// Controls how the skeleton of a [SpineWidget] is animated and rendered.
|
||||
///
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user