Flutter
3
Adrop 초기화(Initialize)하기
import 'package:adrop_ads_flutter/adrop_ads_flutter.dart';void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
initialize();
}
Future<void> initialize() async {
// ..
// true for production
await Adrop.initialize(false); // production 파라미터를 false로 전달할 경우, SDK내에서 발생하는 로그가 출력됩니다.
}
}flutter run4
TroubleShooting
# Add this line to your Podfile
use_frameworks!
# ...
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
#...
# Add this line to your Podfile
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
endLast updated