Skip to content

Commit

Permalink
Etau : Version 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Larpoux committed Nov 4, 2024
1 parent edbf176 commit 113717e
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 243 deletions.
2 changes: 1 addition & 1 deletion bin/pub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fi

flutter pub publish
if [ $? -ne 0 ]; then
echo "Error: flutter pub publish[tauweb]"
echo "Error: flutter pub publish[tau_web]"
exit -1
fi

Expand Down
15 changes: 9 additions & 6 deletions bin/reldev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
if [ "_$1" = "_REL" ] ; then


gsed -i "s/^ *tauweb: *#* *\(.*\)$/ tauweb: \1/" example/pubspec.yaml
gsed -i "s/^ *path: \.\.\/ # tauweb Dir$/# path: \.\.\/ # tauweb Dir/" example/pubspec.yaml
gsed -i "s/^ *tau_web: *#* *\(.*\)$/ tau_web: \1/" example/pubspec.yaml
gsed -i "s/^ *path: \.\.\/ # tau_web Dir$/# path: \.\.\/ # tau_web Dir/" example/pubspec.yaml

gsed -i "s/^ *etau: *#* *\(.*\)$/ etau: \1/" pubspec.yaml
gsed -i "s/^ *path: \.\.\/etau # etau Dir$/# path: \.\.\/etau # etau Dir/" pubspec.yaml
Expand All @@ -21,13 +21,16 @@ if [ "_$1" = "_REL" ] ; then
elif [ "_$1" = "_DEV" ]; then


gsed -i "s/^ *tauweb: *#* *\(.*\)$/ tauweb: # \1/" example/pubspec.yaml
gsed -i "s/^# *path: \.\.\/ # tauweb Dir$/ path: \.\.\/ # tauweb Dir/" example/pubspec.yaml
gsed -i "s/^ *tau_web: *#* *\(.*\)$/ tau_web: # \1/" example/pubspec.yaml
gsed -i "s/^# *path: \.\.\/ # tau_web Dir$/ path: \.\.\/ # tau_web Dir/" example/pubspec.yaml

gsed -i "s/^ *etau: *#* *\(.*\)$/ etau: # \1/" pubspec.yaml
gsed -i "s/^# *path: \.\.\/\.\.\/etau # etau Dir$/ path: \.\.\/\.\.\/etau # etau Dir/" pubspec.yaml
gsed -i "s/^# *path: \.\.\/etau # etau Dir$/ path: \.\.\/etau # etau Dir/" pubspec.yaml

exit 0
gsed -i "s/^ *etau: *#* *\(.*\)$/ etau: # \1/" example/pubspec.yaml
gsed -i "s/^# *path: \.\.\/\.\.\/etau # etau Dir$/ path: \.\.\/\.\.\/etau # etau Dir/" example/pubspec.yaml

exit 0

else
echo "Correct syntax is $0 [REL | DEV]"
Expand Down
4 changes: 2 additions & 2 deletions bin/setver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ VERSION_CODE=${VERSION_CODE//+/}

gsed -i "s/^\( *version: *\).*$/\1$VERSION/" pubspec.yaml
#gsed -i "s/^\( *version: *\).*$/\1$VERSION/" example/pubspec.yaml
gsed -i "s/^\( *tauweb: *#* *\^*\).*$/\1$VERSION/" ../etau/example/pubspec.yaml
gsed -i "s/^\( *tauweb: *#* *\^*\).*$/\1$VERSION/" pubspec.yaml
gsed -i "s/^\( *tau_web: *#* *\^*\).*$/\1$VERSION/" ../etau/example/pubspec.yaml
gsed -i "s/^\( *tau_web: *#* *\^*\).*$/\1$VERSION/" pubspec.yaml

#gsed -i "s/^\( *## \).*$/\1$VERSION/" flutter_sound/CHANGELOG.md

Expand Down
2 changes: 0 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import 'package:flutter/material.dart';
//import 'package:etau/etau.dart';
//import 'package:tauweb/tauweb.dart';

void main() => runApp(const MyApp());

Expand Down
213 changes: 0 additions & 213 deletions example/pubspec.lock

This file was deleted.

4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ dependencies:
flutter:
sdk: flutter

tauweb: ^0.0.1
# path: ../ # tauweb Dir
tau_web: ^0.0.1
# path: ../ # tau_web Dir

etau: ^0.0.2
# path: ../../etau # etau Dir
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/src/tauweb_implementation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class TauwebImplementation implements TauInterface {
_logger = log.Logger();
log.Logger.level = loglevel;
if (!alreadyInited) {
await importModule("./packages/tauweb/js/tauweb.js".toJS).toDart;
await importModule("./packages/tau_web/js/tau_web.js".toJS).toDart;
alreadyInited = true;
}
}
Expand Down
2 changes: 0 additions & 2 deletions lib/src/tauweb_interop.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import 'dart:js_interop';
import 'dart:typed_data';
import 'tauweb_audio.dart' as j;
//import 'tauweb_implementation.dart' as i;
//import 'tauweb_class.dart' as c;
import 'package:web/web.dart' as w;
import 'dart:js_interop' as p;

Expand Down
8 changes: 0 additions & 8 deletions lib/tauweb.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
library tau_web;

//import 'package:etau/etau.dart' show TauInterface;
//import 'src/tauweb_implementation.dart' show tau;

//export 'src/tauweb_implementation.dart' show tau;
//export 'src/dummy.dart';
//export 'src/tauweb_implementation.dart';
//TauInterface Tau() => TauwebImplementation();
10 changes: 5 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: tauweb
description: "A E-τ (Etau) implementation for the Web."
name: tau_web
description: "A E_τ (Etau) implementation for the Web."
version: 0.0.1
homepage: https://tau.canardoux.xyz
repository: https://github.com/canardoux/tauweb
repository: https://github.com/canardoux/tau_web

environment:
sdk: ^3.5.3
Expand All @@ -11,7 +11,7 @@ environment:
dependencies:
flutter:
sdk: flutter
etau: ^0.0.2
etau: ^0.0.888
# path: ../etau # etau Dir
web: ^1.0.0
logger: ^2.4.0
Expand Down Expand Up @@ -63,5 +63,5 @@ flutter:
# https://flutter.dev/to/font-from-package

assets:
- js/tauweb.js
- js/tau_web.js
- js/async_processor.js
2 changes: 1 addition & 1 deletion test/tauweb_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter_test/flutter_test.dart';

import 'package:tauweb/tauweb.dart';
import 'package:tau_web/tau_web.dart';

void main() {
test('adds one to input values', () {
Expand Down

0 comments on commit 113717e

Please sign in to comment.