|
1 | | -#include "Version.xcconfig" |
2 | | -SLASH = / // Otherwise a double slash is treated as a comment, even inside a quoted string |
3 | | - |
4 | | -HOST_APP_NAME = GitHub Copilot for Xcode Dev |
5 | | -BUNDLE_IDENTIFIER_BASE = dev.com.github.CopilotForXcode |
6 | | -SPARKLE_FEED_URL = https:$(SLASH)$(SLASH)githubcopilotide.z13.web.core.windows.net/appcast.xml |
7 | | -SPARKLE_PUBLIC_KEY = EGlZbKpzATrZFfzr142PrZbmQr5opzdC8urMU8+dKL0= |
8 | | -APPLICATION_SUPPORT_FOLDER = dev.com.github.CopilotForXcode |
9 | | -EXTENSION_BUNDLE_NAME = GitHub Copilot Dev |
10 | | -EXTENSION_BUNDLE_DISPLAY_NAME = GitHub Copilot Dev |
11 | | -EXTENSION_SERVICE_NAME = GitHub Copilot for Xcode Extension |
12 | | -COPILOT_DOCS_URL = https:$(SLASH)$(SLASH)docs.github.com/en/copilot |
13 | | -COPILOT_FORUM_URL = https:$(SLASH)$(SLASH)github.com/orgs/community/discussions/categories/copilot |
14 | | - |
15 | | -// see also target Configs |
16 | | - |
17 | | -#include? "Config.local.xcconfig" |
| 1 | +name: kayan_app |
| 2 | +description: تطبيق كيان مع ميزات AI وريلز |
| 3 | +publish_to: 'none' |
| 4 | +version: 1.0.0+1 |
| 5 | + |
| 6 | +environment: |
| 7 | + sdk: ">=2.17.0 <3.0.0" |
| 8 | + |
| 9 | +dependencies: |
| 10 | + flutter: |
| 11 | + sdk: flutter |
| 12 | + cupertino_icons: ^1.0.2 |
| 13 | + provider: ^6.0.5 |
| 14 | + http: ^0.13.5 |
| 15 | + shared_preferences: ^2.0.17 |
| 16 | + flutter_localizations: |
| 17 | + sdk: flutter |
| 18 | +import 'package:flutter/material.dart'; |
| 19 | +import 'package:flutter_localizations/flutter_localizations.dart'; |
| 20 | +import 'screens/home_screen.dart'; |
| 21 | +import 'l10n/app_localizations.dart'; |
| 22 | + |
| 23 | +void main() { |
| 24 | + runApp(KayanApp()); |
| 25 | +} |
| 26 | + |
| 27 | +class KayanApp extends StatelessWidget { |
| 28 | + @override |
| 29 | + Widget build(BuildContext context) { |
| 30 | + return MaterialApp( |
| 31 | + title: 'كيان', |
| 32 | + debugShowCheckedModeBanner: false, |
| 33 | + theme: ThemeData.dark().copyWith( |
| 34 | + primaryColor: Colors.black, |
| 35 | + scaffoldBackgroundColor: Colors.black, |
| 36 | + textTheme: TextTheme( |
| 37 | + bodyMedium: TextStyle(color: Colors.white), |
| 38 | + ), |
| 39 | + ), |
| 40 | + supportedLocales: [ |
| 41 | + Locale('ar', ''), |
| 42 | + Locale('en', ''), |
| 43 | + ], |
| 44 | + localizationsDelegates: [ |
| 45 | + AppLocalizations.delegate, |
| 46 | + GlobalMaterialLocalizations.delegate, |
| 47 | + GlobalWidgetsLocalizations.delegate, |
| 48 | + GlobalCupertinoLocalizations.delegate, |
| 49 | + ], |
| 50 | + home: HomeScreen(), |
| 51 | + ); |
| 52 | + } |
| 53 | +}import 'package:flutter/material.dart'; |
| 54 | +import 'package:flutter_localizations/flutter_localizations.dart'; |
| 55 | +import 'screens/home_screen.dart'; |
| 56 | +import 'l10n/app_localizations.dart'; |
| 57 | + |
| 58 | +void main() { |
| 59 | + runApp(KayanApp()); |
| 60 | +} |
| 61 | + |
| 62 | +class KayanApp extends StatelessWidget { |
| 63 | + @override |
| 64 | + Widget build(BuildContext context) { |
| 65 | + return MaterialApp( |
| 66 | + title: 'كيان', |
| 67 | + debugShowCheckedModeBanner: false, |
| 68 | + theme: ThemeData.dark().copyWith( |
| 69 | + primaryColor: Colors.black, |
| 70 | + scaffoldBackgroundColor: Colors.black, |
| 71 | + textTheme: TextTheme( |
| 72 | + bodyMedium: TextStyle(color: Colors.white), |
| 73 | + ), |
| 74 | + ), |
| 75 | + supportedLocales: [ |
| 76 | + Locale('ar', ''), |
| 77 | + Locale('en', ''), |
| 78 | + ], |
| 79 | + localizationsDelegates: [ |
| 80 | + AppLocalizations.delegate, |
| 81 | + GlobalMaterialLocalizations.delegate, |
| 82 | + GlobalWidgetsLocalizations.delegate, |
| 83 | + GlobalCupertinoLocalizations.delegate, |
| 84 | + ], |
| 85 | + home: HomeScreen(), |
| 86 | + ); |
| 87 | + } |
| 88 | +} |
| 89 | + intl: ^0.18.0 |
| 90 | + webview_flutter: ^4.2.2 |
| 91 | + google_fonts: ^4.0.4 |
| 92 | + flutter_launcher_icons: ^0.13.1 |
| 93 | + |
| 94 | +dev_dependencies: |
| 95 | + flutter_test: |
| 96 | + sdk: flutter |
| 97 | + |
| 98 | +flutter_icons: |
| 99 | + android: true |
| 100 | + ios: true |
| 101 | + image_path: "assets/logo.png" |
| 102 | + |
| 103 | +flutter: |
| 104 | + uses-material-design: true |
| 105 | + assets: |
| 106 | + - assets/import 'package:flutter/material.dart'; |
| 107 | +import 'chat_screen.dart'; |
| 108 | +import 'reels_screen.dart'; |
| 109 | +import 'profile_screen.dart'; |
| 110 | +import 'ai_screen.dart'; |
| 111 | +import 'settings_screen.dart'; |
| 112 | + |
| 113 | +class HomeScreen extends StatefulWidget { |
| 114 | + @override |
| 115 | + _HomeScreenState createState() => _HomeScreenState(); |
| 116 | +} |
| 117 | + |
| 118 | +class _HomeScreenState extends State<HomeScreen> { |
| 119 | + int _selectedIndex = 0; |
| 120 | + |
| 121 | + final List<Widget> _pages = [ |
| 122 | + ChatScreen(), |
| 123 | + ReelsScreen(), |
| 124 | + ProfileScreen(), |
| 125 | + AiScreen(), |
| 126 | + SettingsScreen(), |
| 127 | + ]; |
| 128 | + |
| 129 | + void _onItemTapped(int index) { |
| 130 | + setState(() { |
| 131 | + _selectedIndex = index; |
| 132 | + }); |
| 133 | + } |
| 134 | + |
| 135 | + @override |
| 136 | + Widget build(BuildContext context) { |
| 137 | + return Scaffold( |
| 138 | + body: _pages[_selectedIndex], |
| 139 | + bottomNavigationBar: BottomNavigationBar( |
| 140 | + backgroundColor: Colors.black, |
| 141 | + selectedItemColor: Colors.white, |
| 142 | + unselectedItemColor: Colors.grey, |
| 143 | + currentIndex: _selectedIndex, |
| 144 | + onTap: _onItemTapped, |
| 145 | + items: const [ |
| 146 | + BottomNavigationBarItem(icon: Icon(Icons.chat), label: 'دردشة'), |
| 147 | + BottomNavigationBarItem(icon: Icon(Icons.video_library), label: 'ريلز'), |
| 148 | + BottomNavigationBarItem(icon: Icon(Icons.person), label: 'بروفايل'), |
| 149 | + BottomNavigationBarItem(icon: Icon(Icons.bolt), label: 'كيان AI'), |
| 150 | + BottomNavigationBarItem(icon: Icon(Icons.settings), label: 'إعدادات'), |
| 151 | + ], |
| 152 | + ), |
| 153 | + ); |
| 154 | + } |
| 155 | +}import 'package:flutter/material.dart'; |
| 156 | + |
| 157 | +class ChatScreen extends StatelessWidget { |
| 158 | + @override |
| 159 | + Widget build(BuildContext context) { |
| 160 | + return Scaffold( |
| 161 | + appBar: AppBar( |
| 162 | + title: Text('الدردشة'), |
| 163 | + backgroundColor: Colors.black, |
| 164 | + ), |
| 165 | + body: Center( |
| 166 | + child: Text( |
| 167 | + 'هنا ستكون الدردشة مع المستخدمين', |
| 168 | + style: TextStyle(color: Colors.white, fontSize: 18), |
| 169 | + ), |
| 170 | + ), |
| 171 | + ); |
| 172 | + } |
| 173 | +}import 'package:flutter/material.dart'; |
| 174 | + |
| 175 | +class ReelsScreen extends StatelessWidget { |
| 176 | + @override |
| 177 | + Widget build(BuildContext context) { |
| 178 | + return Scaffold( |
| 179 | + appBar: AppBar( |
| 180 | + title: Text('ريلز'), |
| 181 | + backgroundColor: Colors.black, |
| 182 | + ), |
| 183 | + body: Center( |
| 184 | + child: Text( |
| 185 | + 'هنا يتم عرض الفيديوهات القصيرة', |
| 186 | + style: TextStyle(color: Colors.white, fontSize: 18), |
| 187 | + ), |
| 188 | + ), |
| 189 | + ); |
| 190 | + } |
| 191 | +}import 'package:flutter/material.dart'; |
| 192 | + |
| 193 | +class ProfileScreen extends StatelessWidget { |
| 194 | + @override |
| 195 | + Widget build(BuildContext context) { |
| 196 | + return Scaffold( |
| 197 | + appBar: AppBar( |
| 198 | + title: Text('الملف الشخصي'), |
| 199 | + backgroundColor: Colors.black, |
| 200 | + ), |
| 201 | + body: Center( |
| 202 | + child: Text( |
| 203 | + 'هنا تفاصيل حسابك', |
| 204 | + style: TextStyle(color: Colors.white, fontSize: 18), |
| 205 | + ), |
| 206 | + ), |
| 207 | + ); |
| 208 | + } |
| 209 | +}import 'package:flutter/material.dart'; |
| 210 | + |
| 211 | +class AiScreen extends StatelessWidget { |
| 212 | + @override |
| 213 | + Widget build(BuildContext context) { |
| 214 | + return Scaffold( |
| 215 | + appBar: AppBar( |
| 216 | + title: Text('كيان AI'), |
| 217 | + backgroundColor: Colors.black, |
| 218 | + ), |
| 219 | + body: Center( |
| 220 | + child: Text( |
| 221 | + 'هنا ستكون واجهة الذكاء الاصطناعي', |
| 222 | + style: TextStyle(color: Colors.white, fontSize: 18), |
| 223 | + ), |
| 224 | + ), |
| 225 | + ); |
| 226 | + } |
| 227 | +}import 'package:flutter/material.dart'; |
| 228 | + |
| 229 | +class SettingsScreen extends StatelessWidget { |
| 230 | + @override |
| 231 | + Widget build(BuildContext context) { |
| 232 | + return Scaffold( |
| 233 | + appBar: AppBar( |
| 234 | + title: Text('الإعدادات'), |
| 235 | + backgroundColor: Colors.black, |
| 236 | + ), |
| 237 | + body: ListView( |
| 238 | + children: [ |
| 239 | + ListTile( |
| 240 | + title: Text('اللغة', style: TextStyle(color: Colors.white)), |
| 241 | + trailing: Icon(Icons.language, color: Colors.white), |
| 242 | + onTap: () {}, |
| 243 | + ), |
| 244 | + ListTile( |
| 245 | + title: Text('إدارة التحديثات', style: TextStyle(color: Colors.white)), |
| 246 | + trailing: Icon(Icons.update, color: Colors.white), |
| 247 | + onTap: () {}, |
| 248 | + ), |
| 249 | + ListTile( |
| 250 | + title: Text('تسجيل الخروج', style: TextStyle(color: Colors.white)), |
| 251 | + trailing: Icon(Icons.logout, color: Colors.white), |
| 252 | + onTap: () {}, |
| 253 | + ), |
| 254 | + ], |
| 255 | + ), |
| 256 | + ); |
| 257 | + } |
| 258 | +}import 'package:flutter/material.dart'; |
| 259 | +import 'package:intl/intl.dart'; |
| 260 | +import 'intl/messages_all.dart'; |
| 261 | + |
| 262 | +class AppLocalizations { |
| 263 | + static Future<AppLocalizations> load(Locale locale) { |
| 264 | + final String name = |
| 265 | + locale.countryCode?.isEmpty ?? false ? locale.languageCode : locale.toString(); |
| 266 | + final localeName = Intl.canonicalizedLocale(name); |
| 267 | + return initializeMessages(localeName).then((_) { |
| 268 | + Intl.defaultLocale = localeName; |
| 269 | + return AppLocalizations(); |
| 270 | + }); |
| 271 | + } |
| 272 | + |
| 273 | + static AppLocalizations of(BuildContext context) { |
| 274 | + return Localizations.of<AppLocalizations>(context, AppLocalizations)!; |
| 275 | + } |
| 276 | + |
| 277 | + String get hello { |
| 278 | + return Intl.message( |
| 279 | + 'مرحبا', |
| 280 | + name: 'hello', |
| 281 | + desc: '', |
| 282 | + ); |
| 283 | + } |
| 284 | + |
| 285 | + static const LocalizationsDelegate<AppLocalizations> delegate = |
| 286 | + _AppLocalizationsDelegate(); |
| 287 | +} |
| 288 | + |
| 289 | +class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations> { |
| 290 | + const _AppLocalizationsDelegate(); |
| 291 | + |
| 292 | + @override |
| 293 | + bool isSupported(Locale locale) => ['en', 'ar'].contains(locale.languageCode); |
| 294 | + |
| 295 | + @override |
| 296 | + Future<AppLocalizations> load(Locale locale) => AppLocalizations.load(locale); |
| 297 | + |
| 298 | + @override |
| 299 | + bool shouldReload(LocalizationsDelegate<AppLocalizations> old) => false; |
| 300 | +}{ |
| 301 | + "@@locale": "ar", |
| 302 | + "hello": "مرحبا", |
| 303 | + "chat": "الدردشة", |
| 304 | + "reels": "ريلز", |
| 305 | + "profile": "الملف الشخصي", |
| 306 | + "ai": "كيان AI", |
| 307 | + "settings": "الإعدادات", |
| 308 | + "language": "اللغة", |
| 309 | + "updates": "إدارة التحديثات", |
| 310 | + "logout": "تسجيل الخروج" |
| 311 | +}{ |
| 312 | + "@@locale": "en", |
| 313 | + "hello": "Hello", |
| 314 | + "chat": "Chat", |
| 315 | + "reels": "Reels", |
| 316 | + "profile": "Profile", |
| 317 | + "ai": "Kayan AI", |
| 318 | + "settings": "Settings", |
| 319 | + "language": "Language", |
| 320 | + "updates": "Manage Updates", |
| 321 | + "logout": "Logout" |
| 322 | +}flutter: |
| 323 | + uses-material-design: true |
| 324 | + assets:dependencies: |
| 325 | + flutter: |
| 326 | + sdk: flutter |
| 327 | + provider: ^6.0.5 |
| 328 | + http: ^1.2.0 |
| 329 | + - assets/logo.pngImage.asset('assets/logo.png', width: 150, height: 150)flutter pub getflutter build apk --release |
0 commit comments