1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use async_trait::async_trait;
use std::sync::atomic::AtomicBool;
use std::sync::{Arc, Mutex};
use crate::core::client::Client;
use crate::core::graph::Graph;

#[derive(Debug)]
pub struct KotlinClient {
    pub(crate) at: Arc<Mutex<String>>,
    pub(crate) jetpack_compose_states: AtomicBool,
}

impl KotlinClient {
    pub(crate) fn new() -> Self {
        KotlinClient {
            at: Arc::new(Mutex::new("".to_string())),
            jetpack_compose_states: AtomicBool::new(false),
        }
    }
}

#[async_trait]
impl Client for KotlinClient {
    async fn generate(&self, _graph: &Graph) -> std::io::Result<()> {
        Ok(())
    }
}