View protobuf_setup.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
sourceSets { | |
main { | |
proto { | |
// Directory Default Proto | |
srcDir 'src/main/proto' | |
} | |
} | |
} | |
} |
View gradle_gradol.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
productFlavors { | |
development { | |
dimension "app" | |
applicationIdSuffix ".dev" | |
versionNameSuffix "-dev" | |
manifestPlaceholders = [ | |
appName : "CUiT-Dev", | |
appScheme : "cuit-app", | |
icemanApplication: "com.gocuit.cuit.dev" | |
] |
View error_banuba_log.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
E/ExportTask(31787): Error while export | |
E/ExportTask(31787): android.media.MediaCodec$CodecException: Error 0xfffffc0e | |
E/ExportTask(31787): at android.media.MediaCodec.native_configure(Native Method) | |
E/ExportTask(31787): at android.media.MediaCodec.configure(MediaCodec.java:2127) | |
E/ExportTask(31787): at android.media.MediaCodec.configure(MediaCodec.java:2043) | |
E/ExportTask(31787): at com.banuba.sdk.core.encoding.MediaEncoderVideo.prepare(MediaEncoderVideo.java:74) | |
E/ExportTask(31787): at com.banuba.sdk.core.encoding.MediaMuxerWrapper.prepare(MediaMuxerWrapper.java:128) | |
E/ExportTask(31787): at com.banuba.sdk.export.internal.EncodingBundle.<init>(EncodingBundle.java:52) | |
E/ExportTask(31787): at com.banuba.sdk.export.internal.ExportTask.execute(ExportTask.kt:167) | |
E/ExportTask(31787): at com.banuba.sdk.export.internal.ExportManager.tryExport(ExportManager.kt:95) |
View main.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
void main() { | |
} | |
/* | |
* given static list of string containing people names, | |
* find if name exists in list | |
* example |
View setup_build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(keystoreProperties['storeFile']){ | |
keyAlias keystoreProperties['keyAlias'] | |
keyPassword keystoreProperties['keyPassword'] | |
storeFile file(keystoreProperties['storeFile']) | |
storePassword keystoreProperties['storePassword'] | |
} else { | |
storeFile file('DevKeyStore.jks') | |
storePassword 'xxxxx' | |
keyAlias 'alias your app' | |
keyPassword 'xxxx' |
View pdf_util.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PdfUtil { | |
final doc = pdf.Document(); | |
final PdfPageFormat? formatPage; | |
PdfUtil(this.formatPage); | |
Future<Uint8List> buildPdf(pdf.Widget widget) { | |
doc.addPage(pdf.Page( | |
build: (pdf.Context context) => widget, | |
pageFormat: formatPage, |
View model.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@freezed | |
class Playback with _$Playback { | |
factory Playback({ | |
required String policy, | |
required String id, | |
}) = _Playback; | |
factory Playback.fromJson(Map<String, dynamic> data) => | |
_$PlaybackFromJson(data); | |
} |
View logic_mapping.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main(List<String> arguments) { | |
final productData = <Map<String, dynamic>>[ | |
{'productId': 1000, 'productName': 'Product 1000'}, | |
{'productId': 1001, 'productName': 'Product 1001'} | |
]; | |
final stockData = <Map<String, int>>[ | |
{'productId': 1000, 'locationId': 1, 'stock': 21}, | |
{'productId': 1000, 'locationId': 2, 'stock': 8}, | |
{'productId': 1001, 'locationId': 1, 'stock': 4}, | |
{'productId': 1001, 'locationId': 2, 'stock': 10} |
View example.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 67, | |
"avatar": "https://site.skinuphoria.com/wp-content/uploads/2021/02/inggaribnuhasan_avatar.jpg", | |
"email": "///", | |
"first_name": "//", | |
"last_name": "//", | |
"name": "//", | |
"phone": "+62810101010", | |
"steam": "ab1234", | |
"roles": [ |
NewerOlder